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
Gets the attribute value for MODIFIED_DATE using the alias name ModifiedDate.
public Timestamp getModifiedDate() { return (Timestamp) getAttributeInternal(MODIFIEDDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public Date getSrcModifiedDate() {\r\n return (Date) getAttributeInternal(SRCMODIFIEDDATE);\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 Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "@JsonProperty(\"Date Modified\")\n\tString getModified() {\n\t\treturn getDate(modified);\n\t}", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public Date getDateModified();", "@JsonProperty(\"modified_date\")\n\tpublic Date getModified_date() {\n\t\treturn modifiedDate;\n\t}", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "public Date getModifieddate() {\n return modifieddate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _employee.getModifiedDate();\n\t}", "public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public String getDatemodified() {\n return datemodified;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "@Override\n\tpublic Date getModifiedDate();", "@Override\n\tpublic Date getModifiedDate();", "public java.util.Date getModified_date() {\n\t\treturn _primarySchoolStudent.getModified_date();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _second.getModifiedDate();\n\t}", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public java.lang.String getModifyDate() {\n java.lang.Object ref = modifyDate_;\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 modifyDate_ = s;\n return s;\n }\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.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}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _changesetEntry.getModifiedDate();\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dictData.getModifiedDate();\n\t}", "public java.lang.String getModifyDate() {\n java.lang.Object ref = modifyDate_;\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 modifyDate_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.util.Date getModifiedDate() {\n\t\treturn _dmHistoryMaritime.getModifiedDate();\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Date getDateModifed(){return dateModified;}", "Date getModifyDate();", "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 java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "public java.lang.CharSequence getLASTMODIFIEDDT() {\n return LAST_MODIFIED_DT;\n }", "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _candidate.getModifiedDate();\n\t}", "public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }", "public java.util.Calendar getDModifyDate() {\n return dModifyDate;\n }", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "public void setModifiedDate(java.lang.String modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _scienceApp.getModifiedDate();\n\t}", "public void setDateModified(Date dateModified);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public String getLastModifiedDate() {\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "XMLGregorianCalendar getModified();", "public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }", "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 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 }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGTShipPosition.getModifiedDate();\n\t}", "public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "public void setModifiedDate(Date modifiedDate) {\n\t\tthis.modifiedDate = modifiedDate;\n\t}", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "Date getUpdatedDate();", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public com.google.protobuf.ByteString\n getModifyDateBytes() {\n java.lang.Object ref = modifyDate_;\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 modifyDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _paper.getModifiedDate();\n\t}", "public Date getModifierDate() {\n return modifierDate;\n }", "public com.google.protobuf.ByteString\n getModifyDateBytes() {\n java.lang.Object ref = modifyDate_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n modifyDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public java.util.Date getModifiedDate() {\n return _partido.getModifiedDate();\n }" ]
[ "0.707603", "0.6880671", "0.684024", "0.6826179", "0.65779287", "0.65779287", "0.65779287", "0.6571109", "0.65295464", "0.647489", "0.647489", "0.647489", "0.6433518", "0.64311105", "0.6362099", "0.6361414", "0.6355892", "0.6326414", "0.6326414", "0.6322687", "0.6322269", "0.6322269", "0.6319966", "0.6299041", "0.62971216", "0.6293763", "0.628239", "0.6279749", "0.62706095", "0.62706095", "0.62072355", "0.61748385", "0.6072625", "0.6072625", "0.6053099", "0.6029279", "0.60226107", "0.6009922", "0.6009922", "0.6009922", "0.5999915", "0.5996573", "0.5994963", "0.59910345", "0.59763765", "0.5952275", "0.595215", "0.59281546", "0.5909234", "0.5909234", "0.5909234", "0.58741146", "0.586845", "0.58504426", "0.5841842", "0.58278775", "0.5821366", "0.582077", "0.581975", "0.581975", "0.581975", "0.581354", "0.5809259", "0.5808313", "0.5806915", "0.5806915", "0.5806915", "0.5800141", "0.5781282", "0.5781282", "0.5773531", "0.57651955", "0.57651955", "0.57651955", "0.5743796", "0.57405245", "0.57329863", "0.57305306", "0.57187796", "0.5702003", "0.5702003", "0.5692536", "0.56845945", "0.56511205", "0.56497115", "0.56482166", "0.5643759", "0.5643759", "0.56419474", "0.5634817", "0.5634817", "0.5630008", "0.56199545", "0.56191736", "0.5608845", "0.5599284", "0.55941904", "0.5593095", "0.55832684", "0.5575979" ]
0.7054846
1
Sets value as attribute value for MODIFIED_DATE using the alias name ModifiedDate.
public void setModifiedDate(Timestamp value) { setAttributeInternal(MODIFIEDDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }", "public void setDateModified(Date dateModified);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "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 void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\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 }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_changesetEntry.setModifiedDate(modifiedDate);\n\t}", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_employee.setModifiedDate(modifiedDate);\n\t}", "public void setModifiedDate(Date modifiedDate) {\n\t\tthis.modifiedDate = modifiedDate;\n\t}", "public void setModifieddate(Date modifieddate) {\n this.modifieddate = modifieddate;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_second.setModifiedDate(modifiedDate);\n\t}", "public void setModifiedDate(java.lang.String modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "void setModifyDate(final Date lastModifiedDate);", "@Override\n\tpublic void setModifiedDate(java.util.Date ModifiedDate) {\n\t\t_locMstLocation.setModifiedDate(ModifiedDate);\n\t}", "public void setDateModified(java.util.Date dateModified){\r\n\t\tthis.dateModified = dateModified;\r\n\t}", "Builder addDateModified(Date value);", "Builder addDateModified(String value);", "public void setUpdatedDate(Date value) {\n setAttributeInternal(UPDATEDDATE, value);\n }", "public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }", "public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dictData.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}", "@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\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 final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmHistoryMaritime.setModifiedDate(modifiedDate);\n\t}", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "void setUpdatedDate(Date updatedDate);", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGTShipPosition.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_paper.setModifiedDate(modifiedDate);\n\t}", "public boolean setModifiedDate(String date)\r\n \t{\r\n lastModified = date;\r\n return true;\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_scienceApp.setModifiedDate(modifiedDate);\n\t}", "Builder addDateModified(DateTime value);", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_candidate.setModifiedDate(modifiedDate);\n\t}", "public void setUpdatedOn(Date updatedOn);", "public Date getDateModifed(){return dateModified;}", "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 void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }", "void setModificationDate( String username, Date modificationDate )\n throws UserNotFoundException;", "public void setDatemodified(String datemodified) {\n\t\tthis.datemodified = datemodified == null ? null : datemodified.trim();\n\t}", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "@JsonProperty(\"modified_date\")\n\tpublic Date getModified_date() {\n\t\treturn modifiedDate;\n\t}", "void setDateUpdated(final Date dateUpdated);", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public void setLastModifiedDate(InstantFilter lastModifiedDate) {\n\t\tthis.lastModifiedDate = lastModifiedDate;\n\t}", "public Builder setModifyDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n modifyDate_ = value;\n onChanged();\n return this;\n }", "public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }", "public void setModified_date(java.util.Date modified_date) {\n\t\t_primarySchoolStudent.setModified_date(modified_date);\n\t}", "public Date getModifieddate() {\n return modifieddate;\n }", "public void setDatemodified(String datemodified) {\n this.datemodified = datemodified == null ? null : datemodified.trim();\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public void setDATE_UPDATED(Date DATE_UPDATED) {\r\n this.DATE_UPDATED = DATE_UPDATED;\r\n }", "public Date getSrcModifiedDate() {\r\n return (Date) getAttributeInternal(SRCMODIFIEDDATE);\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getDateModified();", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "@Override\n\tpublic Date getModifiedDate();", "@Override\n\tpublic Date getModifiedDate();", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }" ]
[ "0.778343", "0.763917", "0.763917", "0.76324016", "0.7534486", "0.7534486", "0.7534486", "0.7495694", "0.74019384", "0.72093755", "0.72093755", "0.7119853", "0.7119853", "0.7119853", "0.70829034", "0.70829034", "0.70286804", "0.7024258", "0.70005333", "0.69531476", "0.68762404", "0.6858642", "0.68367636", "0.6815108", "0.6774049", "0.6772435", "0.6764937", "0.6764937", "0.6764937", "0.67379326", "0.6712679", "0.6686358", "0.6636909", "0.6622831", "0.6568555", "0.6559042", "0.6518079", "0.64838725", "0.64838725", "0.6467978", "0.6446583", "0.64309263", "0.64262384", "0.64262384", "0.64262384", "0.6381026", "0.6351627", "0.6330882", "0.62970525", "0.62970525", "0.62970525", "0.6296777", "0.62712675", "0.6270046", "0.626854", "0.626784", "0.6245389", "0.62442684", "0.6241877", "0.6241877", "0.6241877", "0.6224512", "0.62198687", "0.6215155", "0.6204252", "0.61609775", "0.61515874", "0.61515874", "0.61515874", "0.61503386", "0.61503386", "0.61250114", "0.611927", "0.61178994", "0.61166567", "0.6097709", "0.60843927", "0.6084273", "0.6082827", "0.6081999", "0.60719717", "0.60712934", "0.6069015", "0.6055289", "0.6041382", "0.6029882", "0.6029882", "0.60268074", "0.60268074", "0.60059726", "0.59955585", "0.59955585", "0.59847736", "0.59776103", "0.5974666", "0.59470695", "0.59470695", "0.59422815", "0.59237224", "0.59237224" ]
0.7359474
9
Gets the attribute value for NOTI_DESCRIPTION_LOCALISED using the alias name NotiDescriptionLocalised.
public String getNotiDescriptionLocalised() { return (String) getAttributeInternal(NOTIDESCRIPTIONLOCALISED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNotiDescriptionLocalised(String value) {\r\n setAttributeInternal(NOTIDESCRIPTIONLOCALISED, value);\r\n }", "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public java.lang.String getDescription() {\n return localDescription;\n }", "public String getNotiDescription() {\r\n return (String) getAttributeInternal(NOTIDESCRIPTION);\r\n }", "public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }", "public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }", "public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }", "public String getLocalString() {\r\n return localizedString;\r\n }", "com.microsoft.schemas.xrm._2011.contracts.Label getDescription();", "public com.commercetools.api.models.common.LocalizedString getDescription() {\n return this.description;\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "public String getDescription() {\n return (String)getAttributeInternal(DESCRIPTION);\n }", "public java.lang.String getDescription()\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(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getLocal() {\n\t\treturn this.local;\n\t}", "public int getDescriptionType(){\n return localDescriptionType;\n }", "public java.lang.String getDescription()\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(DESCRIPTION$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getUnlocalizedDescription() {\n return \"qa.journal.item.\" + key + \".desc\";\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDescription() {\n return (String) getAttributeInternal(DESCRIPTION);\n }", "String getLocalDistTitle() {\n\t\treturn this.titleForLocalDist;\n\t}", "public String getCountryDescription() {\n return (String)getAttributeInternal(COUNTRYDESCRIPTION);\n }", "@Transient\n\tpublic String getNonRefundableDescription(){\n\t\treturn this.mNonRefundableDescription;\n\t}", "public java.lang.String getDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "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 StrColumn getLabelAltIdU() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id_u\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id_u\"));\n }", "public java.lang.String getDescription()\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(DESCRIPTION$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public StrColumn getLabelAltIdV() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id_v\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id_v\"));\n }", "LanguageDescription getDescription() {\n\t\treturn langDescription;\n\t}", "public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }", "String getLocalization();", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public int getOldValues_descriptionType(){\n return localOldValues_descriptionType;\n }", "public String getEnglishDescription() {\n return mEnglishDescription;\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public Optional<String> getDescription() {\n return Optional.ofNullable(description);\n }", "public AXValue getDescription() {\n return description;\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.APDExposure_Description_L10N[] getDescription_L10N_ARRAY();", "public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }", "@Nullable\n public String getDescription() {\n return mDescription;\n }", "public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescriptionElement() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}", "public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}", "public static String getLocalLabel() {\r\n\t\treturn \"l\" + SEQ_LOCAL_LABEL++;\r\n\t}", "public javax.accessibility.Accessible getAccessibleColumnDescription(int c) {\n try {\n return new javax.swing.JLabel(\n unoAccessibleTable.getAccessibleColumnDescription(c));\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StringDt getDescription() { \n\t\tif (myDescription == null) {\n\t\t\tmyDescription = new StringDt();\n\t\t}\n\t\treturn myDescription;\n\t}", "public StrColumn getLabelAltId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id\"));\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getLocality() {\r\n return locality;\r\n }", "public String getNomcheflieu() {\n return (String) getAttributeInternal(NOMCHEFLIEU);\n }", "@ZAttr(id=-1)\n public String[] getDescription() {\n return getMultiAttr(Provisioning.A_description);\n }", "@Nullable\n public String getDescription() {\n return this.description;\n }", "public String getDescription()\n {\n return this.mDescription;\n }", "public String getGeneralDescription() {\r\n return generalDescription;\r\n }", "public String longDescription() {\n return this.longDescription;\n }", "public Object getDescription() {\n\t\treturn null;\n\t}", "String getDisplay_description();", "public String getpDescription() {\n return pDescription;\n }", "public java.lang.Object getDescription() {\n return description;\n }", "public java.lang.String getOldValues_description(){\n return localOldValues_description;\n }", "public java.lang.String getPresentity(){\r\n return localPresentity;\r\n }", "public String getLocalizedName()\n {\n return StatCollector.translateToLocal(this.getUnlocalizedName() + \".\" + TreeOresLogs2.EnumType.DIAMOND.getUnlocalizedName() + \".name\");\n }", "public String getNomdepartement() {\n return (String) getAttributeInternal(NOMDEPARTEMENT);\n }", "public String getLBR_SitNF();", "public void setNotiDescription(String value) {\r\n setAttributeInternal(NOTIDESCRIPTION, value);\r\n }", "public abstract java.lang.String getCod_localidad();", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescricaoPotencialUse() {\n return this.descricaoPotencialUse;\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public String getDescriptionText() {\n return m_DescriptionText;\n }", "public String getProductCategoryDesc() {\n return (String)getAttributeInternal(PRODUCTCATEGORYDESC);\n }", "public final String getDescription() { return mDescription; }", "public String getLocalizedName() {\n\t\treturn this.name().toUpperCase();\n\t}", "java.lang.String getDesc();", "public java.lang.String getIV_Local_currency() {\r\n return IV_Local_currency;\r\n }", "public java.lang.String getNewValues_description(){\n return localNewValues_description;\n }", "public org.apache.xmlbeans.XmlString xgetDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n return target;\r\n }\r\n }", "public String getDescr() {\r\n return descr;\r\n }", "public String getLocalizedName() {\n return resourceMap.getString(getLocalizationKey());\n }", "public String getcDescription() {\n return cDescription;\n }", "public String getDescription() {\n return mDescription;\n }", "public io.envoyproxy.envoy.config.core.v3.Locality getLocality() {\n if (localityBuilder_ == null) {\n return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_;\n } else {\n return localityBuilder_.getMessage();\n }\n }", "public YangString getLocalConfigApnValue() throws JNCException {\n YangString localConfigApn = (YangString)getValue(\"local-config-apn\");\n if (localConfigApn == null) {\n localConfigApn = new YangString(\"default.apnni.com\"); // default\n }\n return localConfigApn;\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }" ]
[ "0.6730468", "0.5975574", "0.5956282", "0.5843688", "0.579844", "0.57702756", "0.56223994", "0.5493639", "0.54824364", "0.5452037", "0.5399511", "0.5380712", "0.5380712", "0.536522", "0.5355149", "0.53475434", "0.5341805", "0.5287741", "0.5272493", "0.5255768", "0.5181596", "0.5179252", "0.5142704", "0.5140946", "0.5126975", "0.5125744", "0.5122836", "0.51090014", "0.5105668", "0.50972646", "0.5066519", "0.5020532", "0.50028723", "0.5002222", "0.4975495", "0.49662864", "0.49552807", "0.49461624", "0.49461624", "0.49461624", "0.49461624", "0.49338514", "0.49290422", "0.4911348", "0.49034792", "0.48982027", "0.48982027", "0.48982027", "0.48982027", "0.48977485", "0.48977485", "0.48932835", "0.48911035", "0.48847884", "0.48847884", "0.48833284", "0.48783508", "0.48747775", "0.48669958", "0.48662102", "0.4844538", "0.48434895", "0.48428297", "0.48370764", "0.4835949", "0.48134968", "0.4812867", "0.4811796", "0.4810227", "0.48096174", "0.47993582", "0.47964454", "0.4791105", "0.47886252", "0.4787347", "0.4784779", "0.4784779", "0.47825238", "0.4778859", "0.4778859", "0.47771457", "0.47768423", "0.47743705", "0.47668126", "0.47659147", "0.47658396", "0.47639418", "0.4763554", "0.4762063", "0.4759917", "0.47584346", "0.47571778", "0.4756545", "0.47503552", "0.47475392", "0.47475392", "0.47475392", "0.47475392", "0.47475392", "0.4747398" ]
0.78898513
0
Sets value as attribute value for NOTI_DESCRIPTION_LOCALISED using the alias name NotiDescriptionLocalised.
public void setNotiDescriptionLocalised(String value) { setAttributeInternal(NOTIDESCRIPTIONLOCALISED, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNotiDescriptionLocalised() {\r\n return (String) getAttributeInternal(NOTIDESCRIPTIONLOCALISED);\r\n }", "public void setNotiDescription(String value) {\r\n setAttributeInternal(NOTIDESCRIPTION, value);\r\n }", "public void setNewValues_description(java.lang.String param){\n localNewValues_descriptionTracker = true;\n \n this.localNewValues_description=param;\n \n\n }", "void setNilDescription();", "public void setOldValues_description(java.lang.String param){\n localOldValues_descriptionTracker = true;\n \n this.localOldValues_description=param;\n \n\n }", "public void setLocalized(final boolean loc) {\n this.localized = loc;\n }", "public void setTranslatedLovDisplayName(String translatedDisplayName)\n {\n _lovDisplayName = translatedDisplayName;\n }", "public void setLocalizedString(String newString) {\r\n localizedString = newString;\r\n }", "public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }", "public void setDescription(java.lang.String param) {\n localDescriptionTracker = true;\n\n this.localDescription = param;\n }", "public void setDescription(String pDescription) {\n\t\tthis.iDescription = pDescription;\n\t}", "public void setDescription(String tmp) {\n this.description = tmp;\n }", "public void setDescription(String tmp) {\n this.description = tmp;\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String lang, String value) {\n/* 171 */ setLangAlt(\"description\", lang, value);\n/* */ }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String value) {\n this.description = value;\n }", "void setDescription(com.microsoft.schemas.xrm._2011.contracts.Label description);", "public void setMeasureDescription(final InternationalString newValue) {\n checkWritePermission(measureDescription);\n measureDescription = newValue;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void changeDescription(Product p, String description){\r\n\t\tp.description = description;\r\n\t}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setDescription(String newdescription) {\n description=newdescription;\n }", "public void setDescription(String newDescription)\n\t{\n\t\tdescription = newDescription;\n\t\tdateModified = new Date();\n\t}", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "private void setDescription(String UserDescription){\n Description = UserDescription;\n }", "public void setLocalFlag(String value) {\n setAttributeInternal(LOCALFLAG, value);\n }", "public void setLocalFlag(String value) {\n setAttributeInternal(LOCALFLAG, value);\n }", "public void xsetDescription(org.apache.xmlbeans.XmlString description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.set(description);\r\n }\r\n }", "public void setDescription(String newDescription) {\n\t\tdescription = newDescription;\n\t}", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String description)\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(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.setStringValue(description);\r\n }\r\n }", "public void setCountryDescription(String value) {\n setAttributeInternal(COUNTRYDESCRIPTION, value);\n }", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void setDescription(String newDescription) {\n\t\tthis.description = newDescription;\n\t}", "void setDescribingLabel(ILabel describingLabel);", "public void setpDescription(String pDescription) {\n this.pDescription = pDescription;\n }", "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.set(description);\n }\n }", "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "void setdescription(String description) {\n\t\tthis.description = description;\n\t}", "public ImagingStudy setDescription(StringDt theValue) {\n\t\tmyDescription = theValue;\n\t\treturn this;\n\t}", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "public void setDescription(java.lang.String description)\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(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.setStringValue(description);\n }\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String description) {\n\t this.description = description;\n\t fullDescription = null;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String des){\n description = des;\n }", "public void setDescription(String sDescription);", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(java.lang.String description)\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(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);\n }\n target.setStringValue(description);\n }\n }", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setLocalisation(final Room pLocalisation){this.aLocalisation = pLocalisation;}", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "public void setDescription(String newDescription) {\n description = newDescription; // sets the appointment's description to the input\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public Binding setDescription(StringDt theValue) {\n\t\tmyDescription = theValue;\n\t\treturn this;\n\t}", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setValueDescription(String description) {\n this.valueDescription = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "void onLocalDescriptionCreatedAndSet(SessionDescriptionType type, String description);", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.DESCRIPTION,\n jname = \"description\",\n adderName = \"description\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setDescriptions(final Set<BwLongString> val) {\n descriptions = val;\n }", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String newValue);", "public void setDescription(String newValue);", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);\n }\n target.set(description);\n }\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setlDescripcion(String lDescripcion) {\n\t\tthis.lDescripcion = lDescripcion;\n\t}", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n if (!isSame(description, super.getDescription()) || this.description != null) {\r\n this.description = description;\r\n super.setDescription(description);\r\n }\r\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}", "public void setDescription(String description) {\n\t\tthis.description = description;\n\t}" ]
[ "0.6807748", "0.6238011", "0.5767937", "0.57020473", "0.5645847", "0.5638269", "0.5635889", "0.5519141", "0.5485098", "0.54599017", "0.5451346", "0.5451233", "0.5451233", "0.5426756", "0.5401514", "0.5378192", "0.5368828", "0.5343938", "0.53401995", "0.53396297", "0.53036815", "0.52834564", "0.52823293", "0.52793807", "0.52614886", "0.5258128", "0.52480644", "0.52480644", "0.5232274", "0.5225977", "0.5224133", "0.521978", "0.5215398", "0.5214573", "0.5208473", "0.5203509", "0.52023464", "0.51958716", "0.51922965", "0.5191188", "0.5186534", "0.51856995", "0.518564", "0.51854587", "0.51854587", "0.51854587", "0.5182889", "0.517929", "0.51777387", "0.5177324", "0.5175235", "0.5167691", "0.51663333", "0.516047", "0.5148703", "0.51345515", "0.51238143", "0.5115665", "0.5112186", "0.5109923", "0.5096708", "0.5095402", "0.5095402", "0.5095402", "0.5095402", "0.5095402", "0.5094493", "0.50943696", "0.50943696", "0.50943696", "0.50943696", "0.50943696", "0.50943696", "0.50943696", "0.5092104", "0.5083072", "0.5082133", "0.50814825", "0.5080445", "0.5080445", "0.5078298", "0.50773644", "0.50742733", "0.50520575", "0.5048789", "0.5048789", "0.50486654", "0.5041085", "0.50363827", "0.50318855", "0.50309634", "0.50309634", "0.50309634", "0.50309634", "0.50309634", "0.50294036", "0.50294036", "0.50294036", "0.50294036", "0.50294036" ]
0.82122076
0
Gets the attribute value for the calculated attribute readFlag.
public Boolean getreadFlag() { if(this.getShowFlag()!=null && this.getShowFlag().trim().equalsIgnoreCase("NO")){ return true; } else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getValue( String readMode ) {\n if ( readMode.trim().equalsIgnoreCase( SINGLE_READ ) ) {\n return -1;\n } else if ( readMode.trim().equalsIgnoreCase( MULTIPLE_READ ) ) {\n return -1;\n } else if ( readMode.trim().equalsIgnoreCase( XML_READ_CLASS ) ) {\n return XML_READ_VALUE;\n } else if ( readMode.trim().equalsIgnoreCase( TEXT_READ_CLASS ) ) {\n return TEXT_READ_VALUE;\n } else {\n return UNDEFINED_READ_VALUE;\n }\n }", "public double getReading() {\n return this.getDataRef().get();\n }", "public boolean getRead() {\n\t\treturn read;\n\t}", "public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}", "public boolean getRead() {\n return read_;\n }", "public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }", "public boolean getRead() {\n return read_;\n }", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "public boolean getForRead() {\n return forRead_;\n }", "public boolean getForRead() {\n return forRead_;\n }", "boolean getForRead();", "public String getAttrVal() {\n return attrVal;\n }", "public byte getReadId() {\n return this.btReadId;\n }", "public String getReadWriteAttribute();", "@Override\n public int[] getAttributeIndexToRead()\n {\n java.util.ArrayList<Integer> attributes = new java.util.ArrayList<Integer>();\n //LN is static and read only once.\n if (LogicalName == null || LogicalName.compareTo(\"\") == 0)\n {\n attributes.add(1);\n }\n //ScalerUnit\n if (!isRead(3))\n {\n attributes.add(3);\n }\n //Value\n if (canRead(2))\n {\n attributes.add(2);\n } \n return toIntArray(attributes);\n }", "public long getReadCounter () {\n\t\treturn readCounter;\n\t}", "public Boolean getIsRead() {\n return isRead;\n }", "public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}", "public boolean read() {\n return this.read;\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "org.hl7.fhir.Integer getReadCoverage();", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public double getReadingOnce() {\n return this.getDataRef().getOnce();\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public String getAttr() {\n return attr;\n }", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "public Date getReadTime() {\n\t\treturn readTime;\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public int read() {\n return (readInt());\n }", "public float getVal() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 8);\n\t\t}\n\t}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public Date getReadTime() {\n return readTime;\n }", "public double getReadPressure(){\n return this.mFarm.getReadPressure();\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public int getFlag()\n {\n return flag;\n }", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public long getValue() {\n\t\treturn this._value;\n\t}", "public final long getReadPosition() {\n\t\treturn m_rxpos;\n\t}", "public long getContainNReadNum() {\n return containNReadNum;\n }", "@SuppressWarnings({\"UnusedParameters\"})\n private String getAttributeValue(\n XMLStreamReader reader, String namespace, String localName) {\n for (int i = 0 ; i < reader.getAttributeCount() ; i++) {\n if (localName.equals(reader.getAttributeLocalName(i))) {\n return reader.getAttributeValue(i);\n }\n }\n return null;\n }", "public void setreadFlag(Boolean value) {\r\n setAttributeInternal(READFLAG, value);\r\n }", "public Date getTimeRead() {\n\t\treturn new Date(timeRead.getTime());\n\t}", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "boolean getRead();", "@java.lang.Override\n public com.google.protobuf.FieldMask getReadMask() {\n return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;\n }", "public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}", "public Integer getFLAG() {\n return FLAG;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public String getRelativeflag() {\n return (String)getAttributeInternal(RELATIVEFLAG);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getReadonlyFlag() {\n return readonlyFlag;\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public String getAttr11() {\n return attr11;\n }", "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "@Override\n public Value64 read() {\n int s = input0.read().intValue();\n int t = input1.read().intValue();\n long d = 0;\n switch (mduOp.read().byteValue()) {\n case AluOp.Multiply:\n d = s * t;\n break;\n case AluOp.Divide:\n d = s / t;\n break;\n }\n return new Value64(d);\n }", "public com.google.protobuf.FieldMask getReadMask() {\n if (readMaskBuilder_ == null) {\n return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;\n } else {\n return readMaskBuilder_.getMessage();\n }\n }", "public int getRawFlag() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0811c831-ddd9-4df1-b31c-c5d631e39389\");\n return rawFlag;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public boolean isRead(){\n \treturn isRead;\n }", "public LocalDateTime getReadTime() {\n\t\treturn readTime;\n\t}", "public int getValue() { return getValue(OPEN); }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "java.lang.String getAttribute();", "protected abstract T getNormalFlagValue();", "public long getValue() {\n return value_;\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Field(2) \n\tpublic long Value() {\n\t\treturn this.io.getLongField(this, 2);\n\t}", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "@Override\n public int getFlag() {\n return flag_;\n }", "public Integer getCorrectflag() {\n return correctflag;\n }", "public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}", "public RecordFlagEnum getFlag();", "final public float getFloatAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Value;\r\n\t\t\treturn mSaveAttr.Value;\r\n\t\t}", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public long getValue() {\n\treturn value;\n }", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public long getValue() {\n return value_;\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }", "public byte readByte() {\n return ((byte) readLong());\n }", "public String getAttr9() {\n return attr9;\n }", "public abstract double readLightValue();" ]
[ "0.6961402", "0.6478052", "0.6282821", "0.6220891", "0.62011564", "0.6159225", "0.61443466", "0.6141862", "0.60341775", "0.59923214", "0.5983742", "0.59447694", "0.592215", "0.58717155", "0.5867585", "0.5840144", "0.58255804", "0.5820264", "0.5811005", "0.5795335", "0.5776717", "0.5762346", "0.57393086", "0.5724721", "0.5721694", "0.5718073", "0.57146865", "0.569351", "0.5688742", "0.5677367", "0.5667624", "0.5662839", "0.5636066", "0.5628166", "0.5596331", "0.55918664", "0.5586369", "0.5575304", "0.5568343", "0.55669343", "0.55544615", "0.5525209", "0.5524897", "0.5519781", "0.5504615", "0.5502654", "0.54787666", "0.54679084", "0.54634094", "0.5458526", "0.5456735", "0.54563856", "0.5454908", "0.5450931", "0.5450095", "0.54482985", "0.54448843", "0.54439306", "0.5443918", "0.5438213", "0.5438213", "0.5420562", "0.5417533", "0.5404775", "0.5370014", "0.53673637", "0.5365975", "0.5365595", "0.536552", "0.5336209", "0.5335023", "0.5329899", "0.5329645", "0.53286856", "0.5325842", "0.53183365", "0.5292885", "0.5292794", "0.52912754", "0.52791727", "0.5278838", "0.5276438", "0.52747416", "0.5274473", "0.5269955", "0.52699023", "0.5268613", "0.52680427", "0.5267316", "0.5264206", "0.52594125", "0.52546155", "0.52487546", "0.5247708", "0.52411276", "0.523629", "0.5236138", "0.5234053", "0.52292573", "0.5224501" ]
0.5865456
15
Sets value as the attribute value for the calculated attribute readFlag.
public void setreadFlag(Boolean value) { setAttributeInternal(READFLAG, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setRead(boolean value) {\n bitField0_ |= 0x00000008;\n read_ = value;\n onChanged();\n return this;\n }", "public Builder setForRead(boolean value) {\n bitField0_ |= 0x00000002;\n forRead_ = value;\n onChanged();\n return this;\n }", "public void setRead(){\n \tthis.isRead = true;\n }", "public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void setIsRead(Boolean isRead) {\n this.isRead = isRead;\n }", "public void setIsRead(boolean isRead) {\n mIsRead = isRead;\n }", "public void set_reading(int value) {\n setUIntBEElement(offsetBits_reading(), 16, value);\n }", "public Value setReadOnly() {\n checkNotUnknown();\n if (isReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_READONLY;\n return canonicalize(r);\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "public void setMailReadflag(int v) \n {\n \n if (this.mailReadflag != v)\n {\n this.mailReadflag = v;\n setModified(true);\n }\n \n \n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public Value setAttributes(boolean dontenum, boolean dontdelete, boolean readonly) {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n if (dontdelete)\n r.flags |= ATTR_DONTDELETE;\n else\n r.flags |= ATTR_NOTDONTDELETE;\n if (readonly)\n r.flags |= ATTR_READONLY;\n else\n r.flags |= ATTR_NOTREADONLY;\n if (dontenum)\n r.flags |= ATTR_DONTENUM;\n else\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }", "public void setReadonlyFlag(String readonlyFlag) {\n this.readonlyFlag = readonlyFlag == null ? null : readonlyFlag.trim();\n }", "public void setFlag(RecordFlagEnum flag);", "public void setFlag(int which) {\n setFlag(which, true);\n }", "protected final boolean didRead (boolean value) { return didRead = value;}", "public void read() {\n\t\tthis.isRead = true;\n\t}", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "void setInt(int attributeValue);", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void apply() { writable.setValue(value); }", "public void setAttrib(String name, String value);", "public String getReadWriteAttribute();", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setNbr_read(int nbr_read) {\r\n\t\tthis.nbrRead = nbr_read;\r\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public static void setRd(byte rd) {\n MEMWBRegister.rd = rd;\n }", "public void setRentalFlag(Character aRentalFlag) {\n rentalFlag = aRentalFlag;\n }", "void setBinaryFileAttribute(boolean flag);", "public void setValue(boolean value) {\n this.value = value;\n }", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "public void setFlags(long uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(Long.toString(uid));\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "void setMetadataValue(String name, String value) throws IOException;", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public void setReadTime(Date readTime) {\n\t\tthis.readTime = readTime;\n\t}", "public void setAttrib(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib attrib) {\r\n this.attrib = attrib;\r\n }", "public void setFlags(String uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(uid);\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }", "public void setRawFlag(final int rawFlag) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e6d9783a-df0e-4db2-926b-f8935921c8da\");\n this.rawFlag = rawFlag;\n }", "public void setReadTime(Date readTime) {\n this.readTime = readTime;\n }", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setReader(ACRReader reader){\r\n this.reader = reader;\r\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "void setToValue(int val);", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public static void setNumber(RandomAccessFile raf, int i, int value) throws IOException {\n raf.seek(4 * i);\n raf.writeInt(value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public Value setNotReadOnly() {\n checkNotUnknown();\n if (isNotReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_NOTREADONLY;\n return canonicalize(r);\n }", "protected void changeValue() {\n \tif(value == null)\n \t\tvalue = true;\n \telse if(!value) { \n \t\tif (mode == Mode.THREE_STATE)\n \t\t\tvalue = null;\n \t\telse\n \t\t\tvalue = true;\n \t}else\n \t\tvalue = false;\n \t\n \tsetStyle();\n \t\n \tValueChangeEvent.fire(this, value);\n }", "public void setSingleReads(boolean singleReads) {\n\t\tthis.singleReads = singleReads;\n\t}", "@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "public BladeController setAttr(String name, Object value) {\n\t\trequest.setAttribute(name, value);\n\t\treturn this;\n\t}", "public void setQualFlag(String value) {\r\n setAttributeInternal(QUALFLAG, value);\r\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public void set(File file, String view, String attribute, Object value, boolean create) {\n/* 131 */ throw unsettable(view, attribute);\n/* */ }", "void setValue(R value);", "public void setVal(float val) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 8, val);\n\t\t}\n\t}", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "public void attribute(String name, String value, boolean specified)\n\t\t\t\tthrows Exception {\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"attr\", name + \"=\\\"\" + value + \"\\\" (\" + specified + \")\");\n\t\t\t}\n\n\t\t\tif (name == null) {\n\t\t\t\tlogError(\"Attribute has no name\");\n\t\t\t} else {\n\t\t\t\t_attributes.put(name, value);\n\t\t\t}\n\t\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "protected void setValuesFromAlignment(final SAMRecord rec, final SAMRecord alignment) {\n for (final SAMRecord.SAMTagAndValue attr : alignment.getAttributes()) {\n // Copy over any non-reserved attributes.\n if (RESERVED_ATTRIBUTE_STARTS.indexOf(attr.tag.charAt(0)) == -1) {\n rec.setAttribute(attr.tag, attr.value);\n }\n }\n rec.setReadUnmappedFlag(alignment.getReadUnmappedFlag());\n rec.setReferenceIndex(alignment.getReferenceIndex());\n rec.setAlignmentStart(alignment.getAlignmentStart());\n rec.setReadNegativeStrandFlag(alignment.getReadNegativeStrandFlag());\n if (!alignment.getReadUnmappedFlag()) {\n // only aligned reads should have cigar and mapping quality set\n rec.setCigar(alignment.getCigar()); // cigar may change when a\n // clipCigar called below\n rec.setMappingQuality(alignment.getMappingQuality());\n }\n if (rec.getReadPairedFlag()) {\n rec.setProperPairFlag(alignment.getProperPairFlag());\n rec.setInferredInsertSize(alignment.getInferredInsertSize());\n rec.setMateUnmappedFlag(alignment.getMateUnmappedFlag());\n rec.setMateReferenceIndex(alignment.getMateReferenceIndex());\n rec.setMateAlignmentStart(alignment.getMateAlignmentStart());\n rec.setMateNegativeStrandFlag(alignment.getMateNegativeStrandFlag());\n }\n \n // If it's on the negative strand, reverse complement the bases\n // and reverse the order of the qualities\n if (rec.getReadNegativeStrandFlag()) {\n SAMRecordUtil.reverseComplement(rec);\n }\n \n if (clipAdapters && rec.getAttribute(ReservedTagConstants.XT) != null){\n CigarUtil.softClip3PrimeEndOfRead(rec, rec.getIntegerAttribute(ReservedTagConstants.XT));\n }\n }", "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}" ]
[ "0.6592029", "0.63829464", "0.62021774", "0.61944497", "0.6142984", "0.6142984", "0.6099267", "0.5987795", "0.5900639", "0.5864505", "0.5687386", "0.56858706", "0.5661125", "0.5606195", "0.55916786", "0.55667764", "0.55595815", "0.55242217", "0.54180765", "0.53861684", "0.53786755", "0.53784174", "0.5377304", "0.53593576", "0.5355484", "0.53264016", "0.530258", "0.53021896", "0.52711684", "0.52586645", "0.52530104", "0.5252757", "0.5240778", "0.52371407", "0.52292216", "0.5208204", "0.51891714", "0.5182919", "0.51668", "0.51421344", "0.5137263", "0.5129994", "0.5123835", "0.5108078", "0.5104889", "0.508575", "0.50839394", "0.50678754", "0.50673485", "0.5064645", "0.505543", "0.503055", "0.50241154", "0.5016219", "0.5009524", "0.5004389", "0.50030285", "0.4995247", "0.49676973", "0.49676716", "0.49438074", "0.4940274", "0.49318758", "0.49282375", "0.49074724", "0.4905305", "0.49008915", "0.48824745", "0.48776314", "0.48732433", "0.48724413", "0.4869848", "0.48582035", "0.48521394", "0.48477665", "0.48458868", "0.483639", "0.48213476", "0.4813773", "0.4807615", "0.4804399", "0.48034707", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48029763", "0.48016423", "0.48015222", "0.4799839", "0.4796292" ]
0.72563744
0
Gets the attribute value for the calculated attribute encodedCard.
public String getencodedCard() { String cardDesc=""; String partnerId=""; String cardId=""; if(session!=null) { if (session.getAttribute("Partner_Object_List") != null) { partnerInfoList = (List<PartnerInfo>)session.getAttribute("Partner_Object_List"); if(getPartner()!=null && !getPartner().equals("") && getCardPk() != null && !getCardPk().equals("")){ partnerId=getPartner(); cardId=getCardPk().toString().trim(); if (partnerInfoList != null) { for (int k = 0; k < partnerInfoList.size(); k++) { if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) { for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) { for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) { for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) { if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) { if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null) { cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString(); } } } } } } } } } } } return cardDesc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCardValue() {\n return Cvalue;\n }", "public ByteArrayAttribute getValue() {\n return value;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute_value() {\n return attribute_value;\n }", "public int getCardValue()\n {\n return cardValue; \n }", "public int getValue() {\n\t\tif (!this.isCard()) {\n\t\t\tSystem.out.println(\"Error! \" + id + \" isn't a card!\");\n\t\t\treturn 0;\n\t\t} else if (id % 13 != 0)\n\t\t\treturn id % 13;\n\t\telse\n\t\t\treturn 13;\n\t}", "public int getCardVal(){\n\t\tint aces = 0;\n\t\tif(cardString.charAt(0) == 'J' || cardString.charAt(0) == 'Q' || cardString.charAt(0) == 'K' || cardString.charAt(0) == 'T'){\n\t\t\tcardValue = 10;\n\t\t}\n\t\telse if(cardString.charAt(0) == 'A'){\n\t\t\tcardValue = 11;\n\t\t}\n\t\telse{\n\t\t\tcardValue = Character.getNumericValue(cardString.charAt(0));\n\t\t}\n\t\treturn cardValue;\n\t}", "public String getAttrVal() {\n return attrVal;\n }", "public String getAttrValue() {\r\n\t\treturn attrValue;\r\n\t}", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "public Number getValue() {\n return (Number) getAttributeInternal(VALUE);\n }", "@Override\n\tpublic byte[] getValue() throws AttributeValueException {\n\t\treturn null;\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getValue() {\n return super.getAttributeValue();\n }", "public int getCardValue(int card) {\n\t\tint result = card;\n\t\tswitch (card) {\n\t\tcase 11:\n\t\tcase 12:\n\t\tcase 13:\n\t\t\tresult = 10;\n\t\t}\n\t\treturn result;\n\t}", "private byte getValue() {\n\t\treturn value;\n\t}", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public String getCardPk() {\r\n return (String) getAttributeInternal(CARDPK);\r\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }", "public byte getValue() {\n return value;\n }", "java.lang.String getAttribute();", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "Attribute getAttribute();", "public int highCardVal()\n\t{\n\t\tint value = 0;\n\t\t\n\t\tfor (int i=0; i<MAX_CARDS; i++)\n\t\t\tvalue += hand[i].getValue();\n\t\t\n\t\treturn value;\n\t}", "com.google.protobuf.ByteString getAttributeBytes();", "public int getAttribute() {\n return Attribute;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public static String getAttributeValue(AttributeList attributeList, AttributeTag tag) {\r\n Attribute attribute = attributeList.get(tag);\r\n String value = (attribute == null) ? null : attribute.getSingleStringValueOrNull();\r\n if (value != null) {\r\n value = value.replace('\\0', ' ').trim();\r\n byte[] vr = attribute.getVR();\r\n \r\n Class<?> vrClass = AttributeFactory.getClassOfAttributeFromValueRepresentation(tag, vr, true, TRANSFER_BUFFER_SIZE, true);\r\n \r\n if (vrClass.equals(TimeAttribute.class)) {\r\n String text = value.replaceFirst(\"\\\\..*\", \"\");\r\n Date date = null;\r\n try {\r\n date = new Date(Long.parseLong(text) * 1000);\r\n }\r\n catch (Exception ex) {\r\n // if there is a badly formatted time, then just return the unprocessed value.\r\n return value;\r\n }\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\r\n return timeFormat.format(date);\r\n }\r\n \r\n if (vrClass.equals(DateAttribute.class)) {\r\n String text = value.replaceFirst(\"\\\\..*\", \"\");\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n SimpleDateFormat dateParse = new SimpleDateFormat(\"yyyyMMdd\");\r\n Date date = dateParse.parse(text, parsePosition);\r\n if (date == null) {\r\n // if there is a badly formatted date, then just return the value.\r\n return value;\r\n }\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\r\n return dateFormat.format(date);\r\n \r\n }\r\n \r\n if (vrClass.equals(PersonNameAttribute.class)) {\r\n return value.replaceAll(\"\\\\^\", \" \").replaceAll(\" *\", \" \");\r\n }\r\n }\r\n return value;\r\n }", "public char getValue()\n\t{\n\t\treturn value;\n\t}", "public Byte getByteAttribute();", "public byte[] getValue() {\n return this.value;\n }", "public char getValue() {\n return value;\n }", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public String getAttribute() {\n return attribute;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public CsdlExpression getValue() {\n return value;\n }", "public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}", "public int getCardVal(boolean aceIsOne) {\n\t\tint val = (this.getCardNum()-1)/4 + 2;\n\t\tif(val==14 && aceIsOne)\n\t\t\tval = 1;\n\t\telse if(val > 10 && val < 14)\n\t\t\tval = 10;\n\t\telse if(val == 14)\n\t\t\tval = 11;\n\t\t\n\t\treturn val;\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "String getAttribute();", "public java.math.BigDecimal getCardMoney() {\r\n return localCardMoney;\r\n }", "public final String getValueAttribute() {\n String value = getAttributeValue(\"value\");\n if( value == ATTRIBUTE_NOT_DEFINED && this instanceof HtmlCheckBoxInput ) {\n value = \"on\";\n }\n return value;\n }", "public int cardValue(Card card) //translate string into card's numerical value\r\n {\r\n if (card.face.equals(\"Deuce\"))\r\n return 2;\r\n if (card.face.equals(\"Three\"))\r\n return 3;\r\n if (card.face.equals(\"Four\"))\r\n return 4;\r\n if (card.face.equals(\"Five\"))\r\n return 5;\r\n if (card.face.equals(\"Six\"))\r\n return 6;\r\n if (card.face.equals(\"Seven\"))\r\n return 7;\r\n if (card.face.equals(\"Eight\"))\r\n return 8;\r\n if (card.face.equals(\"Nine\"))\r\n return 9;\r\n if (card.face.equals(\"Ten\"))\r\n return 10;\r\n if (card.face.equals(\"Jack\"))\r\n return 11;\r\n if (card.face.equals(\"Queen\"))\r\n return 12;\r\n if (card.face.equals(\"King\"))\r\n return 13;\r\n if (card.face.equals(\"Ace\"))\r\n return 14;\r\n return -2;\r\n }", "public String getAttr() {\n return attr;\n }", "public String getAttrCode() {\r\n\t\treturn attrCode;\r\n\t}", "@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}", "public AXValue getValue() {\n return value;\n }", "public String getcardnumto() {\n return (String) getAttributeInternal(CARDNUMTO);\n }", "public double getCardNumber() {\n\t\treturn cardNumber;\n\t}", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getATR() {\n\t\tif (cardacos3 == null)\n\t\t\treturn null;\n\t\tATR atr = cardacos3.getATR();\n\t\tbyte[] atr_bytes = atr.getBytes();\n\t\tString atr_hex = HelpersFunctions.bytesToHex(atr_bytes);\n\t\treturn atr_hex;\n\t}", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "Object getAttribute(int attribute);", "public int getValue()\n {\n try\n {\n return (Integer) AlphaComposite.class.getField(name).get(null);\n }\n catch (Exception e)\n {\n return -1;\n }\n }", "int getAssetValue();", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getHandValue() {\n\t\tint value = 0;\n\t\tint aces = 0;\n\t\tfor (Card card : cardHand) {\n\t\t\t// convert suits to 10\n\t\t\tif (card.getValue() > 10) {\n\t\t\t\tvalue += 10;\n\t\t\t} else if (card.getValue() == 1) {\n\t\t\t\taces++;\n\t\t\t} else {\n\t\t\t\tvalue += card.getValue();\n\t\t\t}\n\t\t}\n\t\tvalue += calculateAce(value, aces);\n\n\t\treturn value;\n\t}", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "protected CompoundValue getCompoundValue() {\n return accessor.getValue(this);\n }", "public String getProductAttrValue() {\n return (String)getAttributeInternal(PRODUCTATTRVALUE);\n }", "private static int SCARD_ATTR_VALUE(int iClass, int iTag)\n {\n return (iClass << 16) | iTag;\n }", "public java.lang.String getGetBaseCardPriceResult() {\r\n return localGetBaseCardPriceResult;\r\n }", "public String getAttrEventValue() {\r\n\t\treturn attrEventValue;\r\n\t}", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}", "public String getValue() {\n return getMethodValue(\"value\");\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}", "public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }", "public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }", "@Generated\n @Selector(\"attenuationValue\")\n public native byte attenuationValue();", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public byte value() {\n return value;\n }", "public A getValue() { return value; }", "@GET\r\n\t@Path(\"/imageattribs\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic ImageAttribute getAttribute() {\r\n\t\tString directoryPath = ROOT_PATH_ON_MAC + \"/\" + AuxiliaryHelper.loadServerProperties().getProperty(\"image.folder\") + \"/\" ;\r\n\t\tFile folder = new File(directoryPath);\r\n\t\tFile[] files = folder.listFiles();\r\n\t\tString name = \"\";\r\n\t\tlong space = 0l;\r\n\t\tif(files.length > 0) {\r\n\t\t\tname = files[0].getName();\r\n\t\t\tspace = files[0].getTotalSpace();\r\n\t\t}\r\n\t\tImageAttribute imageAttribute = new ImageAttribute();\r\n\t\timageAttribute.setName(name);\r\n\t\timageAttribute.setSize(space);\r\n\t\treturn imageAttribute;\r\n\r\n\t}", "public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}", "public Instruction getValue() {\n return this.val;\n }", "public int packed() {\n return packedCard;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue(){\n return this.value;\n }", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Attrib getAttrib() {\r\n return attrib;\r\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public V getCValue();", "public int getValue() {\n return this.value;\n }", "public String getLastScalarAttrValue(String completeAttributeName) throws DevFailed {\n\n String result = null;\n if (newestValueCommand != null) {\n // res should contains the timestamp and the read part of the attribute separated by ;\n // eg 1363947098786; -10.176605465035054\n String res = newestValueCommand.execute(String.class, completeAttributeName);\n if(res != null){\n String[] attrWithTimeStamp = res.split(VALUE_SEP);\n if (attrWithTimeStamp != null && attrWithTimeStamp.length == 2) {\n result = attrWithTimeStamp[1].trim();\n }\n }\n }\n if(result == null || result.isEmpty()){\n DevFailedUtils.throwDevFailed(\"No result found executing \" + hdbExtractorName + \"/\" + NEWEST_CMD + \" for \" + completeAttributeName);\n }\n\n return result;\n }", "public java.lang.String getCardID() {\r\n return localCardID;\r\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }" ]
[ "0.65577173", "0.6493705", "0.64225596", "0.6355024", "0.6222861", "0.6216226", "0.61846006", "0.5968299", "0.5963205", "0.5935431", "0.5858787", "0.5851194", "0.5834533", "0.5828973", "0.58284146", "0.58186895", "0.5807955", "0.57833946", "0.5782885", "0.5757456", "0.57534534", "0.5750151", "0.571995", "0.5707248", "0.5701525", "0.5663393", "0.565921", "0.5649432", "0.5629698", "0.562294", "0.55947703", "0.5580174", "0.5572571", "0.5569154", "0.55538356", "0.55519956", "0.5551029", "0.5542407", "0.5539701", "0.55319667", "0.5530111", "0.5520903", "0.55133045", "0.54938006", "0.549045", "0.54818654", "0.5481229", "0.5473642", "0.5467537", "0.5450146", "0.544136", "0.54339594", "0.54339594", "0.5426856", "0.5426344", "0.5419312", "0.5404098", "0.53929675", "0.5389825", "0.53841615", "0.53841615", "0.53807443", "0.5380153", "0.53611064", "0.53528", "0.5350764", "0.53500664", "0.5347651", "0.5346185", "0.53271234", "0.53210974", "0.5320612", "0.53204024", "0.53108627", "0.5303642", "0.5303642", "0.5301993", "0.5294276", "0.52929664", "0.528892", "0.5287974", "0.5284755", "0.5284155", "0.5283637", "0.52812195", "0.52756137", "0.5272622", "0.5272622", "0.5272622", "0.5272622", "0.5270808", "0.5269647", "0.52684844", "0.52638537", "0.5259958", "0.5259576", "0.5258641", "0.52525836", "0.5250561", "0.524843", "0.524843" ]
0.0
-1
Sets value as the attribute value for the calculated attribute encodedCard.
public void setencodedCard(String value) { setAttributeInternal(ENCODEDCARD, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCardValue(String value) {\n this.Cvalue = value;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "public void setValue(AXValue value) {\n this.value = value;\n }", "public void setEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "public RADIUSAttribute setValue(final byte[] value) {\n this.value = value;\n return this;\n }", "public void setEncodedBy(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setValueOfCard(int valueOfCard) {\n this.valueOfCard = valueOfCard;\n }", "public void setValue(A value) {this.value = value; }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setValue(Object value) { this.value = value; }", "void setValue(byte value) {\n this.value = value;\n blockDrawables.get(selected).setValue(value);\n }", "public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setValue(Object value) {\n this.value = value;\n }", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setValue(Value value) {\n this.value = value;\n }", "public void setValue(final Object value) { _value = value; }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void set(String value){\n this.value = new BigInteger(value).toByteArray();\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void updateCard(Card card) {\n this.card.setValue(card);\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }", "public void setCValue(V value);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public String getCardValue() {\n return Cvalue;\n }", "public synchronized void setAttributeValue(@Nonnull final String value) {\n checkSetterPreconditions();\n attributeValue = Constraint.isNotNull(value, \"attributeValue must not be null\");\n }", "void setCard(Card card) {\n this.card = card;\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "@Override\n\tpublic void setCard(java.lang.String card) {\n\t\t_esfShooterAffiliationChrono.setCard(card);\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void set(byte[] value) {\n this.value = value;\n }", "public void setCardPk(String value) {\r\n setAttributeInternal(CARDPK, value);\r\n }", "public GraphAttribute(V value) {\n Rules.checkAttributeValue(value);\n this.value = value;\n this.valueClass = value.getClass();\n }", "public void setValue(String value)\n {\n _value = setNonEmptyValueAttribute(value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "void setValueCodeableConcept(org.hl7.fhir.CodeableConcept valueCodeableConcept);", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "public void setValue(int value) {\n\t\tthis.removeAllPCData();\n\t\ttry {\n\t\t\tthis.appendChild(new XPCData(Integer.toString(value)));\n\t\t} catch (Exception e) {\n\t\t\t//ignoring this because it shouldn't break\n\t\t}\n\t}", "public void setValue(int value) {\r\n this.value = value;\r\n }", "void setInt(int attributeValue);", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public static void setEncodedBy( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ENCODEDBY, value);\r\n\t}", "public void setValue(Object value);", "public void setAttribute(String key, Object value)\n {\n final IAttributeEditor editor = editors.get(key);\n if (editor != null)\n {\n editor.setValue(value);\n }\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "@Accessor(qualifier = \"dataExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTMEDIACODE, value);\n\t}", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue( String value )\n\t{\n//\t\tbyte[] bytes = value.getBytes(StandardCharsets.US_ASCII);\n//\t\tint max = Math.min( 11, value.length() );\n//\t\tfor( int i = 0; i < max; i++ )\n//\t\t\tthis.markingData.get(i).setValue( bytes[i] );\n//\t\t\n\t\t\n\t\tbyte[] bytes = value.getBytes(StandardCharsets.US_ASCII);\n\t\tint max = Math.min( 11, value.length() );\n\t\tfor( int i = 0; i < 11; i++ )\n\t\t{\n\t\t\tif( i >= max )\n\t\t\t\tthis.markingData.get(i).setValue( (byte)0 );\n\t\t\telse\n\t\t\t\tthis.markingData.get(i).setValue( bytes[i] );\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setcardnumto(String value) {\n setAttributeInternal(CARDNUMTO, value);\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public V setValue(V value);", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setAttribute(String name, Object value);", "public void setCardNo(int cardNumber);", "public void setValue(final List<String> attrValue) {\r\n if (attrValue != null) {\r\n this.value = attrValue;\r\n }\r\n }", "public void setCardinal(DTDCardinal aCardinal)\n {\n cardinal = aCardinal;\n }", "public int getCardValue()\n {\n return cardValue; \n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "private void setCard(@NonNull Card card) {\n Debug.trace(\"CardDetails\", card.toString());\n etCardNumber.setText(card.getCardNumber());\n etCardHolderName.setText(card.getCardHolderName());\n// etCardExpiryDate.removeTextListener();\n etCardExpiryDate.setText(DateFormatUtils.stringToStringConversion(card.getExpirationDate(), \"MM/yy\", \"MM/yyyy\"));\n// etCardExpiryDate.addDateSlash(etCardExpiryDate.getEditableText());\n// etCardExpiryDate.addTextListener();\n }", "public void addEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "public boolean set(char value, Suit suit) {\n if (Card.isValid(value, suit)) {\n this.errorFlag = false;\n this.value = value;\n this.suit = suit;\n return true;\n } else {\n this.errorFlag = true;\n return false;\n }\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public Card(Card card) {\n this.set(card.value, card.suit);\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void apply() { writable.setValue(value); }", "@Accessor(qualifier = \"voucherCode\", type = Accessor.Type.SETTER)\n\tpublic void setVoucherCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(VOUCHERCODE, value);\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }" ]
[ "0.66315943", "0.60150963", "0.6003675", "0.59295017", "0.5880699", "0.5877666", "0.58711416", "0.5841375", "0.579954", "0.5791941", "0.5787591", "0.5744039", "0.5715202", "0.5713778", "0.5689531", "0.56826746", "0.56643075", "0.56638664", "0.5661254", "0.5658284", "0.564149", "0.5600975", "0.5588217", "0.558416", "0.55811554", "0.5572481", "0.55681556", "0.555129", "0.5549577", "0.5549297", "0.55224776", "0.5498192", "0.5487948", "0.5470606", "0.5445547", "0.54403985", "0.5436641", "0.54347545", "0.5429306", "0.54013366", "0.54002774", "0.5388423", "0.5379495", "0.53764576", "0.53710693", "0.53670436", "0.5365928", "0.5363998", "0.5363105", "0.5355458", "0.534999", "0.53451496", "0.5342443", "0.5335187", "0.5322884", "0.53175324", "0.5314512", "0.5305719", "0.5302476", "0.52986413", "0.52956986", "0.52825856", "0.5271649", "0.5268899", "0.52660733", "0.5259496", "0.5254015", "0.52520317", "0.52520317", "0.52382135", "0.5235212", "0.52277154", "0.5226303", "0.52254313", "0.52254313", "0.52254313", "0.52254313", "0.52254313", "0.52253187", "0.5224715", "0.52226865", "0.5221154", "0.52204067", "0.5219766", "0.5210408", "0.5210408", "0.5210408", "0.52103645", "0.5207231", "0.52022344", "0.5200542", "0.51994956", "0.5187584", "0.5186961", "0.5181709", "0.51726663", "0.5171411", "0.51658344", "0.51658344", "0.51658344" ]
0.7119387
0
getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this); } return super.getAttrInvokeAccessor(index, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case FOLIOFLETE:\n return getFolioFlete();\n case TRANSPORT:\n return getTransport();\n case FOLIOSINTRAMO:\n return getFoliosintramo();\n case TRAMO:\n return getTramo();\n case FEE:\n return getFee();\n case IVAFLAG:\n return getIvaFlag();\n case RETENTIONFLAG:\n return getRetentionFlag();\n case IVAMFLAG:\n return getIvaMFlag();\n case RETENTIONMFLAG:\n return getRetentionMFlag();\n case CURRENCY:\n return getCurrency();\n case PROVIDER:\n return getProvider();\n case INVOICESTATUS:\n return getInvoiceStatus();\n case CHECKBOX:\n return getCheckBox();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "String attributeToGetter(String name);", "Attribute getAttribute();", "public String getElementAttribute(int row, int attr);", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public abstract int getBootstrapMethodAttrIndex();", "public String getAttribute(final String attributeLocator);", "protected abstract MethodDescription accessorMethod();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public String[] getElementAnnotation(int index, String attr);", "public Object getProperty(String attName);", "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "String getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public TLAttribute getAttribute(String attributeName);", "public Object getAttribute(String name);", "@Override\n\tpublic Nearby_attractionVO read_attraction(int bno, int rno) throws Exception {\n\t\treturn dao.read_attraction(bno,rno);\n\t}", "public String getElementAttribute(int row, int attr, int chromosome);", "public abstract IAccessor getAccessor(IContext context);", "public Object getAttribute(Object key);", "Object getAttribute( String attrName ) throws FileSystemException;", "public Object get(String aName) { return _attrMap.get(aName); }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttr() {\n return attr;\n }", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "public String getAttribute(String name);", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "public org.python.Object __getattribute__(java.lang.String name);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(final String elementLocator, final String attributeName);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "Attributes getAttributes();", "public HbAttributeInternal getAttribute(String name);", "@Override\n\tpublic Object getAttrVal(String attrName) {\n\t\treturn null;\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}" ]
[ "0.7235902", "0.7182274", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.7097094", "0.70843697", "0.70843697", "0.70843697", "0.70843697", "0.70244336", "0.7023709", "0.70190287", "0.70133615", "0.7006841", "0.69219416", "0.65665114", "0.64815557", "0.64120877", "0.6373215", "0.6360905", "0.6360321", "0.6360321", "0.6357858", "0.6341659", "0.6340662", "0.6338934", "0.6338934", "0.6338934", "0.6338934", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6327328", "0.6240207", "0.6129449", "0.59264684", "0.591949", "0.5589894", "0.55216914", "0.5494317", "0.54879344", "0.5480531", "0.54587615", "0.54581773", "0.5438151", "0.5417035", "0.54105395", "0.53814083", "0.53755265", "0.5358522", "0.5358522", "0.5358522", "0.5345048", "0.5343451", "0.52920055", "0.52873206", "0.52838165", "0.5281548", "0.5262201", "0.5254528", "0.5247064", "0.5247064", "0.5243127", "0.5240075", "0.5237462", "0.5227456", "0.5223867", "0.52126807", "0.51527536", "0.5131863", "0.511676", "0.51120293", "0.5104074", "0.5094733", "0.50792557", "0.50754553", "0.5057526", "0.50473905" ]
0.7068792
21
setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value); return; } super.setAttrInvokeAccessor(index, value, attrDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNumber((Number)value);\n return;\n case COUNTRY:\n setCountry((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case ITEMKEY:\n setItemKey((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n setSupplierId((Number)value);\n return;\n case NAME:\n setName((String)value);\n return;\n case ONHOLDFLAG:\n setOnHoldFlag((String)value);\n return;\n case STARTDATE:\n setStartDate((Date)value);\n return;\n case ENDDATE:\n setEndDate((Date)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE11:\n setAttribute11((String)value);\n return;\n case ATTRIBUTE12:\n setAttribute12((String)value);\n return;\n case ATTRIBUTE13:\n setAttribute13((String)value);\n return;\n case ATTRIBUTE14:\n setAttribute14((String)value);\n return;\n case ATTRIBUTE15:\n setAttribute15((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "protected void setAttrInvokeAccessor(\n int index, Object value, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case VERSION:\n setVersion((Number)value);\n return;\n case QTLNAME:\n setQtlName((String)value);\n return;\n case CONTEIDSEQ:\n setConteIdseq((String)value);\n return;\n case ASLNAME:\n setAslName((String)value);\n return;\n case PREFERREDNAME:\n setPreferredName((String)value);\n return;\n case PREFERREDDEFINITION:\n setPreferredDefinition((String)value);\n return;\n case DEIDSEQ:\n setDeIdseq((String)value);\n return;\n case LONGNAME:\n setLongName((String)value);\n return;\n case PMODIDSEQ:\n setPModIdseq((String)value);\n return;\n case QRIDSEQ:\n setQrIdseq((String)value);\n return;\n case PQCIDSEQ:\n setPQcIdseq((String)value);\n return;\n case CQCIDSEQ:\n setCQcIdseq((String)value);\n return;\n case DISPLAYORDER:\n setDisplayOrder((Number)value);\n return;\n case RLNAME:\n setRlName((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDBULTO:\n setIdbulto((Number)value);\n return;\n case IDBULTOORI:\n setIdbultoOri((Number)value);\n return;\n case LARGO:\n setLargo((Number)value);\n return;\n case ANCHO:\n setAncho((Number)value);\n return;\n case ALTO:\n setAlto((Number)value);\n return;\n case IDTIPOBULTO:\n setIdtipobulto((String)value);\n return;\n case PESOCONT:\n setPesocont((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE10:\n setAttribute10((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n case ATTRIBUTE6:\n setAttribute6((String)value);\n return;\n case ATTRIBUTE7:\n setAttribute7((String)value);\n return;\n case ATTRIBUTE8:\n setAttribute8((String)value);\n return;\n case ATTRIBUTE9:\n setAttribute9((String)value);\n return;\n case CODE:\n setCode((String)value);\n return;\n case COUNTRYCODE:\n setCountryCode((String)value);\n return;\n case COUNTRYDESCRIPTION:\n setCountryDescription((String)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case DESCRIPTION:\n setDescription((String)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case LOADDATE:\n setLoadDate((Date)value);\n return;\n case ORIDESTID:\n setOridestId((Number)value);\n return;\n case STATECODE:\n setStateCode((String)value);\n return;\n case STATEDESCRIPTION:\n setStateDescription((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EMPLOYEEPERSONID:\n setEmployeePersonId((Number)value);\n return;\n case CODECOMBINATIONID:\n setCodeCombinationId((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n return getIdexped();\n case IDBULTO:\n return getIdbulto();\n case IDBULTOORI:\n return getIdbultoOri();\n case LARGO:\n return getLargo();\n case ANCHO:\n return getAncho();\n case ALTO:\n return getAlto();\n case CREATEDBY:\n return getCreatedby();\n case CREATEDON:\n return getCreatedon();\n case IDTIPOBULTO:\n return getIdtipobulto();\n case MODIFIEDBY:\n return getModifiedby();\n case MODIFIEDON:\n return getModifiedon();\n case PESOCONT:\n return getPesocont();\n case SGAEXPEDLBULTO:\n return getSgaexpedlbulto();\n case SGAEXPEDLBULTO1:\n return getSgaexpedlbulto1();\n case SGAEXPED:\n return getSgaexped();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case CODE:\n return getCode();\n case COUNTRYCODE:\n return getCountryCode();\n case COUNTRYDESCRIPTION:\n return getCountryDescription();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case DESCRIPTION:\n return getDescription();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case LOADDATE:\n return getLoadDate();\n case ORIDESTID:\n return getOridestId();\n case ROWID:\n return getRowID();\n case STATECODE:\n return getStateCode();\n case STATEDESCRIPTION:\n return getStateDescription();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n return getSequenceNo();\n case LINENUMBER:\n return getLineNumber();\n case COUNTRY:\n return getCountry();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case CREATEDBY:\n return getCreatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case ITEMKEY:\n return getItemKey();\n case ROWID:\n return getRowID();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case FOLIOFLETE:\n return getFolioFlete();\n case TRANSPORT:\n return getTransport();\n case FOLIOSINTRAMO:\n return getFoliosintramo();\n case TRAMO:\n return getTramo();\n case FEE:\n return getFee();\n case IVAFLAG:\n return getIvaFlag();\n case RETENTIONFLAG:\n return getRetentionFlag();\n case IVAMFLAG:\n return getIvaMFlag();\n case RETENTIONMFLAG:\n return getRetentionMFlag();\n case CURRENCY:\n return getCurrency();\n case PROVIDER:\n return getProvider();\n case INVOICESTATUS:\n return getInvoiceStatus();\n case CHECKBOX:\n return getCheckBox();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception\n {\n switch (index) {\n case SUPPLIERID:\n return getSupplierId();\n case NAME:\n return getName();\n case ONHOLDFLAG:\n return getOnHoldFlag();\n case STARTDATE:\n return getStartDate();\n case ENDDATE:\n return getEndDate();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n case ATTRIBUTE6:\n return getAttribute6();\n case ATTRIBUTE7:\n return getAttribute7();\n case ATTRIBUTE8:\n return getAttribute8();\n case ATTRIBUTE9:\n return getAttribute9();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBUTE11:\n return getAttribute11();\n case ATTRIBUTE12:\n return getAttribute12();\n case ATTRIBUTE13:\n return getAttribute13();\n case ATTRIBUTE14:\n return getAttribute14();\n case ATTRIBUTE15:\n return getAttribute15();\n case SUPPLIERSITEEO:\n return getSupplierSiteEO();\n case PURCHASEORDERHEADEREO:\n return getPurchaseOrderHeaderEO();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case PERSONID:\n return getPersonId();\n case EMPLOYEENUMBER:\n return getEmployeeNumber();\n case EMAILADDRESS:\n return getEmailAddress();\n case FULLNAME:\n return getFullName();\n case LASTNAME:\n return getLastName();\n case FIRSTNAME:\n return getFirstName();\n case WORKTELEPHONE:\n return getWorkTelephone();\n case EMPLOYEEPERSONID:\n return getEmployeePersonId();\n case CODECOMBINATIONID:\n return getCodeCombinationId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)\n throws Exception {\n switch (index)\n {\n case QCIDSEQ:\n return getQcIdseq();\n case VERSION:\n return getVersion();\n case QTLNAME:\n return getQtlName();\n case CONTEIDSEQ:\n return getConteIdseq();\n case ASLNAME:\n return getAslName();\n case PREFERREDNAME:\n return getPreferredName();\n case PREFERREDDEFINITION:\n return getPreferredDefinition();\n case DEIDSEQ:\n return getDeIdseq();\n case LONGNAME:\n return getLongName();\n case PMODIDSEQ:\n return getPModIdseq();\n case QRIDSEQ:\n return getQrIdseq();\n case PQCIDSEQ:\n return getPQcIdseq();\n case CQCIDSEQ:\n return getCQcIdseq();\n case DISPLAYORDER:\n return getDisplayOrder();\n case RLNAME:\n return getRlName();\n case FORMVALIDVALUES:\n return getFormValidValues();\n case QUESTIONFORMVVRECS:\n return getQuestionFormVVRecs();\n case MODULE:\n return getModule();\n case CONTEXT:\n return getContext();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case TALLANBR:\n return getTallaNbr();\n case INVENTORYCOD:\n return getInventoryCod();\n case NPCOD:\n return getNpCod();\n case TALLAID:\n return getTallaId();\n case DOTAID:\n return getDotaId();\n case DESCRIPTION:\n return getDescription();\n case INVENTORYITEMID:\n return getInventoryItemId();\n case ORGANIZATIONID:\n return getOrganizationId();\n case OPERAND:\n return getOperand();\n case ARITHMETICOPERATOR:\n return getArithmeticOperator();\n case PRODUCTATTRVALUE:\n return getProductAttrValue();\n case LISTHEADERID:\n return getListHeaderId();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case SRCID:\r\n return getSrcId();\r\n case SRCLASTNAME:\r\n return getSrcLastName();\r\n case SRCFIRSTNAME:\r\n return getSrcFirstName();\r\n case SRCCOURTESYTITLE:\r\n return getSrcCourtesyTitle();\r\n case SRCJOBTITLE:\r\n return getSrcJobTitle();\r\n case SRCJOBDESCRIPTION:\r\n return getSrcJobDescription();\r\n case SRCCOMPANY:\r\n return getSrcCompany();\r\n case SRCADDRESS1:\r\n return getSrcAddress1();\r\n case SRCADDRESS2:\r\n return getSrcAddress2();\r\n case SRCADDRESS3:\r\n return getSrcAddress3();\r\n case SRCCITY:\r\n return getSrcCity();\r\n case SRCSTATE:\r\n return getSrcState();\r\n case SRCZIP:\r\n return getSrcZip();\r\n case SRCCTRYID:\r\n return getSrcCtryId();\r\n case SRCTMZID:\r\n return getSrcTmzId();\r\n case SRCEMAIL:\r\n return getSrcEmail();\r\n case SRCPHONE:\r\n return getSrcPhone();\r\n case SRCPHONEEXT:\r\n return getSrcPhoneExt();\r\n case SRCCELLPHONE:\r\n return getSrcCellPhone();\r\n case SRCFAX:\r\n return getSrcFax();\r\n case SRCSTATUS:\r\n return getSrcStatus();\r\n case SRCEXCLUSIVESOURCEYN:\r\n return getSrcExclusiveSourceYn();\r\n case SRCDONTCONTACTYN:\r\n return getSrcDontContactYn();\r\n case SRCCOMPANYTYPE:\r\n return getSrcCompanyType();\r\n case SRCAREAOFEXPERTISE:\r\n return getSrcAreaOfExpertise();\r\n case SRCINDUSTRYSECTOR:\r\n return getSrcIndustrySector();\r\n case SRCINDUSTRYVIEW:\r\n return getSrcIndustryView();\r\n case SRCVENDORS:\r\n return getSrcVendors();\r\n case SRCCOMPANYSIZE:\r\n return getSrcCompanySize();\r\n case SRCDISTRIBUTIONPREFERENCE:\r\n return getSrcDistributionPreference();\r\n case SRCDISTRIBUTIONNOTES:\r\n return getSrcDistributionNotes();\r\n case SRCSPECIALREQUESTS:\r\n return getSrcSpecialRequests();\r\n case SRCREPORTERSNOTES:\r\n return getSrcReportersNotes();\r\n case SRCQUALITYRATING:\r\n return getSrcQualityRating();\r\n case SRCMODIFIEDDATE:\r\n return getSrcModifiedDate();\r\n case SRCMODIFIEDBY:\r\n return getSrcModifiedBy();\r\n case SRCSUFFIXTITLE:\r\n return getSrcSuffixTitle();\r\n case SRCINFORMEDOFWEBSITE:\r\n return getSrcInformedOfWebsite();\r\n case SRCOFFEREDREPORT:\r\n return getSrcOfferedReport();\r\n case BaWaWEBREPORTSOURCESRVIEW:\r\n return getOtlReportSourcesRView();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "protected abstract MethodDescription accessorMethod();", "String attributeToSetter(String name);", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public abstract IAccessor getAccessor(IContext context);", "String attributeToGetter(String name);", "@Override\n public byte[][] invoke(Object sender, int index, Object parameters)\n {\n if (index == 1)\n {\n setValue(null);\n }\n else\n {\n throw new IllegalArgumentException(\"Invoke failed. Invalid attribute index.\");\n }\n return null;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "protected abstract Actor getAccessor();", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "void setProperty(String attribute, String value);", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "public void changeAttrName() {\r\n }", "private void invokeAnnotatedMethod(String optionName, final T targetInstance, final String value) throws ReflectiveOperationException {\n final Method method = annotatedMethods.get(optionName);\r\n if (getAnnotation(method).flag()) {\r\n //Flag, so treat as 'true'\r\n method.invoke(targetInstance, true);\r\n } else {\r\n /*\r\n * Convert the given option value (a string) to the\r\n * required basic type (as determined by the methods\r\n * argument type)\r\n */\r\n final Class<?> parameterType = method.getParameterTypes()[0];\r\n final Object valueObject;\r\n if (this.propertyEditors.containsKey(parameterType)) {\r\n valueObject = this.propertyEditors.get(parameterType).getObject(value);\r\n } else {\r\n valueObject = Utils.stringToType(parameterType, value);\r\n }\r\n //Invoke the method on the Object instance using the converted value\r\n method.invoke(targetInstance, valueObject);\r\n }\r\n }", "void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);", "public final d invoke() {\n return a.a(this.receiver$0, this.$additionalAnnotations);\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "public abstract int getBootstrapMethodAttrIndex();", "public final ae invoke() {\n return this.this$0.boA().aY(this.this$0.getName(), this.this$0.RX());\n }", "@SuppressWarnings(\"unchecked\")\n private <T> T valueAttributeFromObject(final Object ob, final String methodName) {\n try {\n return (T) ob.getClass().getMethod(methodName).invoke(ob);\n } catch (final Exception e) {\n FeatureEditorPlugin.instance().log(IStatus.ERROR,\n \"Could not invoke method \" + methodName + \" on object \" + ob);\n return null;\n }\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "private void setBeanReflect(DeployBeanDescriptor<?> desc) {\n // Set the BeanReflectGetter and BeanReflectSetter that typically\n // use generated code. NB: Due to Bug 166 so now doing this for\n // abstract classes as well.\n BeanPropertiesReader reflectProps = new BeanPropertiesReader(desc.getBeanType());\n desc.setProperties(reflectProps.getProperties());\n for (DeployBeanProperty prop : desc.propertiesAll()) {\n String propName = prop.getName();\n Integer pos = reflectProps.getPropertyIndex(propName);\n if (pos == null) {\n if (isPersistentField(prop)) {\n throw new IllegalStateException(\n \"If you are running in an IDE with enhancement plugin try a Build -> Rebuild Project to recompile and enhance all entity beans. \" +\n \"Error - property \" + propName + \" not found in \" + reflectProps + \" for type \" + desc.getBeanType());\n }\n } else {\n final int propertyIndex = pos;\n prop.setPropertyIndex(propertyIndex);\n prop.setGetter(beanPropertyAccess.getGetter(propertyIndex));\n prop.setSetter(beanPropertyAccess.getSetter(propertyIndex));\n if (prop.isAggregation()) {\n prop.setAggregationPrefix(DetermineAggPath.manyPath(prop.getRawAggregation(), desc));\n }\n }\n }\n }", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public native final <T> Selection attr(final String name, String value)\n\t/*-{\n\t\treturn this.attr(name, value);\n\t}-*/;", "@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "void generateSetter(MethodSpec.Builder method, SetterParam param);", "@Override\n\tpublic void outAMethodCallExpr(AMethodCallExpr node){\n\t\tString methodName = node.getId().getText();\n\t\tType targetType = nodeTypes.get(node.getTarget());\n\t\tboxIt(targetType); \n\t\tClassAttributes targetClass = topLevelSymbolTable.get(targetType.getTypeName());\n\t\tMethodAttributes methodAttributes = targetClass.getMethod(methodName);\n\t\tif (!(node.getTarget() instanceof ASuperExpr)){\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()) , Constants.INVOKEVIRTUAL));\n\t\t}\n\t\telse {\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()), Constants.INVOKESPECIAL)); \n\t\t}\n\t\tunboxIt(methodAttributes.getReturnType()); \n\t}", "public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;", "private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke methodToInvoke, Object obj, Object obj2) {\n switch (methodToInvoke) {\n case NEW_MUTABLE_INSTANCE:\n return new DocumentMask();\n case IS_INITIALIZED:\n return DEFAULT_INSTANCE;\n case MAKE_IMMUTABLE:\n this.fieldPaths_.makeImmutable();\n return null;\n case NEW_BUILDER:\n return new Builder();\n case VISIT:\n this.fieldPaths_ = ((GeneratedMessageLite.Visitor) obj).visitList(this.fieldPaths_, ((DocumentMask) obj2).fieldPaths_);\n GeneratedMessageLite.MergeFromVisitor mergeFromVisitor = GeneratedMessageLite.MergeFromVisitor.INSTANCE;\n return this;\n case MERGE_FROM_STREAM:\n CodedInputStream codedInputStream = (CodedInputStream) obj;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) obj2;\n boolean z = false;\n while (!z) {\n try {\n int readTag = codedInputStream.readTag();\n if (readTag != 0) {\n if (readTag == 10) {\n String readStringRequireUtf8 = codedInputStream.readStringRequireUtf8();\n if (!this.fieldPaths_.isModifiable()) {\n this.fieldPaths_ = GeneratedMessageLite.mutableCopy(this.fieldPaths_);\n }\n this.fieldPaths_.add(readStringRequireUtf8);\n } else if (!codedInputStream.skipField(readTag)) {\n }\n }\n z = true;\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case GET_DEFAULT_INSTANCE:\n break;\n case GET_PARSER:\n if (PARSER == null) {\n synchronized (DocumentMask.class) {\n if (PARSER == null) {\n PARSER = new GeneratedMessageLite.DefaultInstanceBasedParser(DEFAULT_INSTANCE);\n }\n }\n }\n return PARSER;\n default:\n throw new UnsupportedOperationException();\n }\n return DEFAULT_INSTANCE;\n }", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}" ]
[ "0.7710428", "0.76365644", "0.76225364", "0.76210123", "0.75809234", "0.75327307", "0.7520607", "0.7518691", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.7487145", "0.74713945", "0.74713945", "0.74713945", "0.74713945", "0.73227274", "0.68997633", "0.6875192", "0.68272716", "0.68204224", "0.68204224", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.6808537", "0.67922866", "0.67922866", "0.67922866", "0.67922866", "0.67637557", "0.6759712", "0.67469454", "0.67450947", "0.66405326", "0.5948735", "0.5488477", "0.54341173", "0.54241645", "0.5276346", "0.52695096", "0.52283007", "0.5164387", "0.5141821", "0.5128212", "0.5099064", "0.5077416", "0.50762886", "0.50220644", "0.49868366", "0.49733323", "0.4961182", "0.49281225", "0.49231836", "0.48781222", "0.48564908", "0.4854243", "0.48386636", "0.48187926", "0.48148853", "0.48070502", "0.47820336", "0.47442487", "0.4741053", "0.47400206", "0.47372586", "0.473701", "0.47329575", "0.47168484", "0.46981812", "0.46498403", "0.4647094", "0.46466127", "0.46435556", "0.46400896", "0.46319574", "0.46241516", "0.46079472", "0.45944074" ]
0.7518835
8
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.trustiphi.tpm2verification.platformcertparse
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "private static VerifierFactory createFactory( final String schemaType )\n throws VerifierConfigurationException\n {\n if( null == schemaType )\n {\n try\n {\n if( null == c_msvClass )\n {\n c_msvClass =\n Class.forName( \"com.sun.msv.verifier.jarv.TheFactoryImpl\" );\n }\n return (VerifierFactory)c_msvClass.newInstance();\n }\n catch( final Exception e )\n {\n final String message =\n \"Unable to load MSV factory and thus can \" +\n \"not auto-discover schema type.\";\n throw new VerifierConfigurationException( message, e );\n }\n }\n else\n {\n return VerifierFactory.newInstance( schemaType );\n }\n }", "public static Factory factory() {\n return ext_accdt::new;\n }", "public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}", "private ObjectFactory createObjectFactory(String objectFactoryNamespace)\r\n throws CockpitConfigurationException {\r\n try {\r\n return new ObjectFactory(new ConfigManagerSpecificationFactory(objectFactoryNamespace));\r\n } catch (IllegalReferenceException e) {\r\n throw new CockpitConfigurationException(\r\n \"IllegalReferenceException occurs while creating ObjectFactory instance using namespace \"\r\n + objectFactoryNamespace, e);\r\n } catch (SpecificationConfigurationException e) {\r\n throw new CockpitConfigurationException(\r\n \"SpecificationConfigurationException occurs while creating ObjectFactory instance using namespace \"\r\n + objectFactoryNamespace, e);\r\n }\r\n }", "@Override\n protected ObjectFactory initObjectFactory() {\n try {\n BeanManager bm = (BeanManager) new InitialContext().lookup(\"java:comp/BeanManager\");\n Set<Bean<?>> beans = bm.getBeans(CdiObjectFactory.class);\n Bean<CdiObjectFactory> beanType = (Bean<CdiObjectFactory>) beans.iterator().next();\n CreationalContext<CdiObjectFactory> ctx = bm.createCreationalContext(beanType);\n CdiObjectFactory objFactory = (CdiObjectFactory) bm.getReference(beanType, CdiObjectFactory.class, ctx);\n objFactory.init(this);\n return objFactory;\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static XmlEntityObjectFactory getFactory() {\n\t\tif (factory == null) {\n\t\t\tfactory = new XmlEntityObjectFactory();\n\t\t\ttry {\n\t\t\t\tClass<IXmlEntityResolverLoader> loaderClass = (Class<IXmlEntityResolverLoader>) Class\n\t\t\t\t\t\t.forName(defaulEntityResolverLoaderClassName);\n\t\t\t\tIXmlEntityResolverLoader loader;\n\t\t\t\tloader = loaderClass.newInstance();\n\t\t\t\tloader.loadTo(factory);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new UnexpectedRuntimeException(ex);\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}", "private ObjectFactory() { }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\r\n\t}", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BuiltinFactoryImpl();\n\t}", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public static Pack2Factory init() {\n\t\ttry {\n\t\t\tPack2Factory thePack2Factory = (Pack2Factory)EPackage.Registry.INSTANCE.getEFactory(Pack2Package.eNS_URI);\n\t\t\tif (thePack2Factory != null) {\n\t\t\t\treturn thePack2Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Pack2FactoryImpl();\n\t}", "public static ProyectFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectFactory theProyectFactory = (ProyectFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectPackage.eNS_URI);\r\n\t\t\tif (theProyectFactory != null) {\r\n\t\t\t\treturn theProyectFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProyectFactoryImpl();\r\n\t}", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.6137277", "0.6111824", "0.6093608", "0.60048616", "0.5978538", "0.5955376", "0.5912494", "0.58772457", "0.584519", "0.5840055", "0.5840055", "0.5840055", "0.57863766", "0.57802874", "0.57758236", "0.57578325", "0.5752487", "0.5744744", "0.57440984", "0.5728312", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795", "0.56844795" ]
0.0
-1
/ fab.animate().scaleX(0f).scaleY(0f); fab_contacts.animate().scaleX(0f).scaleY(0f); fab_heartbeat.animate().scaleX(0f).scaleY(0f);
@Override public void onClick(View v) { animateFAB(); Intent intent=new Intent(getApplicationContext(),Emergency_SMS.class) .putExtra("activityFROM","main2"); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scaleFab() {\n fabAdd.animate().alpha(0.0f);\n fabAdd.animate().translationYBy(80f);\n fabAdd.setClickable(false);\n\n textFabAdd.animate().alpha(0.0f);\n textFabAdd.animate().translationYBy(80f);\n\n fabDelete.animate().alpha(0.0f);\n fabDelete.animate().translationYBy(80f);\n fabDelete.setClickable(false);\n\n textFabDelete.animate().alpha(0.0f);\n textFabDelete.animate().translationYBy(80f);\n }", "private void animateFAB() {\n if (isFabOpen) {\n fab.startAnimation(rotate_backward);\n fab1.startAnimation(fab_close);\n fab2.startAnimation(fab_close);\n card1.startAnimation(card_close);\n card2.startAnimation(card_close);\n fab1.setClickable(false);\n fab2.setClickable(false);\n isFabOpen = false;\n } else {\n /*jika dalam keadaan true*/\n fab.startAnimation(rotate_forward);\n fab1.startAnimation(fab_open);\n fab2.startAnimation(fab_open);\n card1.startAnimation(card_open);\n card2.startAnimation(card_open);\n fab1.setClickable(true);\n fab2.setClickable(true);\n isFabOpen = true;\n }\n }", "private void expandFAB() {\n FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) fab1.getLayoutParams();\n layoutParams.rightMargin += (int) (fab1.getWidth() * 1.7);\n layoutParams.bottomMargin += (int) (fab1.getHeight() * 0.25);\n fab1.setLayoutParams(layoutParams);\n fab1.startAnimation(show_fab_1);\n fab1.setClickable(true);\n\n //Floating Action Button 2\n FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) fab2.getLayoutParams();\n layoutParams2.rightMargin += (int) (fab2.getWidth() * 1.5);\n layoutParams2.bottomMargin += (int) (fab2.getHeight() * 1.5);\n fab2.setLayoutParams(layoutParams2);\n fab2.startAnimation(show_fab_2);\n fab2.setClickable(true);\n\n FrameLayout.LayoutParams layoutParams3 = (FrameLayout.LayoutParams) fab3.getLayoutParams();\n layoutParams3.rightMargin += (int) (fab3.getWidth() * 0.25);\n layoutParams3.bottomMargin += (int) (fab3.getHeight() * 1.7);\n fab3.setLayoutParams(layoutParams3);\n fab3.startAnimation(show_fab_3);\n fab3.setClickable(true);\n }", "public void showFabMenu() {\r\n // Initialize the Interpolator to be used\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n\r\n // Initialize the AnimatorSets for each animation\r\n final AnimatorSet addRecipeAnimSet = new AnimatorSet();\r\n final AnimatorSet importRecipeAnimSet = new AnimatorSet();\r\n final AnimatorSet textAnimSet = new AnimatorSet();\r\n\r\n // Scale animation for mAddRecipeFab\r\n ObjectAnimator addRecipeXAnim = ObjectAnimator.ofFloat(mAddRecipeFab, \"scaleX\", 0.1f, 1.0f);\r\n addRecipeXAnim.setDuration(150);\r\n ObjectAnimator addRecipeYAnim = ObjectAnimator.ofFloat(mAddRecipeFab, \"scaleY\", 0.1f, 1.0f);\r\n addRecipeYAnim.setDuration(150);\r\n addRecipeYAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mAddRecipeFab.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mImportRecipeFab\r\n ObjectAnimator importRecipeXAnim = ObjectAnimator.ofFloat(mImportRecipeFab, \"scaleX\", 0.1f, 1.0f);\r\n importRecipeXAnim.setDuration(150);\r\n ObjectAnimator importRecipeYAnim = ObjectAnimator.ofFloat(mImportRecipeFab, \"scaleY\", 0.1f, 1.0f);\r\n importRecipeYAnim.setDuration(150);\r\n importRecipeYAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mImportRecipeFab.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mMainFabText\r\n mMainFabText.setPivotX(mMainFabText.getWidth());\r\n ObjectAnimator mainTextXAnim = ObjectAnimator.ofFloat(mMainFabText, \"scaleX\", 0.1f, 1.0f);\r\n mainTextXAnim.setDuration(100);\r\n mainTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mMainFabText.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mAddRecipeText\r\n mAddRecipeText.setPivotX(mAddRecipeText.getWidth());\r\n ObjectAnimator addTextXAnim = ObjectAnimator.ofFloat(mAddRecipeText, \"scaleX\", 0.1f, 1.0f);\r\n addTextXAnim.setDuration(100);\r\n addTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mAddRecipeText.setVisibility(View.VISIBLE);\r\n\r\n }\r\n });\r\n\r\n // Scale animation for mImportRecipeText\r\n mImportRecipeText.setPivotX(mImportRecipeText.getWidth());\r\n ObjectAnimator importTextXAnim = ObjectAnimator.ofFloat(mImportRecipeText, \"scaleX\", 0.1f, 1.0f);\r\n importTextXAnim.setDuration(100);\r\n importTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mImportRecipeText.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n\r\n // Rotation animation for mFab\r\n ObjectAnimator fabRotationAnim = ObjectAnimator.ofFloat(mFab, \"rotation\", 0f, 360f);\r\n fabRotationAnim.setDuration(150);\r\n fabRotationAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n mFab.setImageResource(R.drawable.ic_menu_close_clear_cancel);\r\n }\r\n });\r\n\r\n // Setup the AnimatorSets\r\n // Set up the AnimatorSets\r\n addRecipeAnimSet.playTogether(addRecipeXAnim, addRecipeYAnim);\r\n addRecipeAnimSet.setInterpolator(interpolator);\r\n addRecipeAnimSet.setStartDelay(100);\r\n addRecipeAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(addRecipeAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(addRecipeAnimSet);\r\n }\r\n }\r\n });\r\n importRecipeAnimSet.playTogether(importRecipeXAnim, importRecipeYAnim, fabRotationAnim);\r\n importRecipeAnimSet.setInterpolator(interpolator);\r\n\r\n importRecipeAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(importRecipeAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(importRecipeAnimSet);\r\n }\r\n }\r\n });\r\n textAnimSet.playSequentially(mainTextXAnim, importTextXAnim, addTextXAnim);\r\n textAnimSet.setInterpolator(interpolator);\r\n textAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(textAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(textAnimSet);\r\n }\r\n }\r\n });\r\n\r\n // Remove any animations that have yet to be played\r\n if (!animQueueLock) {\r\n animQueueLock = true;\r\n for (AnimatorSet anim : mAnimQueue) {\r\n if (anim.equals(addRecipeAnimSet) || anim.equals(importRecipeAnimSet) || anim.equals(textAnimSet)) {\r\n continue;\r\n }\r\n anim.cancel();\r\n }\r\n animQueueLock = false;\r\n }\r\n\r\n // Add AnimatorSets to mAnimQueue\r\n if (!animQueueLock) {\r\n mAnimQueue.add(addRecipeAnimSet);\r\n mAnimQueue.add(importRecipeAnimSet);\r\n mAnimQueue.add(textAnimSet);\r\n }\r\n\r\n // Start the animations\r\n addRecipeAnimSet.start();\r\n importRecipeAnimSet.start();\r\n textAnimSet.start();\r\n fabRotationAnim.start();\r\n\r\n // Set the boolean to true\r\n mFabMenuOpen = true;\r\n }", "private void animarFloatingButton() {\r\n\r\n compartir.setScaleX(0);\r\n compartir.setScaleY(0);\r\n\r\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\r\n final Interpolator interpolador = AnimationUtils.loadInterpolator(getBaseContext(),\r\n android.R.interpolator.fast_out_slow_in);\r\n\r\n compartir.animate()\r\n .scaleX(1)\r\n .scaleY(1)\r\n .setInterpolator(interpolador)\r\n .setDuration(600)\r\n .setStartDelay(1000)\r\n .setListener(new Animator.AnimatorListener() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationCancel(Animator animation) {\r\n\r\n }\r\n\r\n @Override\r\n public void onAnimationRepeat(Animator animation) {\r\n\r\n }\r\n });\r\n }\r\n }", "public void closeFabMenu() {\r\n // Initialize the interpolater to be used\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n\r\n // Initialize the AnimatorSets for each animation\r\n final AnimatorSet addRecipeAnimSet = new AnimatorSet();\r\n final AnimatorSet importRecipeAnimSet = new AnimatorSet();\r\n final AnimatorSet textAnimSet = new AnimatorSet();\r\n\r\n // Scale animation for mAddRecipeFab\r\n ObjectAnimator addRecipeXAnim = ObjectAnimator.ofFloat(mAddRecipeFab, \"scaleX\", 1.0f, 0.1f);\r\n addRecipeXAnim.setDuration(150);\r\n ObjectAnimator addRecipeYAnim = ObjectAnimator.ofFloat(mAddRecipeFab, \"scaleY\", 1.0f, 0.1f);\r\n addRecipeYAnim.setDuration(150);\r\n addRecipeYAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mAddRecipeFab.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mImportRecipeFab\r\n ObjectAnimator importRecipeXAnim = ObjectAnimator.ofFloat(mImportRecipeFab, \"scaleX\", 1.0f, 0.1f);\r\n importRecipeXAnim.setDuration(150);\r\n ObjectAnimator importRecipeYAnim = ObjectAnimator.ofFloat(mImportRecipeFab, \"scaleY\", 1.0f, 0.1f);\r\n importRecipeYAnim.setDuration(150);\r\n importRecipeYAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mImportRecipeFab.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mMainFabText\r\n mMainFabText.setPivotX(mMainFabText.getWidth());\r\n ObjectAnimator mainTextXAnim = ObjectAnimator.ofFloat(mMainFabText, \"scaleX\", 1.0f, 0.1f);\r\n mainTextXAnim.setDuration(100);\r\n mainTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mMainFabText.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mAddRecipeText\r\n mAddRecipeText.setPivotX(mAddRecipeText.getWidth());\r\n ObjectAnimator addTextXAnim = ObjectAnimator.ofFloat(mAddRecipeText, \"scaleX\", 1.0f, 0.1f);\r\n addTextXAnim.setDuration(100);\r\n addTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mAddRecipeText.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Scale animation for mImportRecipeText\r\n mImportRecipeText.setPivotX(mImportRecipeText.getWidth());\r\n ObjectAnimator importTextXAnim = ObjectAnimator.ofFloat(mImportRecipeText, \"scaleX\", 1.0f, 0.1f);\r\n importTextXAnim.setDuration(100);\r\n importTextXAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mImportRecipeText.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Rotation animation for mFab\r\n ObjectAnimator fabRotationAnim = ObjectAnimator.ofFloat(mFab, \"rotation\", 0f, 360f);\r\n fabRotationAnim.setDuration(150);\r\n fabRotationAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mFab.setImageResource(R.drawable.ic_menu_add_custom);\r\n }\r\n });\r\n\r\n // Set up the AnimatorSets\r\n addRecipeAnimSet.playTogether(addRecipeXAnim, addRecipeYAnim, fabRotationAnim);\r\n addRecipeAnimSet.setInterpolator(interpolator);\r\n addRecipeAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(addRecipeAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(addRecipeAnimSet);\r\n }\r\n }\r\n });\r\n importRecipeAnimSet.playTogether(importRecipeXAnim, importRecipeYAnim);\r\n importRecipeAnimSet.setInterpolator(interpolator);\r\n importRecipeAnimSet.setStartDelay(100);\r\n importRecipeAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(importRecipeAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(importRecipeAnimSet);\r\n }\r\n }\r\n });\r\n textAnimSet.playSequentially(addTextXAnim, importTextXAnim, mainTextXAnim);\r\n textAnimSet.setInterpolator(interpolator);\r\n textAnimSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n if (mAnimQueue.contains(textAnimSet) && !animQueueLock) {\r\n mAnimQueue.remove(textAnimSet);\r\n }\r\n\r\n if (hideFab) {\r\n mFab.hide();\r\n }\r\n }\r\n });\r\n\r\n // Remove any animations that have yet to be played\r\n if (!animQueueLock) {\r\n animQueueLock = true;\r\n for (AnimatorSet anim : mAnimQueue) {\r\n if (anim.equals(addRecipeAnimSet) || anim.equals(importRecipeAnimSet) || anim.equals(textAnimSet)) {\r\n continue;\r\n }\r\n anim.cancel();\r\n }\r\n animQueueLock = false;\r\n }\r\n\r\n // Add AnimatorSets to mAnimQueue\r\n if (!animQueueLock) {\r\n mAnimQueue.add(addRecipeAnimSet);\r\n mAnimQueue.add(importRecipeAnimSet);\r\n mAnimQueue.add(textAnimSet);\r\n }\r\n\r\n // Play the animations\r\n addRecipeAnimSet.start();\r\n importRecipeAnimSet.start();\r\n textAnimSet.start();\r\n fabRotationAnim.start();\r\n\r\n // Set the boolean to false\r\n mFabMenuOpen = false;\r\n }", "private void hideFAB() {\n FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) fab1.getLayoutParams();\n layoutParams.rightMargin -= (int) (fab1.getWidth() * 1.7);\n layoutParams.bottomMargin -= (int) (fab1.getHeight() * 0.25);\n fab1.setLayoutParams(layoutParams);\n fab1.startAnimation(hide_fab_1);\n fab1.setClickable(false);\n\n //Floating Action Button 2\n FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) fab2.getLayoutParams();\n layoutParams2.rightMargin -= (int) (fab2.getWidth() * 1.5);\n layoutParams2.bottomMargin -= (int) (fab2.getHeight() * 1.5);\n fab2.setLayoutParams(layoutParams2);\n fab2.startAnimation(hide_fab_2);\n fab2.setClickable(false);\n\n //Floating Action Button 3\n FrameLayout.LayoutParams layoutParams3 = (FrameLayout.LayoutParams) fab3.getLayoutParams();\n layoutParams3.rightMargin -= (int) (fab3.getWidth() * 0.25);\n layoutParams3.bottomMargin -= (int) (fab3.getHeight() * 1.7);\n fab3.setLayoutParams(layoutParams3);\n fab3.startAnimation(hide_fab_3);\n fab3.setClickable(false);\n }", "@Override\n public void run() {\n mFab.getLocationOnScreen(fabStartLocation);\n fabScale = (screenHeight / 8) / (float) mFab.getHeight();\n// Log.v(LOG_TAG, \"screenHeight: \" + screenHeight + \", mFab.getHeight: \" + mFab.getHeight() + \", fabScale: \" + fabScale);\n fabRadius = (int) (mFab.getHeight() * fabScale / 2);\n fabEndLocation[0] = (screenWidth - mFab.getHeight()) / 2;\n fabEndLocation[1] = screenHeight - fabRadius * 2;\n Utilities.setFabMeasurements(\n screenWidth / 2,\n mFab.getHeight() / 2 + fabEndLocation[1],\n fabRadius);\n }", "private void showFABMenu(){\n isFABOpen=true;\n\n layoutFabProject.setVisibility(View.VISIBLE);\n layoutFabNote.setVisibility(View.VISIBLE);\n layoutFabTask.setVisibility(View.VISIBLE);\n\n layoutFabProject.animate().translationY(-getResources().getDimension(R.dimen.standard_55));\n layoutFabNote.animate().translationY(-getResources().getDimension(R.dimen.standard_100));\n layoutFabTask.animate().translationY(-getResources().getDimension(R.dimen.standard_145));\n }", "private void showFab() {\n if (!isFabButtonShowing) {\n isFabButtonShowing = true;\n // Set the content view to 0% opacity but visible, so that it is visible\n // (but fully transparent) during the animation.\n fabCalculate.setAlpha(0f);\n fabCalculate.setVisibility(View.VISIBLE);\n\n // Animate the content view to 100% opacity, and clear any animation\n // listener set on the view.\n fabCalculate.animate()\n .alpha(1f)\n .setDuration(MainActivity.mShortAnimationDuration)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n fabCalculate.show();\n }\n });\n }\n }", "private void prepareAnimations() {\n scaleTo0Overshot = AnimationUtils.loadAnimation(this, R.anim.scale_100_to_0_anticipate);\n scaleTo0Overshot.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n //do nothing\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n fab.setVisibility(View.GONE);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n //do nothing\n }\n });\n\n scaleTo100Overshot = AnimationUtils.loadAnimation(this, R.anim.scale_0_to_100_overshot);\n scaleTo100Overshot.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n fab.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n //do nothing\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n //do nothing\n }\n });\n }", "private void toggleFAB(View view) {\n fabToggled = AnimationHelper.rotateFAB(view, !fabToggled);\n\n if (fabToggled) {\n AnimationHelper.animateAppear(fab_cam_view);\n AnimationHelper.animateAppear(fab_mic_view);\n AnimationHelper.animateAppear(fab_manual_view);\n overlay.setVisibility(View.VISIBLE);\n }\n\n else {\n AnimationHelper.animateDisappear(fab_cam_view);\n AnimationHelper.animateDisappear(fab_mic_view);\n AnimationHelper.animateDisappear(fab_manual_view);\n overlay.setVisibility(View.GONE);\n }\n }", "private void animateFabIn(long startDelay) {\n AnimatorSet set = new AnimatorSet();\n set.playTogether(Glider.glide(\n Skill.ElasticEaseOut,\n RESTART_ANIMATION_SPEED,\n ObjectAnimator.ofFloat(mFab, \"translationY\", fabRadius * 3, 0)));\n set.setDuration(RESTART_ANIMATION_SPEED);\n set.setStartDelay(startDelay);\n set.addListener(new Animator.AnimatorListener() {\n\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n mFab.setOnClickListener(MainActivityFragment.this);\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n set.start();\n mFab.setVisibility(View.VISIBLE);\n }", "public void rotateFabForward() {\n final OvershootInterpolator interpolator = new OvershootInterpolator();\n ViewCompat.animate(fab).\n rotation(135f).\n withLayer().\n setDuration(300).\n setInterpolator(interpolator).\n start();\n fab.setBackgroundTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorAccentLight)));\n }", "@Override\n public void animate() {\n }", "@Override\n public void onGlobalLayout() {\n list_h = list.getHeight();\n fab_y = fab.getY();\n\n // define new animations and pass them into the AutoHideHelper\n Animator animShow = ObjectAnimator.ofFloat(null, \"y\", fab_y);\n animShow.setDuration(200);\n animShow.setInterpolator(new AccelerateInterpolator());\n\n Animator animHide = ObjectAnimator.ofFloat(null, \"y\", list_h);\n animHide.setDuration(200);\n animHide.setInterpolator(new DecelerateInterpolator());\n\n hideHelper.setShowAnimation(animShow);\n hideHelper.setHideAnimation(animHide);\n\n // remove listener\n fab.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n }", "void enterReveal() {\n // get the center for the clipping circles\n int fabCall_x = binding.fabCall.getMeasuredWidth() / 2;\n int fabCall_y = binding.fabCall.getMeasuredHeight() / 2;\n int fabLike_x = binding.fabLike.getMeasuredWidth() / 2;\n int fabLike_y = binding.fabLike.getMeasuredHeight() / 2;\n\n // get the final radius for the clipping circle\n int fabCall_finalRadius = Math.max(binding.fabCall.getWidth(), binding.fabCall.getHeight()) / 2;\n int fabLike_finalRadius = Math.max(binding.fabLike.getWidth(), binding.fabLike.getHeight()) / 2;\n\n // create the animator for this view (the start radius is zero)\n Animator fabCall_anim = ViewAnimationUtils.createCircularReveal(binding.fabCall, fabCall_x, fabCall_y, 0, fabCall_finalRadius);\n Animator fabLike_anim = ViewAnimationUtils.createCircularReveal(binding.fabLike, fabLike_x, fabLike_y, 0, fabLike_finalRadius);\n\n // Add Listener for button animation\n fabCall_anim.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n getWindow().getEnterTransition().removeListener(transitionListener);\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n fabLike_anim.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n getWindow().getEnterTransition().removeListener(transitionListener);\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n\n // make the view visible and start the animation\n binding.fabCall.setVisibility(View.VISIBLE);\n binding.fabLike.setVisibility(View.VISIBLE);\n fabCall_anim.start();\n fabLike_anim.start();\n }", "void exitReveal() {\n // get the center for the clipping circle\n int fabCall_x = binding.fabCall.getMeasuredWidth() / 2;\n int fabCall_y = binding.fabCall.getMeasuredHeight() / 2;\n int fabLike_x = binding.fabLike.getMeasuredWidth() / 2;\n int fabLike_y = binding.fabLike.getMeasuredHeight() / 2;\n\n // get the initial radius for the clipping circle\n int fabCall_initialRadius = binding.fabCall.getWidth() / 2;\n int fabLike_initialRadius = binding.fabLike.getWidth() / 2;\n\n // create the animation (the final radius is zero)\n Animator fabCall_anim = ViewAnimationUtils.createCircularReveal(binding.fabCall, fabCall_x, fabCall_y, fabCall_initialRadius, 0);\n Animator fabLike_anim = ViewAnimationUtils.createCircularReveal(binding.fabLike, fabLike_x, fabLike_y, fabLike_initialRadius, 0);\n\n // make the view invisible when the animation is done\n fabCall_anim.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n binding.fabCall.setVisibility(View.INVISIBLE);\n }\n });\n fabLike_anim.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n binding.fabLike.setVisibility(View.INVISIBLE);\n }\n });\n\n // Add listener to finish activity when animation finished\n fabCall_anim.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n finishAfterTransition();\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n fabLike_anim.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n finishAfterTransition();\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n\n // start the animation\n fabCall_anim.start();\n fabLike_anim.start();\n }", "@Override\n public void onClick(View v) {\n if (SHOW_DEBUG)\n Toast.makeText(v.getContext(), \"Yep, this all action \", Toast.LENGTH_SHORT)\n .show();\n fab.startAnimation(fab_show);\n }", "private void m125731z() {\n View view = this.f90216F;\n if (view != null && view.getVisibility() == 8 && !this.f90218H.get()) {\n this.f90216F.clearAnimation();\n AnimationSet animationSet = new AnimationSet(true);\n AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);\n TranslateAnimation translateAnimation = new TranslateAnimation(2, 0.0f, 2, 0.0f, 2, 1.0f, 2, 0.0f);\n animationSet.addAnimation(alphaAnimation);\n animationSet.addAnimation(translateAnimation);\n animationSet.setDuration(800);\n animationSet.setInterpolator(new DecelerateInterpolator());\n animationSet.setAnimationListener(new Animation.AnimationListener() {\n /* class com.zhihu.android.topic.platfrom.TopicFragment.animationAnimation$AnimationListenerC258294 */\n\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n TopicFragment.this.f90216F.setVisibility(0);\n TopicFragment.this.f90218H.set(true);\n }\n\n public void onAnimationEnd(Animation animation) {\n TopicFragment.this.f90216F.setVisibility(0);\n TopicFragment.this.f90218H.set(false);\n }\n });\n this.f90216F.startAnimation(animationSet);\n }\n }", "private void hideFab() {\n if (isFabButtonShowing) {\n\n isFabButtonShowing = false;\n\n fabCalculate.hide();\n\n // Set the content view to 0% opacity but visible, so that it is visible\n // (but fully transparent) during the animation.\n fabCalculate.setAlpha(1f);\n fabCalculate.setVisibility(View.VISIBLE);\n\n // Animate the content view to 100% opacity, and clear any animation\n // listener set on the view.\n fabCalculate.animate()\n .alpha(0f)\n .setDuration(MainActivity.mShortAnimationDuration)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n fabCalculate.setVisibility(View.INVISIBLE);\n }\n });\n }\n }", "private void m125730y() {\n this.f90219I.set(false);\n View view = this.f90216F;\n if (view != null && view.getVisibility() == 0 && !this.f90218H.get()) {\n this.f90216F.clearAnimation();\n AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setDuration(500);\n alphaAnimation.setAnimationListener(new Animation.AnimationListener() {\n /* class com.zhihu.android.topic.platfrom.TopicFragment.animationAnimation$AnimationListenerC258283 */\n\n public void onAnimationRepeat(Animation animation) {\n }\n\n public void onAnimationStart(Animation animation) {\n TopicFragment.this.f90218H.set(true);\n }\n\n public void onAnimationEnd(Animation animation) {\n TopicFragment.this.f90216F.setVisibility(8);\n TopicFragment.this.f90218H.set(false);\n if (TopicFragment.this.f90219I.get()) {\n TopicFragment.this.m125731z();\n }\n }\n });\n this.f90216F.startAnimation(alphaAnimation);\n }\n }", "private void showFABMenu(){\n isFABOpen=true;\n rotateFabForward();\n fab1.show();\n labelFab1.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMOUT, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.HIDDEN);\n btnFAB.setOpacity(0);\n\n // Setting the visibility of the music panel\n musicPanel.setVisibility(Style.Visibility.VISIBLE);\n musicPanel.setOpacity(1);\n\n // Setting the music label with Bounce up animation\n lblMusic.setText(\"Pharell Williams / Love Yourself to Dance\");\n MaterialAnimator.animate(Transition.BOUNCEINUP, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"http://thatgrapejuice.net/wp-content/uploads/2013/08/pharrell-williams-that-grape-juice.png\");\n }", "void animation() {\n LinearLayout linearLayout = findViewById(R.id.loginLinear);\n animationDrawable = (AnimationDrawable)linearLayout.getBackground();\n animationDrawable.setEnterFadeDuration(5000);\n animationDrawable.setExitFadeDuration(5000);\n\n }", "void updateBackground() {\n float f = this.getDimension(R.dimen.fab_stroke_width);\n float f2 = f / 2.0f;\n Resources resources = this.getResources();\n int n = this.mSize == 0 ? R.drawable.fab_bg_normal : R.drawable.fab_bg_mini;\n resources = new LayerDrawable(new Drawable[]{resources.getDrawable(n), this.createFillDrawable(f), this.createOuterStrokeDrawable(f), this.getIconDrawable()});\n n = (int)(this.mCircleSize - this.getDimension(R.dimen.fab_icon_size)) / 2;\n int n2 = (int)this.mShadowRadius;\n int n3 = (int)(this.mShadowRadius - this.mShadowOffset);\n int n4 = (int)(this.mShadowRadius + this.mShadowOffset);\n resources.setLayerInset(1, n2, n3, n2, n4);\n resources.setLayerInset(2, (int)((float)n2 - f2), (int)((float)n3 - f2), (int)((float)n2 - f2), (int)((float)n4 - f2));\n resources.setLayerInset(3, n2 + n, n3 + n, n2 + n, n4 + n);\n this.setBackgroundCompat((Drawable)resources);\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "private void manageFAB() {\n final ImageView audioTrack = new ImageView(this);\n audioTrack.setImageResource(R.drawable.audiotrack);\n\n mFloatingActionButton = new HMVFloatingActionButton.Builder(this).setPosition(HMVFloatingActionButton.POSITION_CENTER_CENTER).setContentView(audioTrack).build();\n\n final SubActionButton.Builder itemBuilder = new SubActionButton.Builder(this);\n\n //PAUSE\n final ImageView pause = new ImageView(this);\n pause.setImageResource(R.drawable.pause);\n final SubActionButton pauseButton = itemBuilder.setContentView(pause).build();\n pauseButton.setOnClickListener(buildPauseOnClickListener());\n\n //PLAY\n final ImageView play = new ImageView(this);\n play.setImageResource(R.drawable.play);\n final SubActionButton playButton = itemBuilder.setContentView(play).build();\n playButton.setOnClickListener(buildPlayOnClickListener());\n\n //REPEAT ONE\n final ImageView repeatOne = new ImageView(this);\n repeatOne.setImageResource(R.drawable.repeat_one);\n final SubActionButton repeatOneButton = itemBuilder.setContentView(repeatOne).build();\n repeatOneButton.setOnClickListener(buildRepeatOneOnClickListener());\n\n //HEARING\n final ImageView hearing = new ImageView(this);\n hearing.setImageResource(R.drawable.hearing);\n final SubActionButton hearingButton = itemBuilder.setContentView(hearing).build();\n hearingButton.setOnClickListener(buildHearingOnClickListener());\n\n //SHUFFLE\n final ImageView shuffle = new ImageView(this);\n shuffle.setImageResource(R.drawable.shuffle);\n final SubActionButton shuffleButton = itemBuilder.setContentView(shuffle).build();\n shuffleButton.setOnClickListener(buildShuffleOnClickListener());\n\n //SKIP NEXT\n final ImageView skipNext = new ImageView(this);\n skipNext.setImageResource(R.drawable.skip_next);\n final SubActionButton skipNextButton = itemBuilder.setContentView(skipNext).build();\n skipNextButton.setOnClickListener(buildSkipNextOnClickListener());\n\n //SKIP PREVIOUS\n final ImageView skipPrevious = new ImageView(this);\n skipPrevious.setImageResource(R.drawable.skip_previous);\n final SubActionButton skipPreviousButton = itemBuilder.setContentView(skipPrevious).build();\n skipPreviousButton.setOnClickListener(buildSkipPreviousOnClickListener());\n\n //STOP\n final ImageView stop = new ImageView(this);\n stop.setImageResource(R.drawable.stop);\n final SubActionButton stopButton = itemBuilder.setContentView(stop).build();\n stopButton.setOnClickListener(buildStopOnClickListener());\n\n //POWER\n final ImageView power = new ImageView(this);\n power.setImageResource(R.drawable.power);\n final SubActionButton powerButton = itemBuilder.setContentView(power).build();\n powerButton.setOnClickListener(buildPowerOnClickListener());\n\n //INFORMATION\n final ImageView information = new ImageView(this);\n information.setImageResource(R.drawable.information);\n final SubActionButton informationButton = itemBuilder.setContentView(information).build();\n informationButton.setOnClickListener(buildInformationOnClickListener());\n\n final FloatingActionMenu actionMenu = new FloatingActionMenu.Builder(this)\n .addSubActionView(informationButton)\n .addSubActionView(shuffleButton)\n .addSubActionView(playButton)\n .addSubActionView(stopButton)\n .addSubActionView(hearingButton)\n .addSubActionView(pauseButton)\n .addSubActionView(skipNextButton)\n .addSubActionView(skipPreviousButton)\n .addSubActionView(repeatOneButton)\n .addSubActionView(powerButton)\n .attachTo(mFloatingActionButton).setStartAngle(30).setEndAngle(330).build();\n\n }", "@Override\n public void onClick(View v) {\n\n\n txtAndroid.animate().scaleX(0.2f).scaleY(0.4f).setDuration(3000);\n }", "@Override\n public void onClick(View view) {\n\n View add_funds_btn = findViewById(R.id.not_enough_funds_button);\n add_funds_btn.setVisibility(View.INVISIBLE);\n\n View animatedView = findViewById(R.id.send_donation_button);\n int fromY = findViewById(R.id.send_donation_button).getHeight();\n TranslateAnimation animate = new TranslateAnimation(0,0,fromY,0);\n animate.setDuration(FADE_OUT_DURATION);\n animatedView.startAnimation(animate);\n animatedView.setVisibility(View.VISIBLE);\n }", "static void m662a(View view, float f) {\n int integer = view.getResources().getInteger(C0068g.app_bar_elevation_anim_duration);\n StateListAnimator stateListAnimator = new StateListAnimator();\n stateListAnimator.addState(new int[]{16842766, C0063b.state_collapsible, -C0063b.state_collapsed}, ObjectAnimator.ofFloat(view, \"elevation\", new float[]{BitmapDescriptorFactory.HUE_RED}).setDuration((long) integer));\n stateListAnimator.addState(new int[]{16842766}, ObjectAnimator.ofFloat(view, \"elevation\", new float[]{f}).setDuration((long) integer));\n stateListAnimator.addState(new int[0], ObjectAnimator.ofFloat(view, \"elevation\", new float[]{BitmapDescriptorFactory.HUE_RED}).setDuration(0));\n view.setStateListAnimator(stateListAnimator);\n }", "private void closeFABMenu(){\n isFABOpen=false;\n\n layoutFabProject.animate().translationY(0);\n layoutFabNote.animate().translationY(0);\n layoutFabTask.animate().translationY(0).setListener(new Animator.AnimatorListener() {\n\n @Override\n public void onAnimationStart(Animator animator) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if (!isFABOpen) {\n layoutFabProject.setVisibility(View.GONE);\n layoutFabNote.setVisibility(View.GONE);\n layoutFabTask.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n }", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "public void rotateFabBackward() {\n final OvershootInterpolator interpolator = new OvershootInterpolator();\n ViewCompat.animate(fab).\n rotation(0f).\n withLayer().\n setDuration(300).\n setInterpolator(interpolator).\n start();\n fab.setBackgroundTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorPrimaryDark)));\n }", "public void mo5964b() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{0.0f, 0.3f, 0.5f, 0.7f, 0.9f, 1.0f}).setDuration(j).start();\n this.f5438qa.getMeasuredHeight();\n this.f5384D.getmImageViewHeight();\n C1413m.m6828a(27, this.f5389I);\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n this.f5384D.getmImageView().setImageResource(R.drawable.iqoo_buttonanimation);\n this.f5393M = (AnimationDrawable) this.f5384D.getmImageView().getDrawable();\n this.f5393M.start();\n duration.addListener(new C1300Wa(this));\n }", "@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_sticker1).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker2).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker3).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n\n\n //瞬间隐藏掉面板上的东西\n mStickerLayout.setVisibility(View.GONE);\n }", "private void prepareFABs() {\r\n EventSpeedDialBuilder builder = new EventSpeedDialBuilder(this);\r\n speedDial = builder.build();\r\n\r\n speedDial.setOnActionSelectedListener(new SpeedDialView.OnActionSelectedListener() {\r\n @Override\r\n public boolean onActionSelected(SpeedDialActionItem actionItem) {\r\n speedDial.close();\r\n switch (actionItem.getId()) {\r\n case R.id.event_fab_action_share_sms:\r\n onPressShareWithSMS();\r\n return true;\r\n\r\n case R.id.event_fab_action_delete_event:\r\n onPressDelete();\r\n return true;\r\n\r\n case R.id.event_fab_action_edit_event:\r\n onPressEdit();\r\n return true;\r\n\r\n case R.id.event_fab_action_calendary_entry:\r\n onPressCalendarEntry();\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n });\r\n }", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMIN, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.VISIBLE);\n btnFAB.setOpacity(1);\n\n // Hide the music panel once the pause button is clicked\n musicPanel.setVisibility(Style.Visibility.HIDDEN);\n musicPanel.setOpacity(0);\n\n // Setting the previous music label with Bounce down animation\n lblMusic.setText(\"Lady Gaga / Telephone\");\n MaterialAnimator.animate(Transition.BOUNCEINDOWN, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRi9lfCkLutb7ugJlIjn84qWNoiICopC-Vyx7QQJRHF5E7GlqFG\");\n }", "private void setupFloatingActionButtons() {\n final FloatingActionButton fabAddFollow = (FloatingActionButton) myView.findViewById(R.id.fabAddFollow);\n fabAddFollow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Log.d(\"AAA\", \"SOMETHING\");\n getActivity().getFragmentManager().beginTransaction()\n .setCustomAnimations(R.animator.slide_in_left, R.animator.slide_out_left, R.animator.slide_in_right, R.animator.slide_out_right)\n .replace(R.id.content_frame, new addFollowFragment()).addToBackStack(\"follow_list\").commit();\n }\n });\n }", "public void mo5967d() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n LinearLayout linearLayout = this.f5438qa;\n ObjectAnimator.ofFloat(linearLayout, \"translationY\", new float[]{0.0f, (float) ((linearLayout.getMeasuredHeight() - this.f5384D.getmImageViewHeight()) - C1413m.m6828a(27, this.f5389I))}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1304Ya(this));\n }", "public void mo64133a() {\n float f;\n if (!mo64139e()) {\n setVisibility(0);\n }\n ((IReadLaterFloatView) InstanceProvider.m107964b(IReadLaterFloatView.class)).setFloatViewVisible(false);\n float[] fArr = new float[2];\n if (this.f41196l) {\n f = (float) this.f41185a.getTop();\n } else {\n int i = this.f41188d;\n if (i == 0) {\n i = DisplayUtils.m87171b(getContext(), (float) this.f41193i);\n }\n f = (float) (-i);\n }\n fArr[0] = f;\n fArr[1] = (float) this.f41191g;\n ValueAnimator ofFloat = ValueAnimator.ofFloat(fArr);\n ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n /* class com.zhihu.android.app.p1011ad.pushad.$$Lambda$AbstractNotificationView$kK7LzkwRlcW_mdmTTuQsBcPOpc */\n\n public final void onAnimationUpdate(ValueAnimator valueAnimator) {\n AbstractNotificationView.m155975lambda$kK7LzkwRlcW_mdmTTuQsBcPOpc(AbstractNotificationView.this, valueAnimator);\n }\n });\n ofFloat.addListener(new Animator.AnimatorListener() {\n /* class com.zhihu.android.app.p1011ad.pushad.AbstractNotificationView.C104821 */\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n\n public void onAnimationStart(Animator animator) {\n AbstractNotificationView.this.f41185a.setVisibility(0);\n }\n\n public void onAnimationEnd(Animator animator) {\n AbstractNotificationView abstractNotificationView = AbstractNotificationView.this;\n abstractNotificationView.f41189e = false;\n abstractNotificationView.mo64138d();\n }\n });\n ofFloat.setInterpolator(new OvershootInterpolator());\n ofFloat.setDuration(500L);\n if (!mo64139e()) {\n ofFloat.setStartDelay(500);\n }\n ofFloat.start();\n this.f41196l = true;\n }", "private void initDimensions() {\n mFab.post(new Runnable() {\n @Override\n public void run() {\n // Get FAB start and end locations, and radius\n // TODO: Restructure this at some stage because this is bad.\n mFab.getLocationOnScreen(fabStartLocation);\n fabScale = (screenHeight / 8) / (float) mFab.getHeight();\n// Log.v(LOG_TAG, \"screenHeight: \" + screenHeight + \", mFab.getHeight: \" + mFab.getHeight() + \", fabScale: \" + fabScale);\n fabRadius = (int) (mFab.getHeight() * fabScale / 2);\n fabEndLocation[0] = (screenWidth - mFab.getHeight()) / 2;\n fabEndLocation[1] = screenHeight - fabRadius * 2;\n Utilities.setFabMeasurements(\n screenWidth / 2,\n mFab.getHeight() / 2 + fabEndLocation[1],\n fabRadius);\n }\n });\n\n mAltBackground.post(new Runnable() {\n @Override\n public void run() {\n Log.v(LOG_TAG, \"mAltBackground ready.\");\n // Get the final radius for the clipping circle\n maxBackgroundSize = Math.max(mAltBackground.getWidth(), mAltBackground.getHeight());\n // StatusBar only > 0 when API is <21 (should be tested and confirmed).\n statusBarOffset = screenHeight - mAltBackground.getHeight();\n fabEndLocation[1] -= statusBarOffset;\n Utilities.setFabMeasurements(\n screenWidth / 2,\n mFab.getHeight() / 2 + fabEndLocation[1],\n fabRadius);\n }\n });\n }", "private void m14909j() {\n getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n public void onGlobalLayout() {\n if (VERSION.SDK_INT < 16) {\n C3243f.this.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n } else {\n C3243f.this.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n }\n int hypot = (int) Math.hypot((double) C3243f.this.getWidth(), (double) C3243f.this.getHeight());\n int i = 0;\n if (C3243f.this.f8718g != null) {\n i = C3243f.this.f8718g.getWidth() / 2;\n } else if (C3243f.this.f8707K > 0 || C3243f.this.f8708L > 0 || C3243f.this.f8709M > 0) {\n C3243f.this.f8700D = C3243f.this.f8705I;\n C3243f.this.f8701E = C3243f.this.f8706J;\n }\n Animator createCircularReveal = ViewAnimationUtils.createCircularReveal(C3243f.this, C3243f.this.f8700D, C3243f.this.f8701E, (float) i, (float) hypot);\n createCircularReveal.setDuration((long) C3243f.this.f8697A);\n if (C3243f.this.f8731t != null) {\n createCircularReveal.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n C3243f.this.f8731t.mo10411a();\n }\n });\n }\n createCircularReveal.setInterpolator(AnimationUtils.loadInterpolator(C3243f.this.f8713b, 17563650));\n createCircularReveal.start();\n }\n });\n }", "private static Animation m25226b() {\n Animation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setInterpolator(new AccelerateInterpolator());\n alphaAnimation.setDuration(350);\n return alphaAnimation;\n }", "public void mo84055a() {\n if (getVisibility() == 0) {\n animate().cancel();\n setLayerType(2, null);\n animate().alpha(0.0f).setListener(new Animator.AnimatorListener() {\n /* class com.zhihu.android.article.widget.ArticleFloatingTipsView.C172711 */\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n ArticleFloatingTipsView.this.setVisibility(4);\n ArticleFloatingTipsView.this.setLayerType(0, null);\n }\n }).start();\n }\n }", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n @OnClick(R.id.fab) void openFab() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n newConnections.setVisibility(View.VISIBLE);\n newConnections.setTranslationY(0);\n\n final float fabRadius = fab.getWidth() / 2f;\n ViewAnimationUtils.createCircularReveal(newConnections,\n (int) (fab.getX() + fabRadius),\n (int) (fab.getY() + fabRadius),\n fabRadius,\n newConnections.getHeight() + newConnections.getWidth() / 2)\n .start();\n\n // we *could* put this into the layout so it gets revealed as well...\n UiUtil.animateStatusBarColor(\n getWindow(),\n R.color.primary_dark_material_dark,\n R.color.primary_dark_material_light\n );\n\n } else {\n newConnections.setAlpha(0);\n newConnections.setVisibility(View.VISIBLE);\n newConnections.animate().alpha(1);\n }\n }", "private void updateFrame() {\n post(new Runnable() {\n @Override\n public void run() {\n if (Build.VERSION.SDK_INT <= 23)\n mBackground.invalidateSelf();\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n mFrame.setBackgroundDrawable(mBackground);\n } else {\n mFrame.setBackground(mBackground);\n }\n if (Build.VERSION.SDK_INT <= 23)\n mBackground.invalidateSelf();\n setContainerMargins(mBackground.getBorder_width());\n mFrame.post(new Runnable() {\n @Override\n public void run() {\n bitmap = Bitmap.createBitmap(mFrame.getWidth(), mFrame.getHeight(), Bitmap.Config.ARGB_8888);\n bitmapCanvas = new Canvas(bitmap);\n mFrame.getBackground().draw(bitmapCanvas);\n if (hasLegendText() || hasLegendIcon()) {\n eraseBitmap(bitmapCanvas, mLegendContainer);\n }\n mFrame.setBackgroundDrawable(new BitmapDrawable(bitmap));\n listenToResize = true;\n }\n });\n }\n });\n }", "@OnClick(R.id.fab) protected void save() {\n fab.setVisibility(View.INVISIBLE);\n confirmSaveContainer.setVisibility(View.VISIBLE);\n resultsScrim.setVisibility(View.VISIBLE);\n\n // expand it once it's been measured and show a scrim over the search results\n confirmSaveContainer.getViewTreeObserver()\n .addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {\n @Override public boolean onPreDraw() {\n // expand the confirmation\n confirmSaveContainer.getViewTreeObserver().removeOnPreDrawListener(this);\n Animator reveal = ViewAnimationUtils.createCircularReveal(confirmSaveContainer,\n confirmSaveContainer.getWidth() / 2, confirmSaveContainer.getHeight() / 2,\n fab.getWidth() / 2, confirmSaveContainer.getWidth() / 2);\n reveal.setDuration(250L);\n reveal.setInterpolator(AnimationUtils.loadInterpolator(SearchActivity.this,\n android.R.interpolator.fast_out_slow_in));\n reveal.start();\n\n // show the scrim\n int centerX = (fab.getLeft() + fab.getRight()) / 2;\n int centerY = (fab.getTop() + fab.getBottom()) / 2;\n Animator revealScrim =\n ViewAnimationUtils.createCircularReveal(resultsScrim, centerX, centerY, 0,\n (float) Math.hypot(centerX, centerY));\n revealScrim.setDuration(400L);\n revealScrim.setInterpolator(AnimationUtils.loadInterpolator(SearchActivity\n .this, android.R.interpolator.linear_out_slow_in));\n revealScrim.start();\n ObjectAnimator fadeInScrim =\n ObjectAnimator.ofArgb(resultsScrim, ViewUtils.BACKGROUND_COLOR, Color.TRANSPARENT,\n ContextCompat.getColor(SearchActivity.this, R.color.scrim));\n fadeInScrim.setDuration(800L);\n fadeInScrim.setInterpolator(AnimationUtils.loadInterpolator(SearchActivity\n .this, android.R.interpolator.linear_out_slow_in));\n fadeInScrim.start();\n\n // ease in the checkboxes\n saveDribbble.setAlpha(0.6f);\n saveDribbble.setTranslationY(saveDribbble.getHeight() * 0.4f);\n saveDribbble.animate()\n .alpha(1f)\n .translationY(0f)\n .setDuration(200L)\n .setInterpolator(AnimationUtils.loadInterpolator(SearchActivity.this,\n android.R.interpolator.linear_out_slow_in));\n saveDesignerNews.setAlpha(0.6f);\n saveDesignerNews.setTranslationY(saveDesignerNews.getHeight() * 0.5f);\n saveDesignerNews.animate()\n .alpha(1f)\n .translationY(0f)\n .setDuration(200L)\n .setInterpolator(AnimationUtils.loadInterpolator(SearchActivity.this,\n android.R.interpolator.linear_out_slow_in));\n return false;\n }\n });\n }", "@Override\n protected void animStart() {\n }", "@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n //瞬间隐藏掉面板上的东西\n findViewById(R.id.btn_camera_beauty).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_filter1).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_lip).setVisibility(View.GONE);\n mFilterLayout.setVisibility(View.GONE);\n }", "private SupportAnimator animateBackgroundReveal(final View view) {\n SupportAnimator animator = ViewAnimationUtils.createCircularReveal(\n view, // The view to animate\n FAB_X, // Centre of reveal X\n FAB_Y, // Centre of reveal Y\n fabRadius, // Start radius\n maxBackgroundSize); // End radius\n animator.setDuration(DEATH_ANIMATION_SPEED); // Duration\n animator.addListener(new SupportAnimator.AnimatorListener() {\n @Override\n public void onAnimationStart() {\n view.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onAnimationEnd() {\n if (!animationFlag) {\n // If this animation has finished first, animate the FAB in from the bottom\n // of the screen. Also reset the game to the READY state.\n animateFabIn(START_ANIMATION_SHORT_DELAY);\n mGameLoop.setState(GameLoop.STATE_READY);\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n // Unlock screen rotation. // TODO: Fix this so I can support API 16. (2/2)\n getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n }\n animationFlag = true;\n }\n\n @Override\n public void onAnimationCancel() {\n\n }\n\n @Override\n public void onAnimationRepeat() {\n\n }\n });\n return animator;\n }", "private void floatingMenu(){\n btn_main = findViewById(R.id.fab_main);\n btn_lang = findViewById(R.id.fab_language);\n btn_profil = findViewById(R.id.fab_profil);\n\n btn_lang.setTranslationY(translationY);\n btn_profil.setTranslationY(translationY);\n\n btn_lang.setAlpha(0f);\n btn_profil.setAlpha(0f);\n\n btn_main.setOnClickListener(this);\n btn_profil.setOnClickListener(this);\n btn_lang.setOnClickListener(this);\n }", "private void closeFABMenu(){\n isFABOpen=false;\n rotateFabBackward();\n fab1.hide();\n labelFab1.setVisibility(View.INVISIBLE);\n }", "private final void m75360j() {\n ((FrameLayout) mo78146a(R.id.selectorLayout)).animate().cancel();\n FrameLayout frameLayout = (FrameLayout) mo78146a(R.id.selectorLayout);\n C32569u.m150513a((Object) frameLayout, C6969H.m41409d(\"G7A86D91FBC24A43BCA0F8947E7F1\"));\n frameLayout.setAlpha(1.0f);\n FrameLayout frameLayout2 = (FrameLayout) mo78146a(R.id.selectorLayout);\n C32569u.m150513a((Object) frameLayout2, C6969H.m41409d(\"G7A86D91FBC24A43BCA0F8947E7F1\"));\n frameLayout2.setTranslationY(0.0f);\n }", "private void setFAB(View view) {\n SpeedDialView speedDialView = view.findViewById(R.id.speedDial);\n speedDialView.setVisibility(View.VISIBLE);\n speedDialView.addActionItem(\n new SpeedDialActionItem.Builder(R.id.fab_email, R.drawable.ic_email_black_24dp)\n .setLabel(R.string.speed_dial_email)\n .create()\n );\n speedDialView.addActionItem(\n new SpeedDialActionItem.Builder(R.id.fab_linkedIn, R.drawable.ic_linkedin)\n .setLabel(R.string.speed_dial_linkedin)\n .create()\n );\n speedDialView.addActionItem(\n new SpeedDialActionItem.Builder(R.id.fab_gitHub, R.drawable.ic_github)\n .setLabel(R.string.speed_dial_github)\n .create()\n );\n\n //Set up FAB speed dial links\n speedDialView.setOnActionSelectedListener(new SpeedDialView.OnActionSelectedListener() {\n @Override\n public boolean onActionSelected(SpeedDialActionItem speedDialActionItem) {\n switch (speedDialActionItem.getId()) {\n case R.id.fab_email:\n composeEmail();\n return false; // true to keep the Speed Dial open\n case R.id.fab_linkedIn:\n openWebPage(\"https://www.linkedin.com/in/martinjthorne/\");\n return false;\n case R.id.fab_gitHub:\n openWebPage(\"https://github.com/Martin-Thorne\");\n return false;\n default:\n return false;\n }\n }\n });\n }", "public void showBackAnimation() {\n this.mBgView.setVisibility(0);\n Animation enterAnimation = AnimationUtils.loadAnimation(this, R.anim.activity_close_enter);\n Animation exitAnimation = AnimationUtils.loadAnimation(this, R.anim.activity_close_exit);\n enterAnimation.setAnimationListener(new Animation.AnimationListener() {\n public void onAnimationStart(Animation animation) {\n }\n\n public void onAnimationEnd(Animation animation) {\n FsGestureBackDemoActivity.this.onGestureFinish();\n }\n\n public void onAnimationRepeat(Animation animation) {\n }\n });\n this.mBgView.startAnimation(enterAnimation);\n this.mDemoActivityView.startAnimation(exitAnimation);\n }", "public void onAnimationStart(Animation animation) {\n\r\n }", "public void mo7192B() {\n View m = mo23948m();\n if (m != null) {\n this.f15664t0.onEnterDiscoverMode();\n boolean z = this.f15653i0 > 0;\n int i = this.f15653i0;\n m.performHapticFeedback(0);\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.f15643Y, View.TRANSLATION_Y, new float[]{0.0f, (float) (-C3200e0.m10183a((Context) mo23920b(), -100))});\n ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.f15643Y, View.ALPHA, new float[]{1.0f, 0.0f});\n ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.f15637S, View.TRANSLATION_X, new float[]{0.0f, (float) C3200e0.m10183a((Context) mo23920b(), -100)});\n ObjectAnimator ofFloat4 = ObjectAnimator.ofFloat(this.f15637S, View.ALPHA, new float[]{1.0f, 0.0f});\n ObjectAnimator ofFloat5 = ObjectAnimator.ofFloat(this.f15641W, View.TRANSLATION_X, new float[]{0.0f, (float) C3200e0.m10183a((Context) mo23920b(), 100)});\n ObjectAnimator ofFloat6 = ObjectAnimator.ofFloat(this.f15641W, View.ALPHA, new float[]{1.0f, 0.0f});\n ofFloat6.addListener(new C6250b());\n float scaleX = this.f15639U.getScaleX();\n ObjectAnimator ofFloat7 = ObjectAnimator.ofFloat(this.f15639U, View.SCALE_X, new float[]{1.0f, 0.0f});\n ofFloat7.setDuration(200);\n ofFloat7.setInterpolator(C7657c.m18641a());\n float scaleY = this.f15639U.getScaleY();\n ObjectAnimator ofFloat8 = ObjectAnimator.ofFloat(this.f15639U, View.SCALE_Y, new float[]{1.0f, 0.0f});\n ofFloat8.setDuration(200);\n ofFloat8.setInterpolator(C7657c.m18641a());\n ofFloat8.addListener(new C6251c(scaleX, scaleY));\n ObjectAnimator ofFloat9 = ObjectAnimator.ofFloat(this.f15646b0, View.SCALE_X, new float[]{0.0f, 1.0f});\n ofFloat9.setStartDelay(200);\n ofFloat9.setInterpolator(C7657c.m18650f());\n ObjectAnimator ofFloat10 = ObjectAnimator.ofFloat(this.f15646b0, View.SCALE_Y, new float[]{0.0f, 1.0f});\n ofFloat10.setStartDelay(200);\n ofFloat10.setInterpolator(C7657c.m18650f());\n ofFloat10.addListener(new C6252d(z, i));\n AnimatorSet animatorSet = new AnimatorSet();\n animatorSet.playTogether(new Animator[]{ofFloat, ofFloat2, ofFloat3, ofFloat4, ofFloat5, ofFloat6, ofFloat7, ofFloat8, ofFloat9, ofFloat10});\n animatorSet.start();\n this.f15651g0 = true;\n ((MeUserManager) this.f15668x0.get()).mo8754a(true);\n if (this.f15648d0.getComposition() == null) {\n C8507d.m19679a((Context) mo9304A(), (int) R.raw.lottie_discover_globe).mo23032b(new C6210h(this));\n }\n }\n }", "private void toggleFab() {\n if (navItemIndex == 0)\n fab.show();\n else\n fab.hide();\n }", "private void toggleFab() {\n if (navItemIndex == 0)\n fab.show();\n else\n fab.hide();\n }", "private void toggleFab() {\n if (navItemIndex == 0)\n fab.show();\n else\n fab.hide();\n }", "private void animateViews(int duration) {\n if (headerText.getVisibility() == View.VISIBLE) {\n headerText.setVisibility(View.GONE);\n }\n if (spaconIcon.getVisibility() == View.VISIBLE) {\n spaconIcon.setVisibility(View.GONE);\n }\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n //Do something after 1 second\n headerText.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fallingfromsky));\n headerText.setVisibility(View.VISIBLE);\n\n spaconIcon.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fadein_long));\n spaconIcon.setVisibility(View.VISIBLE);\n\n if (fillableLoader.getVisibility() == View.GONE) {\n fillableLoader.setVisibility(View.VISIBLE);\n }\n fillableLoader.start();\n }\n }, duration);\n\n\n }", "Parent Background(){\r\n \r\n Group root = new Group();\r\n Scene scene = new Scene(root, w, h,null);\r\n \r\n Group circles = new Group();\r\n for (int i = 0; i < 30; i++) {\r\n Circle circle = new Circle(150, Color.web(\"white\", 0.05));\r\n circle.setStrokeType(StrokeType.OUTSIDE);\r\n circle.setStroke(Color.web(\"white\", 0.16));\r\n circle.setStrokeWidth(4);\r\n circles.getChildren().add(circle);\r\n }\r\n Rectangle colors = new Rectangle(scene.getWidth(), scene.getHeight(),\r\n new LinearGradient(1f, 1f, 0f, 1f, true, CycleMethod.NO_CYCLE, new Stop[]{\r\n new Stop(0, Color.web(\"#f8bd55\")),\r\n new Stop(0.14, Color.web(\"#c0fe56\")),\r\n new Stop(0.28, Color.web(\"#5dfbc1\")),\r\n new Stop(0.43, Color.web(\"#64c2f8\")),\r\n new Stop(0.57, Color.web(\"#be4af7\")),\r\n new Stop(0.71, Color.web(\"#ed5fc2\")),\r\n new Stop(0.85, Color.web(\"#ef504c\")),\r\n new Stop(1, Color.web(\"#f2660f\")),}));\r\n Group blendModeGroup =\r\n new Group(new Group(new Rectangle(scene.getWidth(), scene.getHeight(),\r\n Color.DARKCYAN.brighter()), circles), colors);\r\n colors.setBlendMode(BlendMode.OVERLAY);\r\n root.getChildren().add(blendModeGroup);\r\n circles.setEffect(new BoxBlur(10, 10, 3));\r\n Timeline timeline = new Timeline();\r\n for (Node circle : circles.getChildren()) {\r\n timeline.getKeyFrames().addAll(\r\n new KeyFrame(Duration.ZERO, // set start position at 0\r\n new KeyValue(circle.translateXProperty(), random() * w),\r\n new KeyValue(circle.translateYProperty(), random() * h)),\r\n new KeyFrame(new Duration(40000), // set end position at 40s\r\n new KeyValue(circle.translateXProperty(), random() * w),\r\n new KeyValue(circle.translateYProperty(), random() * h)));\r\n }\r\n \r\n // play 40s of animation\r\n timeline.play();\r\n return root;\r\n }", "Parent Background(){\r\n \r\n Group root = new Group();\r\n Scene scene = new Scene(root, w, h,null);\r\n \r\n Group circles = new Group();\r\n for (int i = 0; i < 30; i++) {\r\n Circle circle = new Circle(150, Color.web(\"white\", 0.05));\r\n circle.setStrokeType(StrokeType.OUTSIDE);\r\n circle.setStroke(Color.web(\"white\", 0.16));\r\n circle.setStrokeWidth(4);\r\n circles.getChildren().add(circle);\r\n }\r\n Rectangle colors = new Rectangle(scene.getWidth(), scene.getHeight(),\r\n new LinearGradient(1f, 1f, 0f, 1f, true, CycleMethod.NO_CYCLE, new Stop[]{\r\n new Stop(0, Color.web(\"#f8bd55\")),\r\n new Stop(0.14, Color.web(\"#c0fe56\")),\r\n new Stop(0.28, Color.web(\"#5dfbc1\")),\r\n new Stop(0.43, Color.web(\"#64c2f8\")),\r\n new Stop(0.57, Color.web(\"#be4af7\")),\r\n new Stop(0.71, Color.web(\"#ed5fc2\")),\r\n new Stop(0.85, Color.web(\"#ef504c\")),\r\n new Stop(1, Color.web(\"#f2660f\")),}));\r\n Group blendModeGroup =\r\n new Group(new Group(new Rectangle(scene.getWidth(), scene.getHeight(),\r\n Color.DARKCYAN.brighter()), circles), colors);\r\n colors.setBlendMode(BlendMode.OVERLAY);\r\n root.getChildren().add(blendModeGroup);\r\n circles.setEffect(new BoxBlur(10, 10, 3));\r\n Timeline timeline = new Timeline();\r\n for (Node circle : circles.getChildren()) {\r\n timeline.getKeyFrames().addAll(\r\n new KeyFrame(Duration.ZERO, // set start position at 0\r\n new KeyValue(circle.translateXProperty(), random() * w),\r\n new KeyValue(circle.translateYProperty(), random() * h)),\r\n new KeyFrame(new Duration(40000), // set end position at 40s\r\n new KeyValue(circle.translateXProperty(), random() * w),\r\n new KeyValue(circle.translateYProperty(), random() * h)));\r\n }\r\n \r\n // play 40s of animation\r\n timeline.play();\r\n return root;\r\n }", "@Override\n public void run() {\n\n mShimmerViewContainer.setBaseAlpha(1);\n\n Animation animation2 = AnimationUtils.loadAnimation(Splash_Activity.this, R.anim.alpha);\n\n mShimmerViewContainer.setAnimation(animation2);\n\n }", "@Override\n public void onAnimationEnd(Animator animation) {\n ViewGroup.LayoutParams lp = LifeLabActivity.this.anim_view.getLayoutParams();\n lp.width = view.getWidth();\n lp.height = view.getHeight();\n LifeLabActivity.this.anim_view.setLayoutParams(lp);\n LifeLabActivity.this.anim_view.setX(view.getX());\n LifeLabActivity.this.anim_view.setY(view.getY());\n LifeLabActivity.this.anim_view.setVisibility(View.VISIBLE);\n LifeLabActivity.this.anim_view.post(new Runnable() {\n @Override\n public void run() {\n AnimatorSet as = new AnimatorSet();\n ValueAnimator x = ObjectAnimator.ofFloat(LifeLabActivity.this.anim_view, \"x\", LifeLabActivity.this.anim_view.getX(), 0);\n ValueAnimator y = ObjectAnimator.ofFloat(LifeLabActivity.this.anim_view, \"y\", LifeLabActivity.this.anim_view.getY(), 0);\n float x0 = LifeLabActivity.this.anim_view.getScaleX();\n float y0 = LifeLabActivity.this.anim_view.getScaleY();\n float sx = (float) Utils.getScreenWidthPx(LifeLabActivity.this) / (float) LifeLabActivity.this.anim_view.getWidth();\n ValueAnimator scalex = ObjectAnimator.ofFloat(LifeLabActivity.this.anim_view, \"scaleX\", x0, x0 * sx * 2);\n //Log.d(TAG, String.format(\"run X: %f, %f\", x0, x0 * sx));\n float sy = (float) Utils.getScreenHeightPx(LifeLabActivity.this) / (float) LifeLabActivity.this.anim_view.getHeight();\n //Log.d(TAG, String.format(\"screenH: %d, viewH:%d\", Utils.getScreenHeightPx(LifeLabActivity.this), LifeLabActivity.this.anim_view.getHeight()));\n //Log.d(TAG, String.format(\"y0: %f, sy: %f, y1: %f\", y0, sy, y0 * sy));\n ValueAnimator scaley = ObjectAnimator.ofFloat(LifeLabActivity.this.anim_view, \"scaleY\", y0, y0 * sy * 6);\n //Log.d(TAG, String.format(\"run Y: %f, %f\", x0, y0 * sy));\n as.play(x).with(scalex).with(y).with(scaley);\n //as.play(x).with(y);\n as.setDuration(300);\n as.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n View x = LifeLabActivity.this.anim_view;\n //Log.d(TAG, String.format(\"onAnimationEnd: %f %f %d %d\", x.getX(), x.getY(), x.getWidth(), x.getHeight()));\n Intent intent = new Intent(LifeLabActivity.this, LifeLabItemActivity.class);\n intent.putExtra(LifeLabItemActivity.LIFELAB_COLLECTION, lc);\n LifeLabActivity.this.startActivityForResult(intent, 0);\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n\n }\n });\n as.start();\n\n }\n });\n }", "public void shake(){\n ObjectAnimator.ofFloat(this, \"translationY\", 0, 25, -25, 25, -25,15, -15, 0).start();\n }", "public void mo4681b() {\n if (VERSION.SDK_INT >= 12) {\n int viewHeight = this.f1119e.getHeight();\n if (f1116b) {\n C0646w.m2965b((View) this.f1119e, viewHeight);\n } else {\n this.f1119e.setTranslationY((float) viewHeight);\n }\n ValueAnimator animator = new ValueAnimator();\n animator.setIntValues(new int[]{viewHeight, 0});\n animator.setInterpolator(C0280a.f1075b);\n animator.setDuration(250);\n animator.addListener(new C0304o(this));\n animator.addUpdateListener(new C0305p(this, viewHeight));\n animator.start();\n return;\n }\n Animation anim = AnimationUtils.loadAnimation(this.f1119e.getContext(), C1167a.design_snackbar_in);\n anim.setInterpolator(C0280a.f1075b);\n anim.setDuration(250);\n anim.setAnimationListener(new C0306q(this));\n this.f1119e.startAnimation(anim);\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "public void animationTrans() {\n float unitAngle;\n if (type == CIRCLE) {\n unitAngle = (float) 360 / defaultCount;\n } else {\n unitAngle = 45f;\n }\n final float oldAngle = mAngle;\n float nAngle = mAngle % actualAngle;\n float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle);\n\n final float willAngle;\n if (type == CIRCLE) {\n willAngle = (float) ((0.5 - gapAngle) * unitAngle);\n } else {\n if (gapAngle < 0.5) {\n willAngle = (float) ((0 - gapAngle) * unitAngle);\n } else {\n willAngle = (float) ((1 - gapAngle) * unitAngle);\n }\n }\n Animation a = new Animation() {\n\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n\n mAngle = oldAngle + willAngle * interpolatedTime;\n\n requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration(200);\n startAnimation(a);\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "private void setAlphaAnimation() {\n\n AlphaAnimation alphaAnim = new AlphaAnimation(1.0f,0.0f);\n alphaAnim.setStartOffset(5000); // start in 5 seconds\n alphaAnim.setDuration(400);\n alphaAnim.setAnimationListener(new Animation.AnimationListener()\n {\n @Override\n public void onAnimationStart(Animation animation) {\n\n }\n\n public void onAnimationEnd(Animation animation)\n {\n // make invisible when animation completes, you could also remove the view from the layout\n txtNotifications.setVisibility(View.INVISIBLE);\n imgNotifications.setImageResource(0);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n txtNotifications.setAnimation(alphaAnim);\n imgNotifications.setAnimation(alphaAnim);\n }", "private void startOpeningAnimation(){\n new Timer(8, new ActionListener() {\n double cardDist;\n\n @Override\n public void actionPerformed(ActionEvent event) {\n\n cardDist = (getHeight()-MARGIN*2) - cardHeight;\n cardHeight += cardDist / 4;\n\n backOpacity += 10;\n\n if (Math.abs(cardDist) <= 5){\n cut(event);\n }\n }\n private void cut(ActionEvent event){\n ((Timer)event.getSource()).stop();\n requestFocus();\n firstTime = false;\n }\n }).start();\n }", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "private void initAnimators() {\n mButtonIsOrWillBeVisible = mAddButton.getVisibility() == View.VISIBLE;\n\n mButtonAppearAnimation = ObjectAnimator.ofPropertyValuesHolder(mAddButton,\n PropertyValuesHolder.ofFloat(\"scaleX\", 0.0f, 1.0f),\n PropertyValuesHolder.ofFloat(\"scaleY\", 0.0f, 1.0f));\n mButtonAppearAnimation.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime));\n mButtonAppearAnimation.setInterpolator(new FastOutSlowInInterpolator());\n }", "private void m57186g() {\n setClipChildren(false);\n setVisibility(8);\n this.f41186b = ViewDragHelper.create(this, 1.0f, new C10484a());\n this.f41185a = LayoutInflater.from(getContext()).inflate(mo64140f(), (ViewGroup) null, false);\n this.f41185a.setVisibility(4);\n addView(this.f41185a);\n this.f41193i = 70;\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void animateViewsIn() {\n // setup random initial state\n ViewGroup root = findViewById(R.id.ll_consumer_main_container);\n float maxWidthOffset = 2f * getResources().getDisplayMetrics().widthPixels;\n float maxHeightOffset = 2f * getResources().getDisplayMetrics().heightPixels;\n Interpolator interpolator =\n AnimationUtils.loadInterpolator(this, android.R.interpolator.linear_out_slow_in);\n Random random = new Random();\n int count = root.getChildCount();\n for (int i = 0; i < count; i++) {\n View view = root.getChildAt(i);\n view.setVisibility(View.VISIBLE);\n view.setAlpha(0.85f);\n float xOffset = random.nextFloat() * maxWidthOffset;\n if (random.nextBoolean()) {\n xOffset *= -1;\n }\n view.setTranslationX(xOffset);\n float yOffset = random.nextFloat() * maxHeightOffset;\n if (random.nextBoolean()) {\n yOffset *= -1;\n }\n view.setTranslationY(yOffset);\n\n // now animate them back into their natural position\n view.animate()\n .translationY(0f)\n .translationX(0f)\n .alpha(1f)\n .setInterpolator(interpolator)\n .setDuration(1000)\n .start();\n }\n }", "public void FadeInBottomBar() {\n //define alpha animation\n AlphaAnimation fadeIn = new AlphaAnimation(0.0f, 1.0f);\n //set duration\n fadeIn.setDuration(1200);\n //set animation listener\n fadeIn.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n //set textview visible on animation ends\n textViewImageName.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n //start animation\n textViewImageName.startAnimation(fadeIn);\n isBottomBarVisible = true;\n }", "void onAnimationStart();", "private void animateDrawer(){\n int[] location = new int[2];\n int leftDelta;\n pageFontEl.getLocationOnScreen(location);\n if(switchState == \"off\"){\n leftDelta = 0;\n switchState = \"on\";\n } else{\n leftDelta = common.dip2px(HomeActivity.this, 130);\n switchState = \"off\";\n }\n pageFontEl.layout(leftDelta, 0, leftDelta + pageFontEl.getWidth(), 0 + pageFontEl.getHeight());\n }", "private void showViews() {\n toolbar.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2));\n toolbar.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();\n// getSupportActionBar().show();\n }", "@Override\n public void onClick(View v) {\n animMove = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_out);\n m_rad_DA1.startAnimation(animMove);\n m_rad_DA3.startAnimation(animMove);\n btnFiftyPercen.setEnabled(false);\n btnFiftyPercen.setBackgroundResource(R.drawable.button_black);\n }", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "private final void m75344c(int i) {\n ((FrameLayout) mo78146a(R.id.selectorLayout)).animate().alpha(i < 0 ? 1.0f : 0.0f).start();\n }", "public void mo35516a(float f, float f2) {\n int height = (int) ((f2 * ((float) getHeight())) - ((float) (this.f31162e.getWidth() / 2)));\n this.f31162e.setTranslationX((float) ((int) ((f * ((float) getWidth())) - ((float) (this.f31162e.getWidth() / 2)))));\n this.f31162e.setTranslationY((float) height);\n this.f31162e.animate().setListener(null).cancel();\n this.f31163f.animate().setListener(null).cancel();\n this.f31163f.setScaleX(0.0f);\n this.f31163f.setScaleY(0.0f);\n this.f31163f.setAlpha(1.0f);\n this.f31162e.setScaleX(1.36f);\n this.f31162e.setScaleY(1.36f);\n this.f31162e.setAlpha(1.0f);\n this.f31162e.animate().scaleX(1.0f).scaleY(1.0f).setStartDelay(0).setDuration(330).setListener(new C11954a()).start();\n this.f31163f.animate().scaleX(1.0f).scaleY(1.0f).setDuration(330).setListener(new C11955b()).start();\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "private void initAnimation(){\n\t\tplayer_card_anim = new TranslateAnimation(\r\n\t\t\t\tAnimation.ABSOLUTE, 0f,\r\n\t\t\t\tAnimation.ABSOLUTE, -240,\r\n\t\t\t\tAnimation.ABSOLUTE, 0f,\r\n\t\t\t\tAnimation.ABSOLUTE, -550);\r\n\t\tplayer_card_anim.setDuration(700);\r\n\t\tplayer_card_anim.setAnimationListener(new AnimationListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\tsetSelectCard(0, player_card_index);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnpc_card_anim = new TranslateAnimation(\r\n\t\t\t\tAnimation.ABSOLUTE, 0f,\r\n\t\t\t\tAnimation.ABSOLUTE, 240,\r\n\t\t\t\tAnimation.ABSOLUTE, 0f,\r\n\t\t\t\tAnimation.ABSOLUTE, 550);\r\n\t\tnpc_card_anim.setDuration(700);\r\n\t\tnpc_card_anim.setAnimationListener(new AnimationListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\tsetSelectCard(1, npc_card_index);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tplayer_dialog_anim = new ScaleAnimation(\r\n\t\t\t\t0f, 1f, 0f, 1f,\r\n\t\t\t\tAnimation.RELATIVE_TO_SELF, 0f,\r\n\t\t\t\tAnimation.RELATIVE_TO_SELF, 1f);\r\n\t\tplayer_dialog_anim.setDuration(500);\r\n\t\tplayer_dialog_anim.setAnimationListener(new AnimationListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\t\r\n\t\t\t\tnew Handler().postDelayed(new Runnable(){ \r\n\t\t\t\t public void run() { \r\n\t\t\t\t \t\r\n\t\t\t\t \tint player_card_count = globalTools.getThisCardCount(npc_chara_index, player_card_index);\r\n\t\t\t\t \tint npc_card_count = globalTools.getThisCardCount(npc_chara_index, npc_card_index);\r\n\t\t\t\t \t\r\n\t\t\t\t \tif(player_card_count == 0 && npc_card_count > 1){\r\n\t\t\t\t \t\tyes_or_no = ANSWER_YES;\r\n\t\t\t\t \t}else{\r\n\t\t\t\t \t\tyes_or_no = ANSWER_NO;\r\n\t\t\t\t \t}\r\n\t\t\t\t \t\r\n\t\t\t\t \tif(exchange_or_gamble == ACTION_EXCHANGE){\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t\tif(yes_or_no == ANSWER_YES){\r\n\t\t\t\t \t\t\ttv_npc_dialog.setText(R.string.negotiate_answer_exchange_yes);\r\n\t\t\t\t \t\t}else{\r\n\t\t\t\t \t\t\ttv_npc_dialog.setText(R.string.negotiate_answer_exchange_no);\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\ttv_npc_dialog.setVisibility(View.VISIBLE);\r\n\t\t\t\t \t\ttv_npc_dialog.startAnimation(npc_dialog_anim);\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t}else if(exchange_or_gamble == ACTION_GAMBLE){\r\n\t\t\t\t \t\t\r\n\t\t\t\t \t\tif(yes_or_no == ANSWER_YES){\r\n\t\t\t\t \t\t\ttv_npc_dialog.setText(R.string.negotiate_answer_gamble_yes);\r\n\t\t\t\t \t\t}else{\r\n\t\t\t\t \t\t\ttv_npc_dialog.setText(R.string.negotiate_answer_gamble_no);\r\n\t\t\t\t \t\t}\r\n\t\t\t\t \t\ttv_npc_dialog.setVisibility(View.VISIBLE);\r\n\t\t\t\t \t\ttv_npc_dialog.startAnimation(npc_dialog_anim);\r\n\t\t\t\t \t}\r\n\t\t\t\t } \r\n\t\t\t\t }, 1500);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnpc_dialog_anim = new ScaleAnimation(\r\n\t\t\t\t0f, 1f, 0f, 1f,\r\n\t\t\t\tAnimation.RELATIVE_TO_SELF, 1f,\r\n\t\t\t\tAnimation.RELATIVE_TO_SELF, 1f);\r\n\t\tnpc_dialog_anim.setDuration(500);\r\n\t\tnpc_dialog_anim.setAnimationListener(new AnimationListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationEnd(Animation animation) {\r\n\t\t\t\t\r\n\t\t\t\tnew Handler().postDelayed(new Runnable(){ \r\n\t\t\t\t public void run() { \r\n\t\t\t\t \ttv_player_dialog.setVisibility(View.INVISIBLE);\r\n\t\t\t\t\t\ttv_npc_dialog.setVisibility(View.INVISIBLE); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(yes_or_no == ANSWER_YES){\r\n\t\t\t\t\t\t\tif(exchange_or_gamble == ACTION_EXCHANGE){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tglobalTools.changeCardList(0, player_card_index, -1);\r\n\t\t\t\t\t\t\t\tglobalTools.changeCardList(0, npc_card_index, 1);\r\n\t\t\t\t\t\t\t\tglobalTools.changeCardList(npc_chara_index, player_card_index, 1);\r\n\t\t\t\t\t\t\t\tglobalTools.changeCardList(npc_chara_index, npc_card_index, -1);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tint temp = npc_card_index;\r\n\t\t\t\t\t\t\t\tnpc_card_index = player_card_index;\r\n\t\t\t\t\t\t\t\tplayer_card_index = temp;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\timg_player_card.startAnimation(player_card_anim);\r\n\t\t\t\t\t\t\t\timg_npc_card.startAnimation(npc_card_anim);\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} else if(exchange_or_gamble == ACTION_GAMBLE){\r\n\t\t\t\t\t\t\t\t// TODO\r\n//\t\t\t\t\t\t\t\tnegotiateListener.showTargetFragment(global_data.JUMP_BATTLE);\r\n//\t\t\t\t\t\t\t\tnegotiateListener.changeBattleCard(0, player_select_index);\r\n//\t\t\t\t\t\t\t\tnegotiateListener.changeBattleCard(1, enemy_select_index);\r\n//\t\t\t\t\t\t\t\tnegotiateListener.changeBattleEnemy(enemy_index);\r\n//\t\t\t\t\t\t\t\tnegotiateListener.changeBattleBackground(which_scene);\r\n\t\t\t\t\t\t\t\tglobalTools.setPlayerBattleCardIndex(player_card_index);\r\n\t\t\t\t\t\t\t\tglobalTools.setNpcBattleCardIndex(npc_card_index);\r\n\t\t\t\t\t\t\t\tglobalTools.setBattleNpcCharaIndex(npc_chara_index);\r\n\t\t\t\t\t\t\t\tnegotiate_listener.showTargetFragment(globalTools.SHOW_BATTLE);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t } \r\n\t\t\t\t }, 1500);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void crossFade() {\n robotIv.setAlpha(0f);\n robotIv.setVisibility(View.VISIBLE);\n\n // Animate the content view to 100% opacity, and clear any animation\n // listener set on the view.\n robotIv.animate()\n .alpha(1f)\n .setDuration(1800)\n .setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n welcomeTv.setVisibility(View.VISIBLE);\n }\n });\n\n }", "public void mo64136c() {\n if (mo64139e()) {\n ((IReadLaterFloatView) InstanceProvider.m107964b(IReadLaterFloatView.class)).setFloatViewVisible(true);\n ValueAnimator ofFloat = ValueAnimator.ofFloat((float) this.f41185a.getTop(), (float) (-this.f41188d));\n ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n /* class com.zhihu.android.app.p1011ad.pushad.$$Lambda$AbstractNotificationView$wXI6SvYUdl6E9e8C3K2h_AQOQfw */\n\n public final void onAnimationUpdate(ValueAnimator valueAnimator) {\n AbstractNotificationView.lambda$wXI6SvYUdl6E9e8C3K2h_AQOQfw(AbstractNotificationView.this, valueAnimator);\n }\n });\n ofFloat.addListener(new Animator.AnimatorListener() {\n /* class com.zhihu.android.app.p1011ad.pushad.AbstractNotificationView.C104832 */\n\n public void onAnimationCancel(Animator animator) {\n }\n\n public void onAnimationRepeat(Animator animator) {\n }\n\n public void onAnimationStart(Animator animator) {\n }\n\n public void onAnimationEnd(Animator animator) {\n AbstractNotificationView.this.f41185a.setVisibility(4);\n AbstractNotificationView.this.setVisibility(8);\n if (AbstractNotificationView.this.mo64135b() && (AbstractNotificationView.this.getContext() instanceof Activity)) {\n StatusBarUtil.m87236c((Activity) AbstractNotificationView.this.getContext());\n }\n if (AbstractNotificationView.this.f41195k != null) {\n AbstractNotificationView.this.f41195k.mo64153a(false);\n }\n }\n });\n ofFloat.setDuration(300L);\n ofFloat.start();\n this.f41196l = false;\n }\n }", "void startAnimation();", "public void onAnimationRepeat(Animation animation) {\n\r\n }" ]
[ "0.80835116", "0.7581445", "0.73080707", "0.7255903", "0.70888114", "0.68736875", "0.6477074", "0.64158136", "0.6399958", "0.6323233", "0.63191026", "0.62751585", "0.6267274", "0.6255209", "0.6240384", "0.62288517", "0.61929595", "0.6186734", "0.61770207", "0.61254144", "0.6100333", "0.6097366", "0.6075473", "0.60666007", "0.60405785", "0.604014", "0.6008922", "0.5982632", "0.59765804", "0.5972575", "0.59640425", "0.59635025", "0.5958755", "0.5946634", "0.59329885", "0.5916088", "0.5909491", "0.5892109", "0.58851427", "0.5877396", "0.5866371", "0.5827032", "0.5818662", "0.581413", "0.579595", "0.5783017", "0.57546514", "0.575366", "0.57462597", "0.57451314", "0.5742551", "0.57203937", "0.5709742", "0.5708553", "0.5684294", "0.56837", "0.56730014", "0.5659344", "0.5659277", "0.5659277", "0.5659277", "0.5653054", "0.56527096", "0.56527096", "0.56440586", "0.5637711", "0.56325823", "0.56144506", "0.55847186", "0.55847186", "0.55847186", "0.55847186", "0.55640364", "0.55558074", "0.55558074", "0.5552878", "0.5552799", "0.5524416", "0.551997", "0.55184686", "0.5512175", "0.5502578", "0.54977834", "0.549219", "0.5487683", "0.5483926", "0.54806584", "0.54806584", "0.54800457", "0.54707295", "0.5467824", "0.5458976", "0.5458976", "0.5458976", "0.5448934", "0.544279", "0.5440021", "0.5438011", "0.5431182", "0.54267126", "0.5417733" ]
0.0
-1
It is used to add a product item into excel.
@Override public String addItem(Product pro, String filePath) { return productDetailsRepository.addItem(pro, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addProduct(Product item)\n {\n stock.add(item);\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();", "private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }", "public addproduct() {\n\t\tsuper();\n\t}", "public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }", "void addProduct(Product product);", "public void addProduct(Product product);", "public void Addproduct(Product objproduct) {\n\t\t\n\t}", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;", "public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "CatalogItem addCatalogItem(CatalogItem catalogItem);", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "private static void addProductsToStore() throws Exception\n {\n store.add(new Sales(123, \"Heinz Catsup\", .8, 45.4, 55));\n store.add(new Sales(244, \"Guilden's Mustard\", .85, 23.4, 28));\n store.add(new Sales(303, \"Lipton Noodle Soup\", .9, 9.0, 6));\n store.add(new Sales(445, \"Meow Mix Cat Food\", .7, 25.7, 43));\n store.add(new Sales(501, \"Hershey's Chocolate Syrup\", .95, 38.0, 23));\n }", "@Override\n\tpublic void insert(ExportProduct exportProduct) {\n\t\t\n\t}", "public HSSFWorkbook process(){\r\n\t\tHSSFSheet sheet = templateWorkbook.getSheetAt(0);\r\n\r\n\t\t//write product infmration\r\n\t\torder.putSetToList();\r\n\t\tList<InventoryOrderProduct> orderProducts = order.getProduct_List();\r\n\t\tint totalDataRow = orderProducts.size();\r\n\t\tfor (int i = 0; i < totalDataRow; i++){\r\n\r\n\t\t\tInventoryOrderProduct orderProduct = orderProducts.get(i);\r\n\t\t\tRow row = sheet.createRow(data_row + i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tProduct product = orderProduct.getProductBarcode().getProduct();\r\n\t\t\trow.createCell(barcode_column).setCellValue(orderProduct.getProductBarcode().getBarcode());\r\n\t\t\t\r\n\t\t\tColor color = orderProduct.getProductBarcode().getColor();\r\n\t\t\tif (color == null)\r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode());\r\n\t\t\telse \r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode() + color.getName());\r\n\t\t\t\r\n\t\t\trow.createCell(unit_column).setCellValue(product.getUnit());\r\n\t\t\tint q = orderProduct.getQuantity();\r\n\t\t\t\r\n\t\t\trow.createCell(quantity_column).setCellValue(orderProduct.getQuantity());\r\n\t\t\trow.createCell(salePrice_column).setCellValue(orderProduct.getSalesPrice());\r\n\t\t\t\r\n\t\t\tString year = product.getYear().getYear();\r\n\t\t\tString quarter = product.getQuarter().getQuarter_Name();\r\n\t\t\tString brandName = product.getBrand().getBrand_Name();\r\n\t\t\t\r\n\t\t\tString productComment = year +\"年\" + brandName + quarter + \"装\";\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\trow.createCell(productComment_column).setCellValue(productComment);\r\n\t\t}\r\n\r\n\t\treturn templateWorkbook;\r\n\t}", "public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}", "public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}", "public void addProduct(Product p){\n stock.add(p);\n }", "protected static void addBook(Book toAdd)\n {\n if (toAdd == null) // if product is null, becuase the formatting wasnt correct, then dont go forward and print out that the book wasnt added\n ProductGUI.Display(\"Book not added\\n\");\n else{\n try{\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) // if the product id alrady exists, dont go forard towards adding it\n {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n }\n else\n ProductGUI.Display(\"New book product\\n\");\n \n myProduct = new Book(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getAuthor(), toAdd.getPublisher()); // make new product using this object\n productList.add(myProduct); // add product to arraylist\n \n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"book added to all\");\n ProductGUI.fieldReset(); // reset the fields to being blank\n } catch (Exception e){\n ProductGUI.Display(e.getMessage()+\"errorrorror\\n\");\n }\n }\n }", "public void addItem(Product p) {\n\t\t_items.add(p);\n\t}", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public static void addProduct(Product product){\r\n \r\n System.out.println(\"Adding Product \" + product.getProductName());\r\n productInvMap.put(productInvMap.size(),product);\r\n }", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}", "public void addProduct(){\n\t\tSystem.out.println(\"Company:\");\n\t\tSystem.out.println(theHolding.fabricationCompanies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Code:\");\n\t\t\tString code = reader.nextLine();\n\t\t\tSystem.out.println(\"Water quantity require:\");\n\t\t\tdouble waterQuantity = reader.nextDouble();\n\t\t\treader.nextLine();\n\t\t\tSystem.out.println(\"Inventory:\");\n\t\t\tint inventory = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tProduct toAdd = new Product(name, code, waterQuantity, inventory);\n\t\t\ttheHolding.addProduct(selected, toAdd);\n\t\t\tSystem.out.println(\"The product were added successfuly\");\n\t\t}\n\t}", "public void addProduct(Product p) {\n c.addProduct(p);\n }", "public String addToInventory(Product productDetails){\n productDetails.setProductForSale(\"Y\");\n productDetails = mongoDbConnector.addToInventory(productDetails);\n return productDetails.getProductName();\n }", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "void createItem (String name, String description, double price);", "public String addProduct() throws Exception {\r\n\t\t\r\n\t\t//content spot entity\r\n\t\tSpotBean spotBean = new SpotBean();\r\n\t\tspotBean.setId(this.getContentSpot().getId());\r\n\t\tspotBean = contentSpotService.load(spotBean);\r\n\t\t\r\n\t\t//main content spot\r\n\t\tContentSpot content = spotBean.getContentSpot();\r\n\t\tthis.products = content.getProducts();\r\n\r\n\t\t//configure products list attribute\r\n\t\tcontent.setProducts(extractProducts());\r\n\t\t\r\n\t\treturn update(spotBean);\r\n\t}", "Product addNewProductInStore(Product newProduct);", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "public void addProduct(Product product){\n // Adding new contact\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_PRODUCT_NAME, product.getName_product());\n values.put(IS_STRIKE_OUT, product.IsStrikeout());\n values.put(KEY_UUID_PRODUCT_NAME, String.valueOf(product.getId()));\n\n\n // Inserting Row\n db.insert(TABLE_PRODUCTS, null, values);\n Log.d(LOG_TAG_ERROR, \"addProduct OK \" + \" \" + product.getName_product() + \" \" + product.getId());\n\n db.close(); // Closing database connection\n }", "@FXML void but_AddProduct(ActionEvent event) {\n\n productLine.add(new Widget(txtProductName.getText(), txtManufacturer.getText(),\n choiceType.getValue())); //Adding test product in observable list\n\n productTable.setItems(productLine); //Adds product to table\n listProduce.setItems(productLine); //Adds product to produce list\n\n addToDatabaseProduct();\n\n System.out.println(\"Product added\");\n }", "@Override\n\tpublic boolean addProduct(Products productInfoBean) {\n\t\treturn dao.addProduct(productInfoBean);\n\t}", "protected static void addElec(Electronics toAdd) {\n ProductGUI.Display(\"addElec function\\n\");\n if (toAdd == null) {\n ProductGUI.Display(\"Elec not added\\n\");\n } else {\n try {\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n } else {\n ProductGUI.Display(\"new electronic Product\\n\");\n }\n\n myProduct = new Electronics(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getMaker());\n productList.add(myProduct);\n\n //itemName = itemName.toLowerCase();\n //System.out.println(itemName);\n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"elec added to all\");\n ProductGUI.fieldReset();\n } catch (Exception e) {\n ProductGUI.Display(e.getMessage());\n }\n }\n }", "public void addItem(Product p) throws IOException, ClassNotFoundException {\n SortByName sortByName = new SortByName();\n Collections.sort(cartContents, sortByName.productSearch());\n\n int m = this.getQuantity(p);\n //check if in cart will exceed available amount\n if (p.getAvailableQuantity() > m)\n {\n cartContents.add(p);\n }\n saveCart();\n }", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "@Override\n public void addItem(P_CK t) {\n \n }", "public void insertItemDetails(String itemName, Integer quantityOfItem, Double rateOfItem);", "public void addItem(Item e) {\n\t\tItem o = new Item(e);\n\t\titems.add(o);\n\t}", "public void addItem() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Item Name: \");\n\t\tString itemName = scanner.nextLine();\n\t\tSystem.out.print(\"Enter Item Description: \");\n\t\tString itemDescription = scanner.nextLine();\n\t\tSystem.out.print(\"Enter minimum bid price for item: $\");\n\t\tdouble basePrice = scanner.nextDouble();\n\t\tLocalDate createDate = LocalDate.now();\n\t\tItem item = new Item(itemName, itemDescription, basePrice, createDate);\n\t\taddItem(item);\n\t}", "public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}", "public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }", "public importProduct() {\n initComponents();\n Sql s = new Sql();\n\n s.Select_MaterialItem(Materials_combox);\n s.loadcombo(item_combox);\n s.Select_BigItem(Bigitem_combox);\n }", "public void addProduct(ProductBarcode barcode) throws IllegalArgumentException;", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }", "public AddItem() {\n initComponents();\n loadAllToTable();\n tblItems.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblItems.getSelectedRow() == -1) return;\n \n String itemId= tblItems.getValueAt(tblItems.getSelectedRow(), 0).toString();\n \n String des= tblItems.getValueAt(tblItems.getSelectedRow(), 1).toString();\n String qty= tblItems.getValueAt(tblItems.getSelectedRow(), 2).toString();\n String unitPrice= tblItems.getValueAt(tblItems.getSelectedRow(), 3).toString();\n \n txtItemCode.setText(itemId);\n txtDescription.setText(des);\n \n txtQtyOnHand.setText(qty);\n txtUnitPrice.setText(unitPrice);\n \n }\n \n });\n \n \n }", "public synchronized void pdp_AddToBag() throws Exception {\n\n\t\t// Code to remove focus from zoomed image on page load\n\t\tif (!Utils.isDeviceMobile()) {\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(productPrice()).build().perform();\n\t\t}\n\n\t\tutils.scrollToViewElement(driver, pdp_btn_AddToBag());\n\n\t\t// Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile\n\t\tif (Utils.isDeviceMobile())\n\t\t\thandleBounceXOnPDP();\n\n\t\tpdp_btn_AddToBag().click();\n\t\t// Thread.sleep(3000);\n\n\t\tif (!utils.brand.equals(\"LGFP\"))\n\t\t\tAssert.assertTrue(utils.isElementPresent(driver, \"PDP_continueShopping\"),\n\t\t\t\t\t\"Item Added To Bag modal not displayed in mobile\");\n\t}", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}", "public void addItemToSale(String productId, int quantity) {\r\n if (productId.isEmpty()) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id is missing - enter valid product id\");\r\n System.exit(1);\r\n }\r\n if (quantity <= 0) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"quantity is less than or equal to 0 - enter valid quantity\");\r\n System.exit(1);\r\n }\r\n FakeDatabase db = new FakeDatabase();\r\n Product product = db.findProduct(productId);\r\n\r\n if (product != null) { //product found in database\r\n receipt.addLineItem(product, quantity);\r\n } else {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id not found in database - enter valid product id\");\r\n System.exit(1);\r\n }\r\n }", "public synchronized void addToBag(WebDriver driver, int rowNo, int colNo) throws Exception {\n\t\ttry {\n\t\t\tif (rowNo != 0 && colNo != 0)\n\t\t\t\topenPDP(driver, rowNo, colNo);\n\n\t\t\t// plpPage.navigateToPLP(driver, \"Clothing\", \"New Arrivals\");\n\t\t\tReporter.log(Constants.DELIMITER\n\t\t\t\t\t+ \"*************Product Description Page: Add Item to Shopping Bag************\");\n\n\t\t\tThread.sleep(500);\n\n\t\t\t// Clicking on the Size Types on the Product Description Page\n\t\t\tReporter.log(Constants.DELIMITER + \"| PDP Page: Click action is performed on Size Types\");\n\n\t\t\t// Clicking on the Color Swatch on the Product Description Page\n\t\t\tselectColor();\n\t\t\tReporter.log(Constants.DELIMITER + \"| PDP Page: Click action is performed on Color Swatch\");\n\n\t\t\t// Clicking on the Size Swatch on the Product Description Page\n\t\t\tif (utils.device.equals(\"desktop\"))\n\t\t\t\tselectSize();\n\t\t\telse\n\t\t\t\tselectSizeMobile();\n\n\t\t\tReporter.log(Constants.DELIMITER + \"| PDP Page: Click action is performed on Size Swatch\");\n\n\t\t\tif (utils.browser.equals(\"android\")) {\n\t\t\t\tutils.scrollDownByxPostion(driver, 1000);\n\t\t\t\t// pdp_btn_AddToBag().click();\n\t\t\t\tpdp_AddToBag();\n\t\t\t} else {\n\n\t\t\t\t// productName_PDP = txt_ProductName().getText();\n\t\t\t\t// Clicking on the Add To Bag Button on the Product Description\n\t\t\t\t// Page\n\n\t\t\t\t// Clicking on the Add To Bag Button on the Product Description\n\t\t\t\t// Page\n\n\t\t\t\t// Clicking on the Add To Bag Button on the Product Description\n\t\t\t\t// Page\n\n\t\t\t\tpdp_AddToBag();\n\t\t\t}\n\t\t\tReporter.log(Constants.DELIMITER + \"| Login Page: Click action is perfromed on Add To Bag button\");\n\n\t\t\tUtils.waitForPageLoaded(driver);\n\t\t\t// Assert.assertTrue(utils.isElementPresent(driver,\n\t\t\t// \"PDPAddToBagNotification\",\n\t\t\t// \"Add To Bag Notifications\"),\n\t\t\t// \"'ITEM ADDED TO BAG' Not displayed\");\n\t\t\tReporterLog.actionMsg(\"Item Successfully Added to Bag\");\n\t\t\tThread.sleep(6000);\n\t\t\tif (utils.browser.equals(\"android\")) {\n\t\t\t\tutils.scrollUp(driver);\n\t\t\t\tThread.sleep(1000);\n\t\t\t}\n\n\t\t\thomePage.click_lnk_shoppingBag();\n\t\t\tUtils.waitForPageLoaded(driver);\n\n\t\t\t// utils.waitForElementToBeClickable(driver,\n\t\t\t// \"PDPAddToBagNotification\",\n\t\t\t// \"checkout now not clickable\");\n\t\t\t// utils.findElementByLocator(driver, \"PDPAddToBagNotification\",\n\t\t\t// \"continue\n\t\t\t// shopping not found\").click();\n\t\t\t// utils.waitForPageLoaded(driver);\n\t\t\t// //\n\t\t\t// driver.get(\"https://origin-stage2-factory.r.anntaylor.com/cart\");\n\t\t\t// // Utils.waitForPageLoaded(driver);\n\n\t\t} catch (Exception e) {\n\t\t\tCustomException.throwExceptionError(e, \"PDP\", \"Add To Bag action failed\", driver);\n\t\t} catch (AssertionError e) {\n\t\t\tCustomException.throwAssertionError(e, \"PDP\", \"Add To Bag action failed\", driver);\n\t\t}\n\t}", "public void agregar(Producto producto) throws BusinessErrorHelper;", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public void addHardwareDeviceToSell()\n {\n try\n {\n String Description=sellDescriptiontxt.getText();\n String Manufacturer=sellManufacturertxt.getText();\n \n int price=Integer.parseInt(pricetxt.getText());\n int tax=Integer.parseInt(taxtxt.getText());\n HardwareDeviceToSell HardwareToSell=new HardwareDeviceToSell(Description, Manufacturer, price,tax);\n equipment.add(HardwareToSell);\n \n JOptionPane.showMessageDialog(frame, \"Sucessfully added GeneratorToSell\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\r\n\tpublic void addProduct() {\n\r\n\t\ttry {\r\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(\"pizza.txt\"));\r\n\t\t\r\n\t\t\tint flag = 1;\r\n\t\t\twhile (flag == 1) {\r\n\t\t\t\tSystem.out.println(\"Enter your Pid\");\r\n\t\t\t\tint pId = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter your pname\");\r\n\t\t\t\tString pName = sc.next();\r\n\t\t\t\tSystem.out.println(\"Enter your pprice\");\r\n\t\t\t\tint pPrice = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"enter quantity\");\r\n\t\t\t\tint pqty = sc.nextInt();\r\n\t\t\t\tPizzaBean pb = new PizzaBean(pId, pName, pPrice, pqty);\r\n\t\t\t\tpizza.add(pb);\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Do you want to add one more record press 1 otherwise any number\");\r\n\t\t\t\tflag = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\toos.writeObject(pizza);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\t\t\t\tSystem.out.println(\"----Pizzas succesfully added----------\");\r\n\t\t}\r\n\t\t\t catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n\t}", "protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public void addItems(String name, String mobile){\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\n\t\tvalues.put(KEY_NAME, name);\n\t\tvalues.put(KEY_PRICE, mobile);\n\n\t\tlong id = db.insert(TABLE_SHOP, null, values); // insert to 1st row\n\t\tdb.close(); // Closing database connection\n\n\t\tLog.d(TAG, \"New products inserted into sqlite: \" + id);\n\n\t}", "public void addProduct(Product product) {\n allProducts.add(product);\n }", "public abstract void addItems(IconButtonRow iconButtonRow);", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "@Override\n\tpublic void addProduct(Product product) throws DataBaseAccessException {\n\t\tLOGGER.debug(\"Inserting a single row into a database table\");\n\t\tLOGGER.info(\"values of product \" + product.getProductId());\n\t\tObject[] insert = new Object[] { product.getProductId(), product.getProductName(),\n\t\t\t\tproduct.getProductCategory() };\n\t\ttry {\n\t\t\tjdbcTemplate.update(INSERT_PRODUCT, insert);\n\t\t} catch (DataAccessException e) {\n\t\t\tthrow new DataBaseAccessException(\"unable to do the transaction \" + e);\n\t\t}\n\t}", "public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }", "private void addItem() {\n\n ItemBean bean2 = new ItemBean();\n int drawableId2 = getResources().getIdentifier(\"ic_swrl\", \"drawable\", this.getPackageName());\n bean2.setAddress(drawableId2);\n bean2.setName(getResources().getString(R.string.swrl));\n itemList.add(bean2);\n\n ItemBean bean3 = new ItemBean();\n int drawableId3 = getResources().getIdentifier(\"ic_bianmin\", \"drawable\", this.getPackageName());\n bean3.setAddress(drawableId3);\n bean3.setName(getResources().getString(R.string.bianmin));\n itemList.add(bean3);\n\n ItemBean bean4 = new ItemBean();\n int drawableId4 = getResources().getIdentifier(\"ic_shenghuo\", \"drawable\", this.getPackageName());\n bean4.setAddress(drawableId4);\n bean4.setName(getResources().getString(R.string.shenghuo));\n itemList.add(bean4);\n\n ItemBean bean5 = new ItemBean();\n int drawableId5 = getResources().getIdentifier(\"ic_nxwd\", \"drawable\", this.getPackageName());\n bean5.setAddress(drawableId5);\n bean5.setName(getResources().getString(R.string.nxwd));\n// itemList.add(bean5);\n\n }", "void addElementToInventory(String elementName);", "public boolean addItem(Item item) throws RemoteException, ClassNotFoundException, SQLException {\n Connection conn = DBConnection.getConnection();\n PreparedStatement stm = conn.prepareStatement(\"Insert into Item values(?,?,?,?)\");\n Object[] itemData = {item.getCode(), item.getDescription(), item.getUnitPrice(), item.getQtyOnHand()};\n for (int i = 0; i < itemData.length; i++) {\n stm.setObject(i + 1, itemData[i]);\n }\n return stm.executeUpdate() > 0;\n }", "public void add(Product product) {\r\n sessionFactory.getCurrentSession()\r\n .save(product);\r\n }", "public void saveButtonPressed(ActionEvent actionEvent) throws IOException{\n validateInputs(actionEvent);\n\n if (isInputValid) {\n //creates a new Product object with identifier currentProduct\n currentProduct = new Product(productNameInput, productInventoryLevel, productPriceInput, maxInventoryLevelInput, minInventoryLevelInput);\n\n //passes currentProduct as the argument for the .addMethod.\n Inventory.getAllProducts().add(currentProduct);\n\n //utilizes the associatedPartsTableviewHolder wiht a for loop to pass each element as an argument\n //for the .addAssociatedPart method.\n for (Part part : associatedPartTableViewHolder) {\n currentProduct.addAssociatedPart(part);\n }\n\n //calls the returnToMainMen() method.\n mainMenuWindow.returnToMainMenu(actionEvent);\n }\n else {\n isInputValid = true;\n }\n\n }", "@Override\n\t@Transactional\n\tpublic String addProduct(Inventory product) {\n\t\treturn null;\n\t}", "@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }", "@Override\r\n\tpublic int add(Product product) throws Exception {\n\t\treturn this.dao.add(product);\r\n\t}", "public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}", "public void addProduct(Product newProduct) {\n System.out.println(\"addProduct(): \" + newProduct.getName());\n allProducts.add(newProduct);\n }", "public void enterItem(String productId) {\r\n\t\tproduct = ProductCatalog.getProductCatalogMap().get(productId);\r\n\t\tBigDecimal subTotal = fetchSaleLineItem();\r\n\t\ttaxModel.setTaxTypeModelList(TaxCalculationHelper.fetchAllTaxTypes());\r\n\t\ttaxModel.setProductPriceIncludingTax(TaxCalculationHelper.calculatePriceWithTax(subTotal));\r\n\t\tpublishPropertyEventBeforeSale();\r\n\t}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "void addGroceryItem(String item) {\n\n\t}", "private void insertProduct() {\n\n Uri imageforDummyProductURI = Uri.parse(\"android.resource://com.ezyro.uba_inventory/drawable/img_audi_a3\");\n\n\n // Create a ContentValues objecURI\n ContentValues values = new ContentValues();\n values.put(ProductEntry.COLUMN_PRODUCT_NAME, \"ford\");\n values.put(ProductEntry.COLUMN_PRODUCT_UNIT_PRICE, 25000);\n values.put(ProductEntry.COLUMN_PRODUCT_QUANTITY, 1);\n values.put(ProductEntry.COLUMN_PRODUCT_IMAGE_PATH, String.valueOf(imageforDummyProductURI));\n values.put(ProductEntry.COLUMN_PRODUCT_CATEGORY_NAME,\"Car\");\n values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_ID,1);\n // values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_NAME, \"Audi\");\n // values.put(ProductEntry.COLUMN_PRODUCT_SUPPLIER_EMAIL, \"[email protected]\");\n\n Uri newUri = getContentResolver().insert(ProductEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }", "@FXML void onActionModifyProductAdd(ActionEvent event) {\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n tmpAssociatedParts.add(selectedPart);\n }", "public void insert(Product product) {\n this.products.add(product);\n }", "public void addItem(SalesItem salesItem)\n {\n this.salesItem[numItemsAdded] = salesItem;\n numItemsAdded = numItemsAdded + 1;\n }", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public void addProduct(Product toAdd) {\n\t\tthis.products.add(toAdd);\n\t}", "private void addDeviceItem() throws SQLException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry{\r\n\t\t\tnameDevice = edtNameDevice.getText().toString().trim();\r\n\t\t\tportDevice = Integer.parseInt(edtPortDevice.getText().toString().trim());\r\n\t\t\troomID = getIntent().getExtras().getInt(\"room_id\");\r\n\t\t\t\r\n\t\t\tDeviceItem item = new DeviceItem(roomID, nameDevice, typeDevice, portDevice, statusDevice);\r\n\t\t\tDeviceItemController.getInstance(AddDeviceItemActivity.this).createDeviceItem(item);\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\tToast.makeText(AddDeviceItemActivity.this, \"Add device item error. Please verify your device infomations!\", Toast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t}", "public void AddToCartListPage(String Item){\r\n\t\tString Addtocartlistitem = getValue(Item);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Addtocartlist should be Added\");\r\n\t\ttry{\r\n\t\t\twaitForElement(locator_split(\"BylnkFavListAddToCart\"));\r\n\t\t\tclickObjectByMatchingPropertyValue(locator_split(\"BylnkFavListAddToCart\"),propId,Addtocartlistitem);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Addtocartlist is Added.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Addtocartlist is Added\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Addtocartlist is not Added\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BylnkFavListAddToCart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "public void addNewProduct(String name, String metaTag, String model, double price, String category) {\r\n\t\t\r\n\t\t//clicking on add button\r\n\t\tthis.addNewBtn.click();\r\n\t\t\r\n\t\t//entering the name of product in the category name field\r\n\t\tthis.productName.sendKeys(name);\r\n\t\t\r\n\t\t//entering meta tag title for the product\r\n\t\tthis.metaTag.sendKeys(metaTag);\r\n\t\t\r\n\t\t//going to model tab\r\n\t\tthis.dataTabBtn.click();\r\n\t\t\r\n\t\t//entering model no\r\n\t\tthis.modelField.sendKeys(model);\r\n\t\t\r\n\t\t//entering price\r\n\t\tthis.priceField.sendKeys(String.valueOf(price));\r\n\t\t\r\n\t\t//going to links tab\r\n\t\tthis.linksTabBtn.click();\r\n\t\t\r\n\t\t//entering categories\r\n\t\tthis.categoriesField.sendKeys(category);\r\n\t\t\r\n\t\t//clicking on save button\r\n\t\tthis.saveBtn.click();\t\t\r\n\t}", "public void addProduct(Product product)\n {\n SQLiteDatabase db = this.database.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n\n values.put(ShoppingListTable.KEY_TPNB, product.getTPNB());\n values.put(ShoppingListTable.KEY_NAME, product.getName());\n values.put(ShoppingListTable.KEY_DESCRIPTION, product.getDescription());\n values.put(ShoppingListTable.KEY_COST, product.getCost());\n values.put(ShoppingListTable.KEY_QUANTITY, product.getQuantity());\n values.put(ShoppingListTable.KEY_SUPER_DEPARTMENT, product.getSuperDepartment());\n values.put(ShoppingListTable.KEY_DEPARTMENT, product.getDepartment());\n values.put(ShoppingListTable.KEY_IMAGE_URL, product.getImageURL());\n values.put(ShoppingListTable.KEY_CHECKED, product.isChecked());\n values.put(ShoppingListTable.KEY_AMOUNT, product.getAmount());\n values.put(ShoppingListTable.KEY_POSITION, product.getAmount());\n\n db.insert(ShoppingListTable.TABLE_NAME, null, values);\n\n db.close();\n }", "public void addPromoItem(){\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\ttry {\r\n\t\t\tint i = 0;\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\twhile (RestaurantApp.globalMenuManager.getSizeOfMenu()!=i && RestaurantApp.globalMenuManager.getMenuItem(i).Type != type.PROMO){\r\n\t\t\t\tSystem.out.println((i+1)+\". \");\r\n\t\t\t\tRestaurantApp.globalMenuManager.getMenuItem(i).print();\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//RestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\t\tSystem.out.println(\"Which item would you like to add?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif(menuIndex <= 0 || menuIndex >i){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+i);\r\n\t\t\t}\r\n\t\t\tthis.promo.add(RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1)); //add the index - 1 menuItem to promoPackage\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"program exiting...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "void add(Item item);", "public void addItem(String nameMeal, String quantity, String idOrder) {\n\n\t\ttry {\n\n\t\t\torderDetails.insertNewOrderDetail(idOrder, quantity, nameMeal);\n\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\t}", "@Override\r\n\tpublic ResponseData addProduct(ProductModel productModel) {\n\t\tProduct product = (Product) productConverter.convert(productModel);\r\n\t\tlong i = productRepositoryImpl.addProduct(product).getId();\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ResponseData(product.getId(), true, \"Save Data Success full\");\r\n\t\t} else {\r\n\t\t\treturn new ResponseData(0, false, \"Failed\");\r\n\t\t}\r\n\r\n\t}", "public static ArrayList<Product> addNewProduct() {\r\n\r\n\t\tSupplier selectedSup = Part02Tester.getSupplier();\r\n\r\n\t\tArrayList<Product> newProductArray = addProduct();\r\n\r\n\t\tProduct newProduct = newProductArray.get(0);\r\n\r\n\t\tArrayList<Product> prodList = selectedSup.getSupProducts();\r\n\r\n\t\tprodList.add(newProduct);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//The product is then added to the array list for the specified supplier\r\n\t\treturn newProductArray;\r\n\r\n\t}" ]
[ "0.6995885", "0.6939574", "0.6937986", "0.69344014", "0.68376243", "0.6767563", "0.66861236", "0.6644359", "0.6638575", "0.66375166", "0.6626132", "0.66248834", "0.66024476", "0.6570927", "0.65468", "0.6537211", "0.6409681", "0.63814926", "0.6371822", "0.63350886", "0.63339937", "0.63338536", "0.6332247", "0.63067055", "0.6301202", "0.6296168", "0.62683177", "0.6263881", "0.62517846", "0.6224949", "0.62241906", "0.62157583", "0.62105757", "0.619665", "0.6188018", "0.6187886", "0.61523", "0.6134654", "0.6126245", "0.61187", "0.61061233", "0.6095837", "0.609136", "0.6066979", "0.60550165", "0.6054317", "0.60481095", "0.60432696", "0.6038491", "0.60297436", "0.60036975", "0.5990552", "0.5972724", "0.5972389", "0.5967605", "0.59514976", "0.59454197", "0.59378254", "0.5924643", "0.5916213", "0.5914482", "0.5909673", "0.5908881", "0.59087837", "0.5875092", "0.58705145", "0.5867907", "0.58656675", "0.5863218", "0.5838972", "0.5832133", "0.5827354", "0.58259326", "0.5814515", "0.58118165", "0.5806218", "0.57978255", "0.57955396", "0.578456", "0.57810223", "0.5779762", "0.57791436", "0.57783324", "0.57759184", "0.5770553", "0.5768596", "0.5765712", "0.5761464", "0.57576954", "0.575283", "0.5751019", "0.57504255", "0.5748178", "0.5740632", "0.5737182", "0.5732685", "0.57248515", "0.572466", "0.5721541", "0.5718009" ]
0.6395041
17
It is used to remove a product item from excel.
@Override public String removeItem(String id, String filePath) { return productDetailsRepository.removeItem(id, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeProduct(int position) throws ProductNotFoundException;", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "void removeProduct(Product product);", "public void removeProduct(ProductBarcode code) throws NoSuchElementException;", "protected abstract void removeItem();", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "@Override\r\n public void removeProduct(ProductBarcode code) throws NoSuchElementException\r\n {\r\n \tif (products.contains(code))\r\n {\r\n products.remove(code);\r\n }\r\n else\r\n {\r\n throw new NoSuchElementException(\"Product not in this container!\");\r\n }\r\n }", "ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "@Override\n public Item removeItem(int itemNum) throws VendingMachinePersistenceException {\n loadItemFile();\n Item itemToRemove = itemMap.remove(itemNum);\n writeItemFile();\n\n return itemToRemove;\n }", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "private void removeProducto(int position) {\n losproductos.remove(position);\n // Notificamos de un item borrado en nuestro array\n eladaptador.notifyItemRemoved(position);\n }", "private void deleteItem() {\n // Only perform the delete if this is an existing inventory item\n if (mCurrentInventoryUri != null) {\n // Call the ContentResolver to delete the inventory item at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentInventoryUri\n // content URI already identifies the inventory item that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentInventoryUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_inventory_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "public void removeGroceryItem(String item){\n int position = findItem(item);\n if(position > 0)\n myGrocery.remove(position);\n }", "public void removeItem(int id);", "public void remove(TradeItem newItem) {\n items.remove(newItem);\n }", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void removeItem(Product p) throws ProductNotFoundException {\n\t\tif (!_items.remove(p)) {\n\t\t\tthrow new ProductNotFoundException(\"No existeix producte\");\n\t\t}\n\t}", "public static void deleteItem()\r\n\t{\r\n\t\tif(receiptList.getSelectedIndex() < listModel.getSize()-4 && receiptList.getSelectedIndex() > -1)\r\n\t\t{\r\n\t\t\tString itemPrice = receiptList.getSelectedValue().substring(0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treceiptList.getSelectedValue().indexOf(\" \"));\r\n\t\t\t\r\n\t\t\tsubtotalAmount = subtotalAmount - Functions.toAmount(itemPrice);\r\n\t\t\tupdateTotals();\r\n\t\t\t\r\n\t\t\tlistModel.removeElementAt(receiptList.getSelectedIndex());\r\n\t\t\tif(listModel.getSize() == 4)\r\n\t\t\t\tclearReceipt();\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int count=0; count < 4; count++)\r\n\t\t\t\t\tlistModel.removeElementAt(listModel.getSize()-1);\r\n\t\t\t\tlistModel.addElement(\" \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(subtotalAmount) + manualTab(Functions.toMoney(subtotalAmount)) + \"Subtotal \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(taxAmount) + manualTab(Functions.toMoney(taxAmount)) + \"Tax\");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(totalAmount) + manualTab(Functions.toMoney(totalAmount)) + \"Total\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic GlobalResult deleteEquip(String mspno) {\n\t\treturn null;\r\n\t}", "private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }", "public void remove()\n { \n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_NO_DELETE\"); // Message name\n \n }", "@Override\n public void deleteItem(P_CK t) {\n \n }", "private void remove(GroceryItem itemObj, String itemName, double itemPrice) {\n\t\tif (!bag.remove(itemObj)) {\n\t\t\tSystem.out.println(\"Unable to remove, this item is not in the bag.\");\n\t\t} else {\n\t\t\tSystem.out.println(itemName + \" \" + itemPrice + \" removed.\");\n\t\t}\n\t}", "public void Deleteproduct(Product objproduct) {\n\t\t\n\t}", "public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}", "@Override\n\tpublic int deleteProduct(String productNo) {\n\t\treturn 0;\n\t}", "public native String removeItem(Number index);", "public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if(button.getText().equals(removeButton.getText()))\n {\n if(textItemName.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemName(textItemName.getText());\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,item.getId(),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() != 0 && textItemId.getText().length() != 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n if(item.getName().equals(textItemName.getText()))\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.MODIFY);\n dep.NotifyRemove(notification);\n noCorespondence.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n else\n {\n noCorespondence.setVisible(true);\n }\n }\n }\n\n }\n }", "public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "public void removeExerciseItem(String item) {\n\n String toDelete = KEY_EXERCISE + \"=?\";\n String[] deleteArguments = new String[]{item};\n db.delete(DATABASE_TABLE_EXERCISES, toDelete, deleteArguments);\n }", "@Test\n public void testRemoveItem() throws Exception {\n System.out.println(\"removeItem\");\n Orcamentoitem orcItem = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeItem(orcItem);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void removeItem(int itemToRemove){\n\t\tinventoryItems[itemToRemove] = null;\n\t}", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "void removeCartItem(int cartItemId);", "public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }", "void removeOrderItem(OrderItem target);", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "public void clickRemoveButton_SPOItem(int noitemremove) {\n for (int i = 1; i <= noitemremove; i++) {\n WebElement clickremove = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//a[text()='Remove']\"));\n String nameofproduct = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//*[@class='product_name']/span\")).getText();\n clickremove.click();\n System.out.println(\"=== Name of the product Removed: \" + nameofproduct);\n listOfDeletedItemNameShoppingCart.add(nameofproduct);\n }\n }", "@Test\r\n\tpublic void testRemoveItem() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"B\");\r\n\t\tassertEquals(test, vendMachine.removeItem(\"B\"));\r\n\t}", "public void eliminar(Producto producto) throws IWDaoException;", "public void removeTotalItem(String item) {\n\n String toDelete = KEY_EXERCISE + \"=?\";\n String[] deleteArguments = new String[] {item};\n db.delete(DATABASE_TABLE_TOTAL, toDelete, deleteArguments);\n }", "public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}", "@Override\r\n\t\tpublic boolean deleteItem() {\n\t\t\treturn false;\r\n\t\t}", "public Item removeItem(int itemIndex) {\n\t\tItem itemRemoved = purchaseList.removeItem(itemIndex);\n\t\tif (itemRemoved instanceof PLUCodedItem || itemRemoved instanceof BarcodedItem) {\n\t\t\tProduct realProduct = this.getProductFromItem(itemRemoved);\n\t\t\tint inventory = this.productDatabase.getInventoryByProduct(realProduct);\n\t\t\tthis.productDatabase.setInventoryByProduct(realProduct, inventory + 1);\n\t\t}\n\t\treturn itemRemoved;\n\t}", "@Override\r\n\tpublic int deleteProduct(Product product) {\n\t\treturn 0;\r\n\t}", "public synchronized void deleteItem(Product product){\n carrito.set(product.getId(), null);\n }", "public void removeItem(int position) {\r\n productList.remove(position);\r\n notifyItemRemoved(position);\r\n }", "private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "public SimpleProduct3WithSpecialPriceDetailPage removeProductGalleryFromSimpleProduct3tWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct3WithSpecialPriceDetailPage();\n }", "@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }", "public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }", "public void removeItem(Item e) {\n\t\tif (items.contains(e))\n\t\t\titems.remove(e);\n\t}", "public void removeJpmProductSaleNew(final Long uniNo);", "private void removefromstore()\r\n\t{\r\n\t\tFile inputFile = new File(\"InventoryItems.csv\");\r\n\t\tFile tempFile = new File(\"temp.csv\");\r\n\t\tString cvsSplitBy = \",\";\r\n\t\t\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(inputFile));\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(tempFile));\r\n\t\t\tString currentLine;\r\n\t\t\t\r\n\t\t\twhile((currentLine = reader.readLine()) != null) {\r\n\t\t\t // trim newline when comparing with lineToRemove\r\n\t\t\t\tString[] tempItem = currentLine.split(cvsSplitBy);\r\n\t\t\t if(tempItem[0].equals(this.id)) \r\n\t\t\t \tcontinue;\r\n\t\t\t writer.write(currentLine + System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\t\t\twriter.close(); \r\n\t\t\treader.close(); \r\n\t\t\t\r\n\t\t\t//clear the file\r\n\t\t\tPrintWriter pwriter = new PrintWriter(inputFile);\r\n\t\t\tpwriter.print(\"\");\r\n\t\t\tpwriter.close();\r\n\t\t\t\r\n\t\t\t//copy back the data\r\n\t\t\treader = new BufferedReader(new FileReader(tempFile));\r\n\t\t writer = new BufferedWriter(new FileWriter(inputFile));\r\n\t\t\t\r\n\t\t\twhile((currentLine = reader.readLine()) != null) {\r\n\t\t\t writer.write(currentLine + System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\t\t\twriter.close(); \r\n\t\t\treader.close(); \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\r\n\r\n\t\t\r\n\t}", "public void removeProduct(int position) {\n\n\t\tfilteredList.remove(position);\n\t\tcommodityDetails.remove(position);\n\t\tCollections.sort(filteredList, convertStringToDateAndCompare);\n\t\tnotifyDataSetChanged();\n\t}", "public void removeElement(String selectedItem, final int position) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Remove \" + selectedItem + \"?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n masterItems.remove(position);\n Collections.sort(masterItems);\n storeArrayVal(masterItems, getApplicationContext());\n lv.setAdapter(adapter);\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "<T> void removeInstallItem(CallbackItem<T> callbackItem);", "public void removeByProductType(String productType);", "public static void removeItem(String itemName)\n {\n inventory.remove(getItem(itemName));\n }", "private void removeProduct(int id)\n {\n manager.removeProduct(id);\n }", "public void deleteItem() {\n\t\tIntent intent = new Intent(this, AlarmActivity.class);\n\t\tint alarmId = itemsAdapter.getSelectedItem().getId();\n\t\tLog.d(TAG, \"Cancelling Alarm with ID \" + alarmId); \n\t\tPendingIntent sender = PendingIntent.getBroadcast(this, alarmId, intent, 0);\n\t\tAlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\talarmManager.cancel(sender);\n\t\t\n\t\titemsAdapter.remove(itemsAdapter.getSelectedPosition());\n\t\titemsAdapter.unsetSelectedPosition();\n\t\tgetActionBar().hide();\n\t}", "void removeMenuItem(int itemId, String itemName);", "public void unlinkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.unlinkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] unassigned from supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be unassigned\");\n }\n if (!yesOrNo(\"unassign more products from supplier: [\"+ supplierID + \"]\")) {\n break;\n }\n } while (true);\n }", "void delete( String officeCode );", "public ConfigProductWithSpecialPriceDetailPage removeProductGalleryFromConfigProductWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithSpecialPriceDetailPage();\n }", "public void removeOrderItem(int prodID)\r\n\t{\r\n\t\t//create temporary variables\r\n\t\tOrderItem temp;\r\n\t\tint test = 0;\r\n\r\n\t\t//iterate through list and compare product ID of each item against the \r\n\t\t//parameter, then remove any items that match\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++) \r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttest = temp.getProductID();\r\n\t\t\tif (test == prodID) \r\n\t\t\t{\r\n\t\t\t\torderItemList.remove(x);\r\n\t\t\t} //end if\r\n\t\t} //end for\t\t\r\n\t}", "public void deleteItem(String nomItem) {\r\n \t\titems.removeItem(nomItem);\r\n \t}", "@Test\n public void testRemoveItem() throws Exception {\n \n System.out.println(\"RemoveItem\");\n \n /*ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n Product p4 = new Product(\"Monitor 4K\", 550.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n fail(\"No existe\");\n \n }*/\n \n /*---------------------------------------------*/\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n assertTrue(instance.isEmpty());\n \n }\n \n }", "public void removeItem() {\n if (this.size() == 0) {\n System.out.println(\"Empty List.\");\n return;\n }\n this.print();\n String code;\n System.out.println(\"Enter the code of removed item: \");\n code = sc.nextLine().toUpperCase();\n int pos = find(code);\n if (pos < 0) {\n System.out.println(\"This code does not exist.\");\n } else {\n this.remove(pos);\n System.out.println(\"The item \" + code + \" has been removed.\");\n\n }\n }", "public void deleteProduct(Product product_1) {\n\r\n\t}", "public void buttonRemoveItem(ActionEvent actionEvent) {\n }", "void removeStock(int i);", "public Object removeItem (String key);", "@Override\n\tpublic void itemRemove(final HomeItem item)\n\t{\n\t\tfileService().removeExcept(item.getReference(), null);\n\n\t\tsqlService().transact(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\titemRemoveTx(item);\n\t\t\t}\n\t\t}, \"remove\");\n\t}", "private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }", "public void remove() {\n\n }", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "public SimpleProduct4WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct4tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct4WithOriginalPriceDetailPage();\n }", "@Override\n\tpublic void deleteItem(Object toDelete) {}", "public SimpleProduct1WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct1tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct1WithOriginalPriceDetailPage();\n }", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "public void clickRemoveButton_CNCItem(int noitemremove) {\n for (int i = 1; i <= noitemremove; i++) {\n WebElement clickremove = getDriver().findElement(By.xpath(\"//*[@id='productGroup_1']/li[\" + i + \"]//a[text()='Remove']\"));\n String nameofproduct = getDriver().findElement(By.xpath(\"//*[@id='productGroup_1']/li[\" + i + \"]//*[@class='product_name']/span\")).getText();\n clickremove.click();\n System.out.println(\"=== Name of the product Removed: \" + nameofproduct);\n listOfDeletedItemNameShoppingCart.add(nameofproduct);\n }\n }", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "public void removeFromInventory(String ID) {\n\t\ttry {\n\t\t\t// query to delete an item from its respective table\n\t\t\tString query = \"DELETE FROM \" + LocateRequest.getFurniture() + \" WHERE ID = ?\";\n\t\t\tPreparedStatement myStmtDeleteItem = Connect.getDbConnect().prepareStatement(query); // create statement\n\n\t\t\tmyStmtDeleteItem.setString(1, ID); // sets String, ID, to the question mark\n\t\t\tmyStmtDeleteItem.executeUpdate(); // execute statement\n\t\t\tmyStmtDeleteItem.close(); // close statement\n\t\t} catch (SQLException e) { // SQL exception catch case\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void removePoItems(int pid) throws Exception {\n String query = \"SELECT * FROM PO WHERE id=?\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query);\n PreparedStatement p2 = con.prepareStatement(\"DELETE FROM POItem WHERE id = ?\")) {\n p.setInt(1, pid);\n ResultSet r = p.executeQuery();\n if (!r.next()) throw new Exception(\"Purchase Order doesn't exist.\");\n p2.setInt(1, pid);\n p2.executeUpdate();\n }\n }" ]
[ "0.7267626", "0.726567", "0.70453227", "0.6905147", "0.69007236", "0.68396217", "0.68166274", "0.68099445", "0.67260903", "0.6703708", "0.66864616", "0.6681054", "0.66488165", "0.6598632", "0.6531339", "0.64994866", "0.6477912", "0.6474368", "0.6450045", "0.64207184", "0.6409868", "0.63925326", "0.6376844", "0.63658357", "0.6352264", "0.6345899", "0.63227344", "0.6317971", "0.631128", "0.63100576", "0.6308896", "0.6302589", "0.6280714", "0.6270611", "0.62663555", "0.6255249", "0.6253205", "0.6233374", "0.6228565", "0.62261975", "0.62252", "0.62211096", "0.6217063", "0.6214396", "0.62138116", "0.6206404", "0.6204331", "0.620278", "0.61889935", "0.6178354", "0.6176496", "0.61516136", "0.6148445", "0.6148038", "0.6142231", "0.614044", "0.61378187", "0.61367375", "0.6128519", "0.61263204", "0.60956764", "0.6094678", "0.60869306", "0.6086723", "0.608503", "0.60817146", "0.60777646", "0.6077339", "0.6076975", "0.60760397", "0.6076009", "0.6075412", "0.607089", "0.6059265", "0.60589814", "0.6058348", "0.60565865", "0.60554004", "0.6055028", "0.6046474", "0.6043781", "0.603921", "0.60351235", "0.60351217", "0.60321915", "0.6030349", "0.60272855", "0.6021923", "0.6021241", "0.6020772", "0.60193324", "0.60120875", "0.6009007", "0.6006261", "0.60037345", "0.6003138", "0.5999421", "0.5998393", "0.5998188", "0.5995735" ]
0.62182224
42
It is used to give all product details.
@Override public List<Product> getAllProducts(String filePath) { return productDetailsRepository.getAllProducts(filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }", "public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }", "public List<Products> getProductsDetails() {\n\t\treturn productsRepo.findAll();\n\t}", "private void getAllProducts() {\n }", "@GetMapping(\"/getproduct\")\n\t\tpublic List<Product> getAllProduct() {\n\t\t\tlogger.info(\"products displayed\");\n\t\t\treturn productService.getAllProduct();\n\t\t}", "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic ProductResponseModel getAllProduct() {\n\r\n\t\tProductResponseModel productResponseModel = new ProductResponseModel();\r\n\r\n\t\tMap<String, Object> map = productRepositoryImpl.getAllProduct();\r\n\r\n\t\t// productResponseModel.setCount((long) map.get(\"count\"));\r\n\t\tList<Product> product = (List<Product>) map.get(\"data\");\r\n\t\tList<ProductModel> productList = product.stream().map(p -> new ProductModel(p.getId(), p.getProName(),\r\n\t\t\t\tp.getProPrice(), p.getProQuantity(), p.getProDescription(), p.getProSize()))\r\n\t\t\t\t.collect(Collectors.toList());\r\n\r\n\t\tproductResponseModel.setData(productList);\r\n\r\n\t\treturn productResponseModel;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + categoryId + \", supplierId=\" + supplierId + \", brandId=\" + brandId + \", typeId=\"\r\n\t\t\t\t+ typeId + \", purchases=\" + purchases + \", views=\" + views + \"]\";\r\n\t}", "@Override\n\tpublic List<Products> getAllProduct() {\n\t\treturn dao.getAllProduct();\n\t}", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "@Override\n\tpublic List<Product> getAllProduct() {\n\t\treturn productRepository.findAll();\n\t}", "public String productList(ProductDetails p);", "@Override\r\n\tpublic List<Product> showAll() throws Exception {\n\t\treturn this.dao.showAll();\r\n\t}", "Product getProductDetails(int idproduct) throws DataBaseException;", "public String productListForDetail() {\n return SUCCESS;\n }", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void printData () {\n System.out.println (products.toString ());\n }", "@GetMapping(\"/view-all\")\r\n\tpublic List<ProductDetails> viewAllProducts() {\r\n\r\n\t\treturn productUtil.toProductDetailsList(productService.viewAllProducts());\r\n\t}", "public String getProduct() {\r\n return this.product;\r\n }", "public String getProduct() {\n return this.product;\n }", "@RequestMapping(value = \"/products/{productId}\", method = RequestMethod.GET)\n\t public ResponseEntity<ProductData> getProductDetails(@PathVariable int productId){\t\t\t\t\t\n\t ProductData product = productService.getProduct(productId);\n\t return new ResponseEntity<>(product, HttpStatus.OK);\n\t }", "@GetMapping(\"/sysadm/product\")\n public String showAllProduct() {\n return \"admin/sysadm/productList\";\n }", "public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}", "public String getProduct()\n {\n return product;\n }", "public String getProduct() {\n return product;\n }", "public String getProduct() {\n return product;\n }", "Product getPProducts();", "@Override\r\n\tpublic List<Mobile> showAllProduct() {\n\t\tQuery query=entitymanager.createQuery(\"FROM Mobile\");\r\n\t\tList<Mobile> myProd=query.getResultList();\r\n\t\treturn myProd;\r\n\t}", "@Override\n\tpublic ProductVO detailProduct(int product_id) {\n\t\treturn null;\n\t}", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "public ArrayList<ShowProductLIstBean> showProductlist() {\n\n\t\tArrayList<ShowProductLIstBean> productdetails = new ArrayList<ShowProductLIstBean>();\n\n\t\tString driverClass = \"com.mysql.jdbc.Driver\";\n\t\tString dbUrl = \"jdbc:mysql://localhost:3306/pmsdb\";\n\t\tString dbUser = \"root\";\n\t\tString dbPswd = \"root\";\n\n\t\tConnection con = null;\n\t\tResultSet rs = null;\n\t\tPreparedStatement pstmt = null;\n\n\t\ttry {\n\t\t\tClass.forName(driverClass);\n\t\t\tcon = DriverManager.getConnection(dbUrl, dbUser, dbPswd);\n\n\t\t\tpstmt = con.prepareStatement(\"SELECT * FROM `pms_prd_details`\");\n\t\t\trs = pstmt.executeQuery();\n\n\t\t\tShowProductLIstBean spd = null;\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tspd = new ShowProductLIstBean();\n\t\t\t\tspd.setProductId(rs.getInt(\"producid\"));\n\t\t\t\tspd.setProductName(rs.getString(\"productname\"));\n\t\t\t\tspd.setQuantity(rs.getInt(\"quantity\"));\n\t\t\t\tspd.setPrice(rs.getFloat(\"price\"));\n\t\t\t\tspd.setVname(rs.getString(\"vendorname\"));\n\n\t\t\t\tproductdetails.add(spd);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\n\t\t\tif (con != null) {\n\t\t\t\ttry {\n\t\t\t\t\tcon.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pstmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tpstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (rs != null) {\n\t\t\t\ttry {\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn productdetails;\n\t}", "public List<Product> getAll() {\n\t\treturn productRepository.findAll();\n\n\t}", "@Override\n public void loadDetailProductData() {\n mDetailPresenter.loadDetailProductData();\n }", "@SuppressWarnings(\"unchecked\")\n private void fetchProductInformation() {\n // Query the App Store for product information if the user is is allowed\n // to make purchases.\n // Display an alert, otherwise.\n if (SKPaymentQueue.canMakePayments()) {\n // Load the product identifiers fron ProductIds.plist\n String filePath = NSBundle.getMainBundle().findResourcePath(\"ProductIds\", \"plist\");\n NSArray<NSString> productIds = (NSArray<NSString>) NSArray.read(new File(filePath));\n\n StoreManager.getInstance().fetchProductInformationForIds(productIds.asStringList());\n } else {\n // Warn the user that they are not allowed to make purchases.\n alert(\"Warning\", \"Purchases are disabled on this device.\");\n }\n }", "@Override\n public Iterable<Product> findAllProduct() {\n return productRepository.findAll();\n }", "public String toString() {\r\n return \"Product: \" + this.product + \", Amount: \" + this.amount;\r\n }", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public ArrayList<Product> viewAllProduct() throws ProductException{\r\n\t\t\tArrayList<Product> products=new ArrayList<Product>();\r\n\t\t\tif(ProductRepository.productsList.isEmpty()) {\r\n\t\t\t\tthrow new ProductException(\"there are no products in the store\");\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\r\n\t\t\tproducts.addAll(pDoa.viewProductsDoa());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn products;\r\n\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}", "@Override\n\tpublic Product getProduct() {\n\t\treturn product;\n\t}", "@RequestMapping(value = Constants.GET_PRODUCT_BY_ID, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> getProductDetails(@PathVariable (Constants.ID) Integer id) {\n try {\n ResponseWrapper result = productService.getProductDetails(id);\n ObjectMapper mapper = new ObjectMapper().configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);\n mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);\n return new ResponseEntity<>(mapper.writeValueAsString(result), HttpStatus.OK);\n }\n catch (Exception e) {\n logger.error(Constants.EXCEPTION + e);\n return ExceptionHandler.handleException();\n }\n }", "@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}", "@Override\n\tpublic Product getProduct() {\n\t\tSystem.out.println(\"B生产成功\");\n\t\treturn product;\n\t}", "java.lang.String getProductDescription();", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public String getProductName() {\n return productName;\n }", "public List<Product> getAll() {\n List<Product> list = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + PRODUCT_TABLE;\n SQLiteDatabase database = this.getReadableDatabase();\n try (Cursor cursor = database.rawQuery(selectQuery, null)) {\n if (cursor.moveToFirst()) {\n do {\n int id = cursor.getInt(0);\n String name = cursor.getString(1);\n String url = cursor.getString(2);\n double current = cursor.getDouble(3);\n double change = cursor.getDouble(4);\n String date = cursor.getString(5);\n double initial = cursor.getDouble(6);\n Product item = new Product(name, url, current, change, date, initial, id);\n list.add(item);\n }\n while (cursor.moveToNext());\n }\n }\n return list;\n }", "public String getProductName() {\r\n return productName;\r\n }", "@Test\n public void getProductDetailTest() throws ApiException {\n String productId = null;\n ResponseBankingProduct response = api.getProductDetail(productId);\n\n // TODO: test validations\n }", "@Override\n\tpublic List<ProductDTO> viewAllProducts() throws ProductException {\n\t\tCollection<Product> products = ProductStore.map.values();\n\t\tList<ProductDTO> list = new ArrayList();\n\n\t\tfor (Product product : products) {\n\t\t\tProductDTO product1 = ProductUtil.convertToProductDto(product);\n\t\t\tlist.add(product1);\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }", "ProductProperties productProperties();", "public DisplayProductDetails getDisplayProductDetails(final Product product) {\n final DisplayProductDetails productDetails = new DisplayProductDetails();\n if (product != null) {\n // TODO Get product rating details from DB\n \tList<BreadCrumb> breadcrumbList = new LinkedList<BreadCrumb>();\n \t\n \tBreadCrumb breadcrumb1 = new BreadCrumb();\n \tbreadcrumb1.setDisplayText(product.getCategory().getParentCategory().getCategoryName());\n \tbreadcrumb1.setLinkUrl(\"category/\"+product.getCategory().getParentCategory().getCategoryPartNumber());\n \t\n \tBreadCrumb breadcrumb2 = new BreadCrumb();\n \tbreadcrumb2.setDisplayText(product.getCategory().getCategoryName());\n \tbreadcrumb2.setLinkUrl(\"category/\"+product.getCategory().getCategoryPartNumber());\n \t\n \tbreadcrumbList.add(breadcrumb1);\n \tbreadcrumbList.add(breadcrumb2);\n \t\n \tproductDetails.setBreadcrumb(breadcrumbList);\n \tproduct.getCategory().getParentCategory().getCategoryId();\n\n productDetails.setAverageProductRating(new BigDecimal(3));\n productDetails.setProductName(product.getProductName());\n productDetails.setProductId(product.getProductId());\n productDetails.setProductPartNumber(product.getProductPartNumber());\n // If product doesn't have a description use its category description.\n final String productDesc = (product.getProductDescription() != null && !product.getProductDescription().isEmpty()) ? product.getProductDescription()\n : product.getCategory().getDescription();\n productDetails.setProductDescription(productDesc);\n\n // Set the product image and image gallery details\n productDetails.setProductImageGallery(getDisplayProductGallery(product.getProductId()));\n\n // End of setting the product image gallery options .\n\n BigDecimal productPrice = null;\n String currencyCode = null;\n if (product.getProductPrice() != null) {\n productPrice = product.getProductPrice().getPrice();\n currencyCode = product.getProductPrice().getCurrency().getCurrencyCode();\n }\n productDetails.setProductPrice(productPrice);\n productDetails.setProductCurrency(currencyCode);\n // Set the product price options in other currencies .\n final List<ProductPriceOptions> priceOptionsList = getPriceOptionForProduct(product);\n productDetails.setProductPriceOptions(priceOptionsList);\n // End of setting the product price options in other currencies\n\n // Get the product availability info\n final String availability = product.isEnabled() ? ProductAvailability.INSTOCK.getStatusDescription()\n : ProductAvailability.OUTOFSTOCK.getStatusDescription();\n // End of setting the product availability info\n productDetails.setProductAvailablility(availability);\n\n // Get the product specifications\n productDetails.setProductSpecification(getDisplayProductSpecification(product.getProductSpecification()));\n\n }\n return productDetails;\n }", "@Override\n\tpublic void productDetails(String productId) {\n\t\t//creating local variable\n\t\tint eq = 0;\n\t\tint ct = 0;\n\t\tint dif = 0;\n\t\t//creating the display to print out the product details of the tv sets class\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" Type ProductId Product Name Price Display Size \" );\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" \");\n\t\t//Create the for loop to verify all the products in the arrayLIst\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\t//if the productId inserted by the user is equal an any productId from this class tv sets\n\t\t\tif(Driver.products.get(i).getProductId().equals(productId)) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\teq += 1;\n\t\t\t//if the productId inserted by the user is not equal an any productId, but similar to the name from this class tv sets\n\t\t\t}else if (Driver.products.get(i).getProductId().contains(productId) && eq == 0) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\tct += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\t//if the productId inserted by the user was not found in the stoque\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\tif (eq == 0 && ct == 0 && dif == 0 ){\n\t\t\t\tSystem.out.println(\" The search \" + productId + \" was not found in our Stoque. Try changing the productId name. \");\n\t\t\t\tdif += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" \");\n\n\t\tSystem.out.println();\n\t}", "public void printAllProducts()\n {\n printHeading();\n \n for(Product product : stock)\n {\n System.out.println(product);\n }\n\n System.out.println();\n }", "public List<Product> getAllProducts() {\n List<Product> listProduct= productBean.getAllProducts();\n return listProduct;\n }", "@Override\r\n\tpublic List<Product> getAllProducts() {\n\t\treturn dao.getAllProducts();\r\n\t}", "public Product getProduct() {\n\t\treturn product;\n\t}", "private List<Product> extractProducts() {\r\n\t\t//load products from hidden fields\r\n\t\tif (this.getListProduct() != null){\r\n\t\t\tfor(String p : this.getListProduct()){\r\n\t\t\t\tProduct product = new Product();\r\n\t\t\t\tproduct.setId(Long.valueOf(p));\r\n\t\t\t\tthis.products.add(product);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.products;\r\n\t}", "public java.lang.String getProduct() {\n return product;\n }", "public String product() {\n return this.product;\n }", "public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }", "public ViewProductInfo() {\n initComponents();\n }", "public String getProductid() {\n return productid;\n }", "@GetMapping(\"/allProduct\")\n\tpublic ResponseEntity<Response> getAllProduct(){\n\t\treturn ResponseEntity.status(HttpStatus.OK)\n\t\t\t\t.body(new Response(productService.getProduct(), new Date()));\n\t}", "public GetProductoSrv() {\n\t\tsuper();\n\t\tinitializer();\n\t}", "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "public void getProduct() {\n\t\tUtil.debug(\"getProduct\",this);\n\t\ttry {\n\t\t\tinputStream.skip(inputStream.available());\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\toutputStream.write(new byte[] { 'x', 13 });\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\n\t\t// wait for reply\n\t\tUtil.delay(RESPONSE_DELAY);\n\t}", "public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}", "DescribeProductResult describeProduct(DescribeProductRequest describeProductRequest);", "@Override\n\t\tpublic List<ProductInfo> getProducts() {\n\t\t\treturn TargetProducts;\n\t\t}", "@Override\n\tpublic List<ProductInfo> getProducts() {\n\t\treturn shoppercnetproducts;\n\t}", "public void getProducts(String eId){\n // invoke getProductsById from ProductDatabse and assign products, productIds and productNames\n products = myDb.getProductsById(eId);\n productIds = new ArrayList<Integer>();\n ArrayList<String> productNames = new ArrayList<String>();\n for(Product product: products){\n productIds.add(Integer.parseInt(product.getProductId()));\n productNames.add(product.getProductName());\n }\n //if products exists in database then its displayed as a list else no products message is displayed\n if(products.size() > 0){\n productsadded.setVisibility(View.VISIBLE);\n noproducts.setVisibility(View.GONE);\n }else{\n productsadded.setVisibility(View.GONE);\n noproducts.setVisibility(View.VISIBLE);\n }\n otherProductAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_expandable_list_item_1, productNames);\n otherProductsList.setAdapter(otherProductAdapter);\n if(productNames.size() > 0){\n //invoked on click of the product\n otherProductsList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(OtherEventsProductsActivity.this, PurchaseProductActivity.class);\n intent.putExtra(\"eventId\", eventId);\n intent.putExtra(\"productId\", \"\"+productIds.get(position));\n intent.putExtra(\"status\", \"view\");\n startActivity(intent);\n }\n });\n }\n }", "@GetMapping(VERSION + \"/product/{productId}\")\n public ResponseEntity<?> retrieveProductDetails(@PathVariable(\"productId\") String productId) {\n ProductDto productDto = productCompositeService.fetchProductById(productId);\n return ResponseEntity.ok().body(productDto);\n }", "@Override\n\tpublic List<Product> getAll() {\n\t\tQuery query = session.createQuery(\"from Product \");\n\t\t\n\t\treturn query.getResultList();\n\t}", "public void ListAllProduct() {\r\n\t\t\tSystem.out.println(\" *************from inside ListAllProduct()********************** \");\r\n\t\t\tTransaction tx = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tsessionObj = HibernateUtil.buildSessionFactory().openSession();\r\n\t\t\t\ttx = sessionObj.beginTransaction();\r\n\t\t\t\t// retrive logic\r\n\t\t\t\tList products = sessionObj.createQuery(\"From Product\").list(); // select * from employee: \"Employee refer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Employee class\r\n\t\t\t\tIterator iterator = products.iterator();\r\n\t\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\t\tProduct product1 = (Product) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"Product Category \" + product1.getProductCategory());\r\n\t\t\t\t\tSystem.out.println(\"Product Description\" + product1.getProductDescription());\r\n\t\t\t\t\tSystem.out.println(\"Product Manufacturer \" + product1.getProductManufacturer());\r\n\t\t\t\t\tSystem.out.println(\"Product Name \"+product1.getProductName());\r\n\t\t\t\t\tSystem.out.println(\"Product Price \"+product1.getProductPrice());\r\n\t\t\t\t\tSystem.out.println(\"Product Unit \"+product1.getProductUnit());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.commit();// explictiy call the commit esure that auto commite should be false\r\n\t\t\t} catch (\r\n\r\n\t\t\tHibernateException e) {\r\n\t\t\t\tif (tx != null)\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tsessionObj.close();\r\n\t\t\t}\r\n\t\t}", "private void displayProductDetails() {\n //loading picture offline\n Picasso.get().load(pImage).networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.warning).into(productImage, new Callback() {\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError(Exception e) {\n Picasso.get().load(pImage)\n .placeholder(R.drawable.warning).into(productImage);\n }\n });\n productName.setText(pName);\n productPrize.setText(pPrice);\n\n try{\n if (pCategory.equalsIgnoreCase(\"Bulk Purchase\")){\n quantity.setText(pLimitedQty);\n }\n } catch (Exception ex){\n Log.i(\"error\", ex.getMessage());\n catchErrors.setErrors(ex.getMessage(), dateAndTime.getDate(), dateAndTime.getTime(),\n \"OrderProductActivity\", \"displayProductDetails\");\n }\n }", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@Override\r\n\tpublic List<Product> getallProducts() {\n\t\treturn dao.getallProducts();\r\n\t}", "@GET\n\t@Path(\"{id}\") // http://localhost:8080/myretail-services/products/id/16696652\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic String getProductInfo(@PathParam(\"id\") String id) throws JSONException {\n\t\t\n\t\tWebTarget target = ClientBuilder.newClient().target(\"http://redsky.target.com/v2/pdp/tcin/\" + id\n\t\t\t\t+ \"?excludes=taxonomy,price,promotion,bulk_ship,rating_and_review_reviews,rating_and_review_statistics,question_answer_statistics/\");\n\t\tResponse response = target.request().get();\n\t\tString pName = response.readEntity(String.class).toString();\n\n\t\tint b = pName.indexOf(\"general_description\") + BEGOFFSET;\n\t\tint e = pName.indexOf(\"}\", b) - 1;\n\n\t\tJSONObject json = new JSONObject();\n\n\t\tjson.put(\"name\", pName.substring(b, e));\n\t\tjson.put(\"id\", Integer.parseInt(id));\n\t\tjson.put(\"current_price\", new JSONObject(productPrice.getProductPrice(id)));\n\t\treturn json.toString();\n\t}", "public ProductDetail getProductDetail(JSONObject jsonObject) {\n if (jsonObject != null) {\n try {\n boolean publishStatus = false, onSaleStatus = false, inStockStatus = false, isReviewAllow = false;\n int id = 0, categoryId = 0, totalSale = 0, totalRating = 0;\n float averageRating = 0, regularPrice = 0, sellPrice = 0;\n String name = null, shortDescription = null, linkAddress = null, categoryName = null, priceHtml = null, type = null, createdDateTime = null,\n modifiedDateTime = null, description = null;\n\n ArrayList<String> imageList = new ArrayList<>();\n ArrayList<Integer> relatedProdIds = new ArrayList<>();\n ArrayList<Category> relatedCategoryList = new ArrayList<>();\n ArrayList<ProductAttribute> attributeList = new ArrayList<>();\n\n if (jsonObject.has(ParserKey.KEY_ID)) {\n id = jsonObject.getInt(ParserKey.KEY_ID);\n }\n if (jsonObject.has(ParserKey.KEY_NAME)) {\n name = jsonObject.getString(ParserKey.KEY_NAME);\n }\n if (jsonObject.has(ParserKey.KEY_SHORT_DESC)) {\n shortDescription = jsonObject.getString(ParserKey.KEY_SHORT_DESC);\n }\n if (jsonObject.has(ParserKey.KEY_IMAGES)) {\n imageList.addAll(getImageList(jsonObject.getJSONArray(ParserKey.KEY_IMAGES)));\n }\n if (jsonObject.has(ParserKey.KEY_LINK_ADDRESS)) {\n linkAddress = jsonObject.getString(ParserKey.KEY_LINK_ADDRESS);\n }\n if (jsonObject.has(ParserKey.KEY_CATEGORIES)) {\n categoryId = getCategoryId(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES));\n categoryName = getCategoryName(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES));\n }\n if (jsonObject.has(ParserKey.KEY_RELATED_IDS)) {\n relatedProdIds.addAll(getProductIds(jsonObject.getJSONArray(ParserKey.KEY_RELATED_IDS)));\n }\n if (jsonObject.has(ParserKey.KEY_CATEGORIES)) {\n relatedCategoryList.addAll(getCategories(jsonObject.getJSONArray(ParserKey.KEY_CATEGORIES)));\n }\n if (jsonObject.has(ParserKey.KEY_REGULAR_PRICE)) {\n if (!jsonObject.getString(ParserKey.KEY_REGULAR_PRICE).isEmpty()) {\n regularPrice = Float.parseFloat(jsonObject.getString(ParserKey.KEY_REGULAR_PRICE));\n }\n }\n if (jsonObject.has(ParserKey.KEY_SELL_PRICE)) {\n if (!jsonObject.getString(ParserKey.KEY_SELL_PRICE).isEmpty()) {\n sellPrice = Float.parseFloat(jsonObject.getString(ParserKey.KEY_SELL_PRICE));\n }\n }\n if (jsonObject.has(ParserKey.KEY_TOTAL_SALE)) {\n totalSale = jsonObject.getInt(ParserKey.KEY_TOTAL_SALE);\n }\n if (jsonObject.has(ParserKey.KEY_PRICE_HTML)) {\n priceHtml = jsonObject.getString(ParserKey.KEY_PRICE_HTML);\n }\n if (jsonObject.has(ParserKey.KEY_TYPE)) {\n type = jsonObject.getString(ParserKey.KEY_TYPE);\n }\n if (jsonObject.has(ParserKey.KEY_CREATED_DATE)) {\n createdDateTime = jsonObject.getString(ParserKey.KEY_CREATED_DATE);\n }\n if (jsonObject.has(ParserKey.KEY_MODIFIED_DATE)) {\n modifiedDateTime = jsonObject.getString(ParserKey.KEY_MODIFIED_DATE);\n }\n if (jsonObject.has(ParserKey.KEY_DESCRIPTION)) {\n description = jsonObject.getString(ParserKey.KEY_DESCRIPTION);\n }\n if (jsonObject.has(ParserKey.KEY_TOTAL_RATING)) {\n totalRating = jsonObject.getInt(ParserKey.KEY_TOTAL_RATING);\n }\n if (jsonObject.has(ParserKey.KEY_AVERAGE_RATING)) {\n if (!jsonObject.getString(ParserKey.KEY_AVERAGE_RATING).isEmpty()) {\n averageRating = Float.parseFloat(jsonObject.getString(ParserKey.KEY_AVERAGE_RATING));\n }\n }\n if (jsonObject.has(ParserKey.KEY_PUBLISH_STATUS)) {\n publishStatus = jsonObject.getBoolean(ParserKey.KEY_PUBLISH_STATUS);\n }\n if (jsonObject.has(ParserKey.KEY_ON_SALE)) {\n onSaleStatus = jsonObject.getBoolean(ParserKey.KEY_ON_SALE);\n }\n if (jsonObject.has(ParserKey.KEY_IN_STOCK)) {\n inStockStatus = jsonObject.getBoolean(ParserKey.KEY_IN_STOCK);\n }\n if (jsonObject.has(ParserKey.KEY_REVIEW_ALLOW)) {\n isReviewAllow = jsonObject.getBoolean(ParserKey.KEY_REVIEW_ALLOW);\n }\n if (jsonObject.has(ParserKey.KEY_ATTRIBUTE)) {\n attributeList.addAll(getAttributes(jsonObject.getJSONArray(ParserKey.KEY_ATTRIBUTE)));\n }\n\n return new ProductDetail(id, name, shortDescription, categoryId, categoryName, linkAddress, imageList, relatedProdIds, relatedCategoryList,\n regularPrice, sellPrice, totalSale, priceHtml, type, createdDateTime, modifiedDateTime, description, totalRating,\n averageRating, publishStatus, onSaleStatus, inStockStatus, isReviewAllow, attributeList);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "List<Product> retrieveProducts();", "@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.GET)\n public String viewProductAdd() {\n return \"product_detail_new\";\n }", "public String getProduct_id() {\n return product_id;\n }", "public String getProduct_id() {\n return product_id;\n }", "@CrossOrigin()\r\n @GetMapping(\"/products/all\")\r\n List<ProductEntity> getAllProducts() {\r\n // TODO add error if there are not enough products\r\n return productRepository.findAll();\r\n }", "void viewProductById(long id);", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "List<Product> getAllProducts() throws DataBaseException;", "@Override\r\n public List<Product> findAll() {\r\n return productRepository.findAll();\r\n }", "public Product() { \n initComponents();\n table();\n \n }", "public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }", "public List<Product> returnProducts() throws FlooringMasteryDaoException {\n\n List<Product> products = dao.loadProductInfo();\n return products;\n\n }", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "public T getProduct() {\n return this.product;\n }", "public String getProductID() {\r\n return productID;\r\n }", "protected String getProductId() {\n return productId;\n }" ]
[ "0.78257877", "0.7423373", "0.7375943", "0.730914", "0.71462154", "0.7038263", "0.7011479", "0.698709", "0.69805986", "0.69590896", "0.6946037", "0.6946037", "0.6914066", "0.68996185", "0.68978673", "0.6846709", "0.6829586", "0.6828908", "0.68185127", "0.678664", "0.67612666", "0.674667", "0.6744475", "0.6720933", "0.6718268", "0.6695204", "0.6695204", "0.66913795", "0.66858095", "0.6679864", "0.66715115", "0.6648796", "0.66404235", "0.66232014", "0.6616449", "0.6597879", "0.6588051", "0.65856194", "0.65856194", "0.65856194", "0.65845746", "0.65802747", "0.6539056", "0.6535823", "0.65278804", "0.6524802", "0.6518958", "0.65158695", "0.65158695", "0.65158695", "0.6513463", "0.6505617", "0.6501328", "0.6501308", "0.6498233", "0.6497564", "0.6465368", "0.64590144", "0.64290905", "0.6424092", "0.6419472", "0.6402913", "0.639882", "0.63977194", "0.63917845", "0.6391423", "0.6390005", "0.63781", "0.6376617", "0.63711834", "0.6368072", "0.6366878", "0.63354665", "0.63352704", "0.633319", "0.633261", "0.6328627", "0.63198614", "0.63144475", "0.630803", "0.6302503", "0.6301378", "0.63010377", "0.62988997", "0.6297981", "0.6296788", "0.6296413", "0.6295798", "0.6295798", "0.6293364", "0.62920487", "0.6289009", "0.6285216", "0.6283963", "0.6280043", "0.6279865", "0.6272144", "0.6271586", "0.6269756", "0.6268016", "0.62674534" ]
0.0
-1
It is used to get the product details by Id.
@Override public Product getProductById(String productId, String filePath) { return productDetailsRepository.getProductById(productId, filePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = Constants.GET_PRODUCT_BY_ID, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> getProductDetails(@PathVariable (Constants.ID) Integer id) {\n try {\n ResponseWrapper result = productService.getProductDetails(id);\n ObjectMapper mapper = new ObjectMapper().configure(SerializationFeature.WRITE_NULL_MAP_VALUES, false);\n mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);\n return new ResponseEntity<>(mapper.writeValueAsString(result), HttpStatus.OK);\n }\n catch (Exception e) {\n logger.error(Constants.EXCEPTION + e);\n return ExceptionHandler.handleException();\n }\n }", "Product getProductDetails(int idproduct) throws DataBaseException;", "@RequestMapping(value = \"/products/{productId}\", method = RequestMethod.GET)\n\t public ResponseEntity<ProductData> getProductDetails(@PathVariable int productId){\t\t\t\t\t\n\t ProductData product = productService.getProduct(productId);\n\t return new ResponseEntity<>(product, HttpStatus.OK);\n\t }", "Product getProductByID(Long id);", "@Override\r\n\tpublic Product getProduct(String productId) {\n\t\treturn dao.getProduct(productId);\r\n\t}", "@Override\r\n\tpublic Product getProduct(int productId) {\n\t\treturn dao.getProduct(productId);\r\n\t}", "@GetMapping(VERSION + \"/product/{productId}\")\n public ResponseEntity<?> retrieveProductDetails(@PathVariable(\"productId\") String productId) {\n ProductDto productDto = productCompositeService.fetchProductById(productId);\n return ResponseEntity.ok().body(productDto);\n }", "@Override\n\tpublic Product getProduct(int id) {\n\t\treturn productDao.getProduct(id);\n\t}", "public Product ProductDetail(int id){\n Product p = new Product();\n connect();\n ResultSet result = null;\n String sql = \"SELECT * FROM productos WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, id);\n result = ps.executeQuery();\n if(result != null){\n p.setProductId(\"\"+result.getInt(\"id_producto\"));\n p.setProductDescription(result.getString(\"descripcion\"));\n p.setProductPresentation(result.getString(\"presentacion\"));\n p.setProductCuantity(result.getInt(\"cantidad\"));\n p.setProductPrice(result.getFloat(\"precio\"));\n p.setProductProvider(result.getInt(\"proveedor\"));\n }\n connect.close();\n return p;\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n return p;\n }", "CafeProduct getProductById(final Integer productId);", "public Product get(String id);", "@GetMapping(\"/getProduct/{id}\")\n\tpublic Product getProduct(@PathVariable(\"id\") Long id){\n\n\t\treturn productServiceImpl.getProduct(id);\n\t}", "public Product GetProductbyid(int Id) {\n\t\treturn null;\n\t}", "Product getProductById(Integer productId);", "Product getProductById(Integer productId);", "@Override\r\n\tpublic Product getProduct(String id) {\n\t\treturn null;\r\n\t}", "@RequestMapping(method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_UTF8_VALUE })\n\t@ResponseStatus(HttpStatus.OK)\n\tpublic PriceDetail findPriceDetailsByProductId(@PathVariable(\"id\") Long productId) {\n\t\tLOGGER.debug(\"PriceDetailResource.findPriceDetailsByProductId Finding price details by Product Id \" + productId);\n\t\tPriceDetail priceDetail = priceDetailService.findByProductId(productId);\n\t\tif(priceDetail == null){\n\t\t\tthrow new ProductNotFoundException(\"Price for product \" + productId + \" not found.\");\n\t\t}\n\t\treturn priceDetail;\n\t}", "@Override\n\tpublic Products queryProductbyId(Integer id) {\n\t\treturn (Products)getSqlMapClientTemplate().queryForObject(buildId(SQL_PREFIX, \"queryProductbyId\"),id);\n\t}", "@Override\n\tpublic Product getProductByid(long id) {\n\t\treturn productDao.getProductByid(id);\n\t}", "Product findProductById(Long id);", "void viewProductById(long id);", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "private Observable<SearchResult> productDetails(Long productId) {\n\n Observable<Product> productObservable =\n retrieveProductFromProductSystem(productId);\n\n Observable<Long> quantityObservable =\n retrieveQuantityFromInventoryService(productId);\n\n return Observable.zip(productObservable,\n quantityObservable, SearchResult::new);\n }", "@Override\n\tpublic ProductVO detailProduct(int product_id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Product get(int id) {\n\t\treturn null;\r\n\t}", "public Product seekProduct(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "@Override\n public ServiceCall<NotUsed, Product> getProductById(String id) {\n return request -> CompletableFuture\n .completedFuture(productRepository.getProduct(id));\n }", "@RequestMapping(value = \"/getId/{id}\")\n\tpublic @ResponseBody ProductDto getById(@PathVariable(\"id\") int id) {\n\t\treturn productFacade.getProductById(id);\n\t}", "public Product getProduct(long productId) {\n\t\tProduct product = restTemplate.getForObject(\"http://PRODUCT-SERVICE/products/product-id/\" + productId, Product.class);\n\t\treturn product;\n\t}", "public List<Product> getProductByID() {\n List<Product> listProduct= productBean.getProductByID(productId);\n return listProduct;\n }", "@Override\n\t@Transactional\n\tpublic Product getProductById(int productId) {\n\t\tOptional<Product>product = productDAO.findById(productId);\n\t\tif(product.isPresent()) return product.get();\n\t\telse return null;\n\t}", "Product getProductById(Integer productID);", "@GetMapping(path = \"/products/{id}\")\n public ResponseEntity<Product> getProductById(@PathVariable(name=\"id\") Long id){\n Product product = productService.findById(id);\n if (product!=null)\n return ResponseEntity.ok(product);\n return ResponseEntity.notFound().build();\n }", "public Product getProductByID(String id) {\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where id=?\";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, id);\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n return new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return null;\r\n }", "@GetMapping(\"/products/{id}\")\n\tpublic Product getOneProduct(@PathVariable(\"id\") int id) {\n\t\t//enhanced for loop \n\t\tfor (Product product : products) {\n\t\t\tif (product.getId() == id) {\n\t\t\t\treturn product;\n\t\t\t}\n\t\t}\n\t\tthrow new ProductNotFoundException() ;\n\t}", "public ProductDetails getProductDetails(Long productId) {\n\t\t// TODO Auto-generated method stub\t\t\n\t\t//do http get call\n ResponseEntity<String> productDetails = doRestTemplateCall(ConstantsUtil.BASE_URL+productId+ConstantsUtil.URL_ENDPOINT);\n ProductDetails pdtDetailsResponse = new ProductDetails();\n //To handle redirect from http to https\n HttpHeaders httpHeaders = productDetails.getHeaders();\n HttpStatus statusCode = productDetails.getStatusCode();\n if (statusCode.equals(HttpStatus.MOVED_PERMANENTLY) || statusCode.equals(HttpStatus.FOUND) || statusCode.equals(HttpStatus.SEE_OTHER)) {\n if (httpHeaders.getLocation() != null) {\n \tproductDetails = doRestTemplateCall(httpHeaders.getLocation().toString());\n } else {\n throw new RuntimeException();\n }\n }\n if(null!= productDetails) { //to check if productdetail response is received \n log.info(\"product details found:\"+productDetails.getBody());\n \n JsonNode node;\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n\t\t\tnode = objectMapper.readValue(productDetails.getBody(), JsonNode.class);\n\t\t\tif(!myRetailAppDao.isProductDetailsPresent(productId))\t //check if product data is present in MongoDB\n\t\t\t\tmyRetailAppDao.saveToMongoDB(productDetails.getBody()); // if not, save product data to MongoDB\n\t\t\telse\n\t\t\t\tlog.info(\"Data for prductId \"+productId+\" is already present in DB, skipping insert\");\n\t\t\tJsonNode title = null;\n\t\t\t//get product title from the nested json\n\t\t\ttitle = node.get(ConstantsUtil.PRODUCT).get(ConstantsUtil.ITEM).get(ConstantsUtil.PDT_DESC).get(ConstantsUtil.TITLE);\n\t\t\tlog.info(\"title:\"+title.asText());\n\t\t\t//set the product details response\n\t\t\tpdtDetailsResponse.setName(title.asText());\n\t\t\tpdtDetailsResponse.setId(productId);\n\t\t\tCurrentPrice currentPrice = new CurrentPrice();\n\t\t\tPriceAndCurrency priceAndCurr = myRetailAppDao.getPriceAndCurrency(productId); //get price and currency details\n\t\t\tcurrentPrice.setCurrency_code(CurrencyMap.getCurrencyCode(priceAndCurr.getCurrency()));\n\t\t\tcurrentPrice.setValue(priceAndCurr.getPrice()); \n\t\t\tpdtDetailsResponse.setCurrentPrice(currentPrice);\n\t\t\t\n\t\t\tlog.info(\"pdtDetailsResponse:\"+pdtDetailsResponse.toString());\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Error while calling external api for title\",e);\n\t\t}\n }\n \n \treturn pdtDetailsResponse;\n\t}", "@GET\n\t@Path(\"{id}\") // http://localhost:8080/myretail-services/products/id/16696652\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic String getProductInfo(@PathParam(\"id\") String id) throws JSONException {\n\t\t\n\t\tWebTarget target = ClientBuilder.newClient().target(\"http://redsky.target.com/v2/pdp/tcin/\" + id\n\t\t\t\t+ \"?excludes=taxonomy,price,promotion,bulk_ship,rating_and_review_reviews,rating_and_review_statistics,question_answer_statistics/\");\n\t\tResponse response = target.request().get();\n\t\tString pName = response.readEntity(String.class).toString();\n\n\t\tint b = pName.indexOf(\"general_description\") + BEGOFFSET;\n\t\tint e = pName.indexOf(\"}\", b) - 1;\n\n\t\tJSONObject json = new JSONObject();\n\n\t\tjson.put(\"name\", pName.substring(b, e));\n\t\tjson.put(\"id\", Integer.parseInt(id));\n\t\tjson.put(\"current_price\", new JSONObject(productPrice.getProductPrice(id)));\n\t\treturn json.toString();\n\t}", "@Override\n\tpublic Product findProductById(Long id) {\n\t\treturn productDAO.findById(id).orElse(null);\n\t}", "@Override\n\tpublic Product getById(int id) throws SQLException {\n\t\treturn productDao.getById(id);\n\t}", "public Product selectProduct(long id) {\n return entityManager.find(Product.class, id);\n }", "@Override\n\tpublic IDataResult<Product> getById(int id) {\n\t\tvar product = productDao.getById(id);\n\t\tif (product.id == 0) {\n\t\t\treturn new ErrorDataResult<Product>(\"Böyle bir ürün bulunmuyor.\");\n\t\t}\n\t\treturn new SuccessDataResult<Product>(product);\n\t}", "@Override\r\n\tpublic ProductRaw getById(int id) {\n\t\treturn productRawDao.selectByPrimaryKey(id);\r\n\t}", "@Override\r\n\tpublic Product showOne(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "@Override\n\tpublic Product getById(int productId) {\n\t\treturn session.get(Product.class, productId);\n\t}", "public Product getProduct(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\r\n\t\tProduct product = (Product) session.get(Product.class, id);\r\n\t\treturn product;\r\n\t}", "@Override\n\tpublic Product findproduct(Integer id) {\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\tResultSet rs=null;\n\t\t Product product =null;\n\t\t\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"select id,category_id,name,Subtitle,main_image,sub_images,detail,price,stock,status,create_time,update_time from product where id=?\");\n\t\t\tpst.setInt(1, id);\n\t\t\trs=pst.executeQuery();\n\t\t if(rs.next()) {\n\t\t \t product =new Product(rs.getInt(\"id\"),rs.getInt(\"category_id\"),rs.getString(\"name\"),rs.getString(\"Subtitle\"),rs.getString(\"main_image\"),rs.getString(\"sub_images\"),rs.getString(\"detail\"),rs.getBigDecimal(\"price\"),rs.getInt(\"stock\"),rs.getInt(\"status\"),rs.getDate(\"create_time\"),rs.getDate(\"update_time\"));\n\t\t \t\n\t\t \t \n\t\t } \n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tDBUtils.Close(conn, pst, rs);\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\n\t\t\n\t\n\t\t\n\t\t\n\t\treturn product;\n\t}", "@Override\r\n\tpublic HashMap<String, Object> selectProductById(String productId) {\n\t\tHashMap<String, Object> map = new HashMap<>();\r\n\t\tmap.put(\"product\", dao.selectProductById(productId));\r\n\t\tmap.put(\"optionList\", dao.selectOptionById(productId));\r\n\t\treturn map;\r\n\t}", "@RequestMapping(value = \"/api/products/{id}\", method = RequestMethod.GET)\n\tpublic Product getOneProduct(@PathVariable(\"id\") long id) {\n\t\treturn this.productRepo.findById(id).orElseThrow(() -> {\n\t\t\tthrow new ProductNotFoundException();\n\t\t});\n\t}", "public Product findProductById(Integer id) {\n\t\treturn null;\n\t}", "@GetMapping(\"/products/{id}\")\r\n\t@ApiOperation(value=\"Return unique product.\")\r\n\tpublic Product showOneProduct(@PathVariable(value=\"id\") long id){\n\t\treturn productRepository.findById(id);\r\n\t}", "public Product getProductFromId(Integer prodId) throws BackendException;", "@RequestMapping(value = \"/products/{productId}\", method = RequestMethod.GET, produces = \"application/json\")\n\tpublic ResponseEntity<Product> getSingleProduct(@PathVariable int productId) {\n\t\tProduct productById = pm.getProductById(productId);\n\t\tif (productById != null) {\n\t\t\treturn new ResponseEntity<Product>(productById, HttpStatus.OK);\n\t\t}\n\t\treturn new ResponseEntity<Product>(productById, HttpStatus.NOT_FOUND);\n\t}", "@GetMapping(\"/product/{id}\")\n\tpublic Product getProductById(@PathVariable(\"id\") Long id);", "@GetMapping(\"/id/{id}\")\n public ProductDto getProductById(\n @PathVariable(\"id\") String id\n ){\n return productService.getProductById(id);\n }", "protected String getProductId() {\n return productId;\n }", "@Test\n public void getProductDetailTest() throws ApiException {\n String productId = null;\n ResponseBankingProduct response = api.getProductDetail(productId);\n\n // TODO: test validations\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "public String getProductId() {\n return productId;\n }", "@Test\n public void getProductDetailTest() throws ApiException {\n String productId = null;\n \n ResponseBankingProductById response = api.getProductDetail( productId );\n response.toString();\n // TODO: test validations\n }", "Product findById(long id);", "@Override\n\tpublic Optional<Product> findById(Long id) {\n\t\t return productRepository.findById(id);\n\t}", "private Observable<Product> retrieveProductFromProductSystem(Long productId) {\n return new GetProductCommand(productId, productService).observe();\n }", "@Override\r\n\tOptional<Product> findById(String id);", "public int getProductId() {\n return productId;\n }", "public int getProductId() {\n return productId;\n }", "@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }", "public Product getProductById(final String id) \n\t{\n\n\t\treturn productDataDao.getProductById(id);\n\n\t}", "@Transactional\n\tpublic Product getProductById(int id) {\n\n\t\tProduct product = hibernateTemplate.get(Product.class, id);\n\n\t\treturn product;\n\t}", "@Override\r\n\tpublic ProductMaster getProductById(int productId) {\n\t\treturn this.repository.findById(productId).orElse(null);\r\n\t}", "@RequestMapping(value=\"/getProduct\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<ResponseDTO> getProduct(@RequestParam int id)\n\t{\n\t\tResponseDTO responseDTO = new ResponseDTO();\n\t\tOptional<Users> user= customerService.getUserByEmail(SecurityUtils.getCurrentUserLogin());\n\t\t\n\t\tif (user.isPresent()) {\n\t\t\t\n\t\t\tresponseDTO.setProductList(productService.getproductByCategoryId(id));\n\t\t\t//responseDTO.setCategoryNames(category);\n\t\t\tresponseDTO.setMessage(\"success\");\n\t\t}\n\t\t\n\n\t\n\t\treturn new ResponseEntity<ResponseDTO>(responseDTO,HttpStatus.OK);\n\t}", "@Override\n\tpublic Product getProduct(@Min(value = 1, message = \"Invalid Product ID.\") long id) {\n\t\treturn productRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Product not found\"));\n\t}", "public ProductApiResponse getProductById(Integer id) throws ProductException {\n\n\t\tProduct product = new Product();\n\n\t\tString productName = \"\";\n\n\t\tProductApiResponse productApiResponse = new ProductApiResponse();\n\t\ttry {\n\t\t\t// find the product id in the repository\n\t\t\tproduct = productRepository.findProductByProductId(id);\n\n\t\t\tif (product != null) {\n\t\t\t\t// if product id is available in the repository then call the external api to\n\t\t\t\t// get the product name\n\n\t\t\t\tproductName = productExtApiService.getProductName(id);\n\n\t\t\t\tif (productName != null) {\n\t\t\t\t\tproductApiResponse = setProductName(product, productName);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"Product Name not available\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.info(\"Product Id:\" + id + \"is not available in the repository\");\n\t\t\t\tthrow new ProductNotFoundException(\"Product Id:\" + id + \"is not available in the repository\");\n\n\t\t\t}\n\t\t} catch (RestClientException e) {\n\t\t\tlogger.info(\"Error in calling the external api to get the product name\");\n\t\t\tthrow new RestClientException(\"Error in calling the external api to get the product name.\");\n\t\t}\n\n\t\treturn productApiResponse;\n\t}", "@Override\n @Transactional\n public Producto findById(long id) {\n return productoDao.findById(id);\n }", "public Optional<Product> getProduct(final long id) {\n\t\treturn productRepository.findById(id);\n\t}", "public Product getProduct(long id, HttpServletRequest request) {\n RestTemplate restTemplate = new RestTemplate();\n Product product = new Product();\n String requestUrl = String.format(\"%s://%s:%d/products/\" + id, request.getScheme(), request.getServerName(), request.getServerPort());\n try {\n product = restTemplate.getForObject(requestUrl, Product.class);\n return product;\n } catch (Exception e) {\n return product;\n }\n }", "public String getProductid() {\n return productid;\n }", "@ApiOperation(value = \"Get details of a Product\", response = ProductDetail.class)\n\t@ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Return the total and a list of products\", response = ProductDetail.class ),\n @ApiResponse(code = 400, message = \"Return a error object\", response = error.class) })\n\t\n\t@GetMapping(path = \"/api/products/{product_id}/details\")\n\tpublic ResponseEntity<Optional<ProductDetail>> getDetailsProduct(\n\t\t\t@PathVariable(name = \"product_id\", required = true) Integer productId) {\n\t\treturn ResponseEntity.ok(productService.getProductDetails(productId));\n\t}", "@GetMapping(\"/products/{id}\")\n public ResponseEntity<Apiresponse> getProductById(@PathVariable int id){\n\n try {\n Product prod = service.getProductById(id);\n\n logger.info(\"Controller getProductById method Response received returning product \");\n\n Apiresponse result = new Apiresponse(\"200\", \"Success\",\"Product detials returned\", Collections.singletonList(prod ));\n\n return new ResponseEntity<Apiresponse>( result , HttpStatus.OK) ;\n\n }\n catch(Exception e ){\n\n logger.info( \" Controller Get ALl products method Exception thrown from service \" +e.getMessage());\n\n return new ResponseEntity<Apiresponse>( exception(e.getLocalizedMessage() ) , HttpStatus.BAD_REQUEST) ;\n }\n }", "public Product getProductWithId(int id) {\n for (Product s : products) {\n if (s.getId() == id) { return s;}\n }\n return null;\n }", "public Product findProduct(int productId) {\n\t\treturn null;\n\t}", "public String getProductId();", "public String getProductId() ;", "@Transactional(readOnly = true)\n public ProductFullDTO getProduct(Integer productId) {\n ProductEntity productEntity = productRepository.getOne(productId);\n if (productEntity.getRemoved()) {\n throw new NotFoundException(getNotFoundMessage(productId));\n }\n return new ProductFullDTO(productEntity);\n }", "public void printProduct(int id)\n {\n Product product = findProduct(id);\n \n if(product != null) \n {\n System.out.println(product.toString());\n }\n }", "Product getProductById(Serializable productId);", "@GetMapping(\"/findProduct/{productid}\")\n @ResponseBody\n public ResponseEntity<ProductEntity> findProductByID(@PathVariable Integer productid) {\n ProductEntity productResponse = productService.viewproductbyid(productid);\n return new ResponseEntity<>(productResponse, HttpStatus.OK);\n }", "@RequestMapping(\"/product/{productId}\")\n public ProductAggregated getProduct(@PathVariable int productId) {\n\n \tLOG.info(\"Starting the product details call....\");\n\t\t//RX java implementation............\n\t\tProductAggregated pa = getProductDetails(productId);\n\t\tLOG.info(\"End of the product details call....\");\n\n \t\n \treturn pa;\n }", "@Override\n public Product findProductById(String productId)\n {\n\t\t// if the productID is not valid then it will throw the Exception\n\t\t\n \t Product pro=ProductStore.map.get(productId);\n \t if(pro==null)\n \t {\n \t\t throw new InValidIdException(\"Incorrect Id \");\n \t }\n \t \n \t // if the productId is valid it will return Product\n \t else\n \t\t return pro;\n }", "public String getProduct_id() {\n return product_id;\n }", "public String getProduct_id() {\n return product_id;\n }", "@RequestMapping(value=\"ProductDetail/{id}\",method=RequestMethod.GET)\r\n\tpublic String searchId(@PathVariable(\"id\")String id,ModelMap model){\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tproductTO=searchService.getProductById(id);\r\n\t\tmodel.addAttribute(\"productTO\", productTO);\r\n\t\treturn \"ProductDetail\";\r\n\t}", "public Integer getProductId() {\r\n return productId;\r\n }", "public Integer getProductId() {\r\n return productId;\r\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }", "public Integer getProductId() {\n return productId;\n }" ]
[ "0.8049145", "0.8014761", "0.8005772", "0.7893", "0.77783674", "0.7740512", "0.77383184", "0.77378476", "0.76804173", "0.7649796", "0.7631784", "0.7626065", "0.76255745", "0.75734544", "0.75734544", "0.75689685", "0.75249755", "0.7517151", "0.7467489", "0.74651706", "0.7463527", "0.74407524", "0.74204576", "0.73985654", "0.7393257", "0.7389438", "0.73866457", "0.7384525", "0.7377871", "0.73753", "0.7354932", "0.733945", "0.73353684", "0.73248184", "0.73011273", "0.72933805", "0.7289013", "0.728814", "0.7287009", "0.7273357", "0.72713286", "0.7265913", "0.72597647", "0.725792", "0.72504526", "0.7237466", "0.72287524", "0.72090626", "0.72044086", "0.7197913", "0.7197279", "0.718609", "0.7184321", "0.7173576", "0.71718854", "0.71501356", "0.7139052", "0.7139052", "0.7139052", "0.7139052", "0.7139052", "0.7130551", "0.7127401", "0.7109426", "0.7109418", "0.70999205", "0.7093316", "0.7093316", "0.7091351", "0.7076677", "0.7074049", "0.7065497", "0.7044809", "0.7044752", "0.7039123", "0.70367783", "0.7027297", "0.7017864", "0.70077276", "0.7003209", "0.6985904", "0.69836307", "0.6972761", "0.69627726", "0.6962705", "0.695771", "0.695358", "0.69482434", "0.69238067", "0.6922725", "0.69140124", "0.6906395", "0.6906395", "0.6897002", "0.68870294", "0.68870294", "0.6866957", "0.6866957", "0.6866957", "0.6866957" ]
0.74183404
23
Tworzy nowy obiekt klasy SettingPresenter
public SettingPresenter(GameConstants gameConst, PlayerStatus player, ISettingController controller) { this.gameConstants = gameConst; this.player = player; this.controller = controller; SwingUtilities.invokeLater(new Runnable() { @Override public void run() { view = new ShipSettingPanel(SettingPresenter.this); view.initialize( SettingPresenter.this.gameConstants.getShipTypes(), SettingPresenter.this.gameConstants.getBoardSizeV(), SettingPresenter.this.gameConstants.getBoardSizeH()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n void changeIPAddress(String ipAddress);\n\n void changePort(String port);\n}", "public JpSetting() {\n initComponents();\n fillThongtin();\n }", "Settings ()\n {\n }", "void getSettings(ControlsSettings settings);", "public SwitchYardSettingsPropertyPage() {\n super();\n noDefaultAndApplyButton();\n }", "void setSettings(ControlsSettings settings);", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "@PublicApi\npublic interface Setting<T>\n{\n /**\n * The full (unique) name, identifying a specific setting.\n *\n * @return the name.\n */\n String name();\n\n /**\n * The default value of this setting\n *\n * @return the typed default value.\n */\n T defaultValue();\n\n /**\n * A dynamic setting have its value changed in a config at any time\n *\n * @return true if the setting is dynamic, false otherwise\n */\n boolean dynamic();\n\n /**\n * An internal setting should not be accessed nor altered by any user\n * Internal settings may be changed or removed between versions without notice\n *\n * @return true if the setting is internal, false otherwise\n */\n boolean internal();\n\n /**\n * A textual representation describing the usage if this setting\n *\n * @return the description of this setting\n */\n String description();\n}", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "void setupPresenter() {\n mPresenter = new leaguePresenter(this);\n ScheduleList.getInstance().setPresenter(mPresenter);\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "boolean setSettings(Settings sm);", "@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }", "public possibleSettings setting (){\n\t\treturn setting;\n\t}", "public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }", "public interface SettingMvpView extends MvpView {\n}", "public LetterSettingView() {\r\n initComponents();\r\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Test\n public void testGetSetting() {\n System.out.println(\"getSetting\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n\n String key = s.getName();\n Setting expResult = s;\n Setting result = Setting.getSetting(key);\n assertEquals(expResult, result);\n assertEquals(s.getStype(), Setting.SETTING_TYPE.UND);\n assertEquals(\"undefined\", s.getValue());\n assertFalse(s1.equals(s));\n\n }", "void setPresenter(P2Presenter ctrl);", "public interface ISettingInteractor {\n}", "public abstract void initialSettings();", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "Settings getSettings();", "public interface ISettingPress extends IBasePress {\n\n void signUp();\n\n void fillSignUp(String dailySignId,String day);\n\n void checkSignUp();\n\n void getInvitationCode();\n\n void getInvitationList(long userId,int pageIndex);\n\n void getSetting(long userId);\n\n void updateSetting(long settingId,int pushStatus,int likeStatus,int commentStatus,int attentionStatus,int atStatus,int privateLetterStatus,int focusWorkStatus);\n\n void getRuleUrl(int ruleConfigId);\n\n void getPoster();\n}", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "interface SettingsContract {\r\n\r\n interface View extends BaseView<SettingsContract.Presenter> {\r\n\r\n /**\r\n * Returns the context.\r\n *\r\n * @return context.\r\n */\r\n Context getContext();\r\n\r\n /**\r\n * Shows loading message.\r\n */\r\n void showLoadingMsg();\r\n\r\n /**\r\n * Shows data generated successfully message.\r\n */\r\n void showDataGeneratedMsg();\r\n\r\n /**\r\n * Shows data deleted successfully message.\r\n */\r\n void showDataDeletedMsg();\r\n }\r\n\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n /**\r\n * Attaches a listener that performs the specified action when the preference is clicked.\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceClickListener(Preference preference);\r\n\r\n /**\r\n * Attaches a listener so the summary is always updated with the preference value.\r\n * Also fires the listener once, to initialize the summary (so it shows up before the value\r\n * is changed).\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceSummaryToValue(Preference preference);\r\n\r\n }\r\n}", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "@Override\r\n\tprotected void initializePresenter() {\n\r\n\t}", "public Setting() {\n }", "public interface GetConfigPresenter extends Presenter<GetConfigView> {\n\n void getConfig(String shopId);\n\n void onReloadClick();\n\n}", "@Override\r\n\tpublic void setPresenter(Presenter<UserDetails> presenter) {\n\t\t \r\n\t\tthis.presenter = presenter;\r\n\t\r\n\t\t \r\n\t}", "public abstract void setupMvpPresenter();", "public void setConfig(View view) {\n startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);\n }", "public interface ISettingView {\n void onGameLevelSetting(int gameLevel);\n\n void onGameLevelSettingInit(int level);\n\n void onBlockSizeSetting(int blockSize);\n\n void onBlockSizeSettingInit(int blockSize);\n\n void onMapSizeSetting();\n\n}", "public void settingBtnClick() {\n\t}", "@Override\n protected void doEnsureSettingHasValue(Boolean value) throws Throwable {\n loadUrlSyncByContent(mXWalkContent, client,\n UrlUtils.getTestFileUrl(\"xwalkview/localStorage.html\"));\n assertEquals(\n value == ENABLED ? HAS_LOCAL_STORAGE : NO_LOCAL_STORAGE,\n client.getChangedTitle());\n }", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "private SetProperty(Builder builder) {\n super(builder);\n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }", "@Override\n public void setPresenter (SignUpContract.Presenter presenter){\n mSignUpPresenter = presenter;\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "public Setting() {\n\t}", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Before\n public void setup() {\n presenter = new MapEditor(view, valueChangeEvent);\n assertEquals(view.asWidget(), presenter.asWidget());\n }", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public interface SettingsProvider {\n /**\n * Enable the background data option to fetch daily deviations periodically.\n */\n void enableBackgroundData();\n\n /**\n * Disable the background data option to fetch daily deviations periodically.\n */\n void disableBackgroundDate();\n\n /**\n * Determine whether background data is enabled.\n * @return true if background data is enabled.\n */\n boolean isBackgroundDataEnabled();\n\n /**\n * Enable the local notification system used to notify users when there is new data.\n */\n void enableNotifications();\n\n /**\n * Disable the local notification system used to notify users when there is new data.\n */\n void disableNotifications();\n\n /**\n * Determine whether local notifications are enabled.\n * @return true if local notifications are enabled - note this will be overridden by\n * the Android system settings regarding notifications for the app.\n */\n boolean isNotificationsEnabled();\n\n /**\n * Enable the automatic header image selection when the app starts up - where an\n * image is chosen at random from the content provider and displayed in the nav menu.\n */\n void enableAutomaticHeaderImage();\n\n /**\n * Disable the automatic header image selection on app start.\n */\n void disableAutomaticHeaderImage();\n\n /**\n * Determine whether the automatic header image is enabled.\n * @return true if automatic header images is enabled.\n */\n boolean isAutomaticHeaderImageEnabled();\n}", "void setPresenter(IDisabledFormPresenter<T> presenter);", "@SuppressWarnings(\"unused\")\n static void init(Context setContext) {\n context = setContext;\n\n SettingDetail.settingDetails.clear();\n new SettingDetail(R.string.orientation, R.string.orientationDescription,\n 0, R.string.vertical, R.string.horizontal).add(ORIENTATION_SETTING);\n new SettingDetail(R.string.scrollMode, R.string.scrollModeDescription,\n 1, R.string.forward, R.string.reverse).add(SCROLL_MODE_SETTING);\n new SettingDetail(R.string.touchWarning, R.string.touchWarningDescription,\n 0, R.string.enabled, R.string.disabled).add(TOUCH_WARNING_SETTING);\n new SettingDetail(R.string.cursorMode, R.string.cursorModeDescription,\n 0, R.string.relative, R.string.absolute).add(CURSOR_MODE_SETTING);\n new SettingDetail(R.string.vibrationMode, R.string.vibrationModeDescription,\n 2, R.string.enabled, R.string.disabled, R.string.followSystem).add(VIBRATION_SETTING);\n\n SensitivitySetting.sensitivitySettings.clear();\n int averageSensitivity = (SensitivitySetting.MAX + SensitivitySetting.MIN) / 2;\n new SensitivitySetting(80, averageSensitivity).add();\n new SensitivitySetting(6, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n\n /* All outer controls\n Outer controls are responsible for transmission and adding new mapping. Each outer control\n corresponds to a combination of inner controls. */\n TaskDetail click = new TaskDetail(CLICK, R.string.click, true, false).add();\n TaskDetail rightClick = new TaskDetail(RIGHT_CLICK, R.string.rightClick, true, false).add();\n TaskDetail doubleClick = new TaskDetail(DOUBLE_CLICK, R.string.doubleClick, true, false).add();\n TaskDetail moveCursorRelative = new TaskDetail(MOVE_CURSOR_RELATIVE, R.string.moveCursor, true, true).add();\n TaskDetail moveCursorAbsolute = new TaskDetail(MOVE_CURSOR_ABSOLUTE, R.string.moveCursor, true, true).add();\n TaskDetail select = new TaskDetail(SELECT, R.string.taskSelect, true, false).add();\n TaskDetail scroll = new TaskDetail(SCROLL, R.string.scroll, true, true).add();\n TaskDetail undo = new TaskDetail(UNDO, R.string.undo, false, false).add();\n TaskDetail copy = new TaskDetail(COPY, R.string.copy, false, false).add();\n TaskDetail paste = new TaskDetail(PASTE, R.string.paste, false, false).add();\n TaskDetail cut = new TaskDetail(CUT, R.string.cut, false, false).add();\n TaskDetail returnToDesktop = new TaskDetail(RETURN_TO_DESKTOP, R.string.returnToDesktop, false, false).add();\n TaskDetail enableTaskMode = new TaskDetail(ENABLE_TASK_MODE, R.string.enableTaskMode, false, false).add();\n TaskDetail switchApplication = new TaskDetail(SWITCH_APPLICATION, R.string.switchApplication, false, true).add();\n TaskDetail switchTab = new TaskDetail(SWITCH_TAB, R.string.switchTab, false, true).add();\n /* This list can be extended\n If the description contains R.string.BasicControl, it will not be allowed to be modified in the generalSettings\n Format of any extension format is as follows:\n TaskDetail NAME = new TaskDetail(stringRepresentation, intStringDescription, isBasicControl, canBeRepeated).add(); */\n\n\n // This will not be reached by the identifyAndSend method\n TaskDetail actionExitingTouchPad = new TaskDetail(EXITING_TOUCH_PAD_FUNCTIONAL, R.string.exitTouchPad, true, false).add();\n // Functional outer controls\n addMapping(ACTION_NOT_FOUND, PASTE_TEXT, CANCEL_LAST_ACTION, HEARTBEAT, SUSPEND);\n\n vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);\n\n try {\n // Try to load the json file\n loadJsonFile();\n } catch (Exception e) {\n // If the file does not exist\n // Default mapping\n SparseArray<TaskDetail> actionToTask = getCurrentMappings();\n\n actionToTask.append(SINGLE_FINGER + TAP, click);\n actionToTask.append(SINGLE_FINGER + DOUBLE_TAP, doubleClick);\n actionToTask.append(TWO_FINGERS + TAP, rightClick);\n actionToTask.append(SINGLE_FINGER + MOVE, moveCursorRelative);\n actionToTask.append(SINGLE_FINGER + LONG_TAP, select);\n actionToTask.append(TWO_FINGERS + MOVE, scroll);\n actionToTask.append(THREE_FINGERS + MOVE_DOWN, returnToDesktop);\n actionToTask.append(THREE_FINGERS + MOVE_UP, enableTaskMode);\n actionToTask.append(THREE_FINGERS + MOVE_LEFT, switchApplication);\n actionToTask.append(THREE_FINGERS + MOVE_RIGHT, switchApplication);\n actionToTask.append(FOUR_FINGERS + MOVE_DOWN, actionExitingTouchPad);\n\n actionToTask.append(INPUT_TEXT, PASTE_TEXT);\n actionToTask.append(MOVE_CANCEL, CANCEL_LAST_ACTION);\n actionToTask.append(HEARTBEAT_ACTION, HEARTBEAT);\n actionToTask.append(SUSPEND_ACTION, SUSPEND);\n\n // Save the default actionToTask file\n saveJsonFile();\n }\n }", "public interface SettingsContract {\n\n interface Presenter extends BasePresenter {\n /**\n * 检测更新app\n */\n void getUpdateApp();\n\n /**\n * 下载app\n */\n void downloadApp(String updateAppUrl);\n\n\n /**\n * 是否登录\n */\n void isLogin(int flag);\n\n }\n\n interface View extends BaseNewView<Presenter, String> {\n// /**\n// * http请求正确\n// *\n// * @param s\n// */\n// void getSuccess(String s);\n//\n// /**\n// * http请求错误\n// */\n// void error(String msg);\n\n }\n}", "private SettingConfirmationHelper() {\n }", "public LandRYSettingPage() {\n initComponents();\n }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "protected void onPref(String name, String value){}", "public interface ISettingsView {\r\n void initViews();\r\n}", "public interface Setting {\n /**\n * application.ymlの情報を取得する\n * ApplicationSettingsクラスにapplication.ymlの情報を定義する\n * @return ApplicationSettings\n */\n ApplicationSettings getSetting();\n\n}", "private void setControlModel(String setting, Object value) {\n\t\tHub.dataModel.put(setting, value);\n\t\tLog.d(TAG, \"Control model updated.\");\n\t}", "public interface ISettingService extends IProvider {\n String SETTINGS_SERVICE_NAME = \"settings_service\";\n\n /**\n * 语言\n **/\n public static final int CODE_LANGUAGE = 1;\n\n /**\n * 主题\n */\n public static final int CODE_THEME = 2;\n\n /**\n * 字体\n */\n public static final int CODE_FONT_SCHEME = 3;\n\n /***\n * 获取主题\n * @return 0:暗色 1.亮色 2.纯黑\n */\n public int getThemeValue();\n\n public void setThemeValue(String theme);\n\n}", "@Test\n public void testSetValue() {\n System.out.println(\"setValue\");\n Object value = null;\n Setting instance = null;\n instance.setValue(value);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@StateStrategyType(SkipStrategy.class)\npublic interface ISettingsView extends MvpView {\n\n void showSettings(SettingsDto settings);\n\n void close();\n\n}", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog() {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = (TextView) view.findViewById(R.id.fingerprint_required);\n TextView description = (TextView) view.findViewById(R.id.go_to_setting_description);\n message.setText((String) call.argument(\"fingerprintRequired\"));\n description.setText((String) call.argument(\"goToSettingDescription\"));\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n }\n };\n OnClickListener cancelHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n }\n };\n new AlertDialog.Builder(context).setView(view)\n .setPositiveButton((String) call.argument(\"goToSetting\"), goToSettingHandler)\n .setNegativeButton((String) call.argument(CANCEL_BUTTON), cancelHandler).setCancelable(false).show();\n }", "public GroupChatPreferencePanel() {\n // Build the UI\n createUI();\n }", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }", "public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public TournamentSetting_View(RiskStart_View start_view, boolean modality)\r\n\t{\r\n\t\tsetTitle(\"Setting Tournament Mode\");\r\n setPreferredSize(new Dimension(200, 200));\r\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\r\n setResizable(false);\r\n add(tournamentSettingPanel());\r\n setLocationRelativeTo(null);\r\n pack();\r\n\t}", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "private void setupSimplePreferencesScreen() {\n\n addPreferencesFromResource(R.xml.pref_weight);\n\n final Activity activity = getActivity();\n\n CustomPreferenceCategory fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader = new CustomPreferenceCategory(activity);\n fakeHeader.setTitle(R.string.pref_header_about);\n getPreferenceScreen().addPreference(fakeHeader);\n addPreferencesFromResource(R.xml.pref_about);\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_units_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_plate_style_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_bar_weight_key)));\n bindPreferenceSummaryToValue(findPreference(getResources().getString(R.string.pref_formula_key)));\n\n Preference aboutButton = (Preference)findPreference(getString(R.string.pref_about_button));\n aboutButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n AboutDialog aboutDialog = new AboutDialog();\n aboutDialog.show(getFragmentManager(), \"AboutDialog\");\n return true;\n }\n });\n\n Preference rateButton = (Preference)findPreference(getString(R.string.pref_rate_button));\n rateButton .setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Uri uri = Uri.parse(\"market://details?id=\" + activity.getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://play.google.com/store/apps/details?id=\" + activity.getPackageName())));\n }\n return true;\n }\n });\n\n final RepCheckPreferenceFragment repCheckPreferenceFragment = this;\n\n Preference resetButton = (Preference)findPreference(getString(R.string.pref_reset_button));\n resetButton.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n DialogFragment saveAsNewDialog = ConfirmResetDialog.newInstance(new ResetResponseHandler(repCheckPreferenceFragment));\n saveAsNewDialog.show(activity.getFragmentManager(), \"RenameSetDialog\");\n return true;\n }\n });\n }", "public interface MultiSetting extends Setting {\n\n /**\n * @return The available options.\n */\n Option[] getOptions();\n\n /**\n * Select a specific option.\n *\n * @param index The index of the option to select.\n * @throws InvalidValueException If the value is not within the constraints.\n */\n void select(int index) throws InvalidValueException;\n\n /**\n * @return The currently selected option.\n */\n Option getSelected();\n\n /**\n * @return The index of the currently selected option.\n */\n int getSelectedIndex();\n}", "private void saveOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.saveOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tprop.setProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, ojamaCountdown[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropSet.p\" + playerID, dropSet[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropMap.p\" + playerID, dropMap[playerID]);\r\n\t}", "@Test\n public void testGetStype() {\n System.out.println(\"getStype && setStype\");\n Setting instance = Setting.factory();\n Setting.SETTING_TYPE expResult = Setting.SETTING_TYPE.UND;\n Setting.SETTING_TYPE result = instance.getStype();\n assertEquals(expResult, result);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"text\");\n instance.setName(\"test\");\n\n Setting s = Setting.getSetting(\"test\");\n JSONObject jo = new JSONObject(s.toJSONString());\n Setting.removeSetting(s);\n assertTrue(Setting.isNotUsed(\"test\"));\n\n Setting ss = Setting.factory(jo);\n assertFalse(Setting.isNotUsed(\"test\"));\n assertEquals(Setting.SETTING_TYPE.TSTRING, ss.getStype());\n\n }", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "private void setupSimplePreferencesScreen() {\n if (!isSimplePreferences(this)) {\n return;\n }\n\n addPreferencesFromResource(R.xml.pref_empty);\n\n addHeader(R.string.pref_header_game);\n addPreferencesFromResource(R.xml.pref_game);\n this.gameModeSettingsPreferenceScreen = getPreferenceScreen();\n\n addHeader(R.string.pref_header_other);\n addPreferencesFromResource(R.xml.pref_other);\n\n Preference key_game_mode_summary = findPreference(getResources().getString(R.string.key_game_mode_summary));\n this.key_game_mode_summary = key_game_mode_summary;\n\n Preference useCodePreference = findPreference(getResources().getString(R.string.key_use_code));\n this.useCodePreference = useCodePreference;\n useCodePreference.setOnPreferenceChangeListener(USE_CODE_PREFERENCE_LISTENER);\n\n Preference customWidthPreference = findPreference(getResources().getString(R.string.key_custom_maze_width));\n customWidthPreference.setSummary(String.valueOf(getCustomMazeWidth()));\n this.customWidthPreference = customWidthPreference;\n customWidthPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int width = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeWidth = width;\n }\n preference.setSummary(String.valueOf(width));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customHeightPreference = findPreference(getResources().getString(R.string.key_custom_maze_height));\n customHeightPreference.setSummary(String.valueOf(getCustomMazeHeight()));\n this.customHeightPreference = customHeightPreference;\n customHeightPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n try {\n int height = Math.min(Math.max(Integer.parseInt(value.toString()), getResources().getInteger(R.integer.min_custom_maze_size)), getResources().getInteger(R.integer.max_custom_maze_size));\n synchronized (SettingsActivity.class) {\n SettingsActivity.customMazeHeight = height;\n }\n preference.setSummary(String.valueOf(height));\n } catch (NumberFormatException e) {\n }\n return true;\n }\n });\n Preference customCreatePreference = findPreference(getResources().getString(R.string.key_custom_maze_create));\n this.customCreatePreference = customCreatePreference;\n customCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n Maze2D.GeneratedMaze maze = generateCustomMaze(SettingsActivity.this);\n synchronized (SettingsActivity.class) {\n SettingsActivity.loadSeedMaze = maze;\n }\n if (maze != null) {\n SettingsActivity.this.finish();\n }\n return true;\n }\n });\n Preference customSolvePreference = findPreference(getResources().getString(R.string.key_custom_maze_solve));\n this.customSolvePreference = customSolvePreference;\n customSolvePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.showSolution = true;\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n Preference regularCreatePreference = findPreference(getResources().getString(R.string.key_maze_create));\n this.regularCreatePreference = regularCreatePreference;\n regularCreatePreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {\n @Override\n public boolean onPreferenceClick(Preference preference) {\n if (MainActivity.getGameMode() == GameMode.REGULAR) {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newRegularMaze = true;\n }\n } else {\n synchronized (SettingsActivity.class) {\n SettingsActivity.newFillMaze = true;\n }\n }\n SettingsActivity.this.finish();\n return true;\n }\n });\n\n ListPreference algorithmPreference = (ListPreference) findPreference(getResources().getString(R.string.key_algorithm));\n this.algorithmPreference = algorithmPreference;\n\n // Bind the summaries of EditText/List/Dialog/Ringtone preferences to\n // their values. When their values change, their summaries are updated\n // to reflect the new value, per the Android Design guidelines.\n ListPreference gameModePreference = (ListPreference) findPreference(getResources().getString(R.string.key_game_mode));\n this.gamePreference = gameModePreference;\n bindPreferenceSummaryToValue(gameModePreference);\n String[] names = GameMode.getNames(this);\n gameModePreference.setEntries(names);\n gameModePreference.setEntryValues(names);\n GameMode gameMode = MainActivity.getGameMode();\n if (gameMode != null) {\n gameModePreference.setValueIndex(gameMode.getID());\n }\n\n bindPreferenceSummaryToValue(algorithmPreference);\n names = MazeAlgorithm.getNames(this, true);\n algorithmPreference.setEntries(names);\n algorithmPreference.setEntryValues(names);\n MazeAlgorithm algorithm = MainActivity.getAlgorithm();\n if (algorithm != null) {\n algorithmPreference.setDefaultValue(algorithm.getLocalName(this));\n }\n\n SwitchPreference showTracerPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_show_tracer));\n showTracerPreference.setOnPreferenceChangeListener(TOGGLE_TRACER_PREFERENCE_LISTENER);\n showTracerPreference.setDefaultValue(MainActivity.toggleTracer());\n\n SwitchPreference squareCellsPreference = (SwitchPreference) findPreference(getResources().getString(R.string.key_square_cells));\n squareCellsPreference.setOnPreferenceChangeListener(SQUARE_CELLS_PREFERENCE_LISTENER);\n squareCellsPreference.setDefaultValue(MainActivity.squareCells());\n\n Preference recalibratePreference = findPreference(getResources().getString(R.string.key_recalibrate));\n recalibratePreference.setOnPreferenceClickListener(RECALIBRATE_PREFERENCE_LISTENER);\n\n Preference defaultTiltPreference = findPreference(getResources().getString(R.string.key_default_tilt));\n defaultTiltPreference.setOnPreferenceClickListener(DEFAULT_TILT_PREFERENCE_LISTENER);\n\n prepareGameModeGUI(MainActivity.getGameMode());\n }" ]
[ "0.669331", "0.66253775", "0.6459545", "0.6335578", "0.63065684", "0.6264001", "0.61636543", "0.6076379", "0.6058996", "0.6046286", "0.6043233", "0.6037377", "0.60138804", "0.5979883", "0.59474087", "0.59323937", "0.59273726", "0.5871242", "0.58690584", "0.5837072", "0.58362806", "0.5827773", "0.582095", "0.5803134", "0.57991934", "0.5796292", "0.57944655", "0.57911986", "0.57911575", "0.57891595", "0.57751495", "0.57749754", "0.5765334", "0.5754739", "0.5746589", "0.57072073", "0.570634", "0.57022756", "0.5696706", "0.5685232", "0.56827104", "0.56578994", "0.5651636", "0.5645745", "0.56422114", "0.5638215", "0.5636424", "0.5633156", "0.5633156", "0.5633156", "0.5633156", "0.5633156", "0.5633156", "0.5633156", "0.5632499", "0.56219923", "0.5621856", "0.5608558", "0.5583356", "0.55700696", "0.5567005", "0.55502844", "0.5547446", "0.5544775", "0.55425316", "0.55408436", "0.5540255", "0.5529604", "0.5526153", "0.55232143", "0.5521977", "0.5520946", "0.5514367", "0.5493239", "0.5489086", "0.5488691", "0.5487626", "0.5486952", "0.5484024", "0.5473693", "0.54695886", "0.54452664", "0.5445116", "0.54187727", "0.5408148", "0.54074967", "0.5406517", "0.5405808", "0.53783125", "0.5377437", "0.53755015", "0.53755015", "0.53742266", "0.5362913", "0.53549737", "0.53533125", "0.53501815", "0.5344082", "0.5343346", "0.5340535" ]
0.5976932
14
losowo ustawia statki na planszy
@Override public void resetBoard() { controller.resetGame(player); clearBoardView(); if (ready) controller.playerIsNotReady(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "public void AktualizacjaPlanszy() {\n\t\tSystem.out.println(\"AktualizacjaPlanszy\");\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\t\n\t\tPlansza.setNiebezpieczenstwoNaPlanszy(new GenerujNiebezpieczenstwo(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t}", "public boolean Wygrana() {\n\t\tSystem.out.println(\"Wygrana\");\n\t\tif(SprawdzanieWygranej.WygranaNiewolnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getNiewolnikNaPLanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaRzemieslnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getRzemieslnikNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaArystokracji()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getArystokrataNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getRzemieslnikNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }", "private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}", "private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "float getMonatl_kosten();", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "void getPlanificacion(int tipoPlanificacion);", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu\n\t\twhile (oUzyteczneTrafienia.size() > 0)\n\t\t\t{\n\t\t\t//wylosowanie pola do przetestowania\n\t\t\tint iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());\n\t\t\tPozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);\n\t\t\t\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\t//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek\n\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE\n\t\t\t\t\t\t\t\t|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPozycja oPrawidlowe = new Pozycja(2);\n\t\t\t\t\t\t\t\toPrawidlowe.setX(oWybranePole.getX() + i);\n\t\t\t\t\t\t\t\toPrawidlowe.setY(oWybranePole.getY() + j);\n\t\t\t\t\t\t\t\toSasiedniePola.add(oPrawidlowe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bProsteLinie == true)\n\t\t\t\t\t{\n\t\t\t\t\tboolean bPionowy = false;\n\t\t\t\t\tboolean bPoziomy = false;\n\t\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\t\t\t\tbPionowy = true;\n\t\t\t\t\t\t\t\t\tif (j == 0)\n\t\t\t\t\t\t\t\t\t\tbPoziomy = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\tif (bPionowy == true && bPoziomy == true)\n\t\t\t\t\t\tthrow new ProgramistaException();\n\t\t\t\t\tif (bPionowy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getX() != oWybranePole.getX())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\tif (bPoziomy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getY() != oWybranePole.getY())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (oSasiedniePola.size() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t//sa pola prawidlowe do oddania kolejnego strzalu\n\t\t\t\t\tint iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());\n\t\t\t\t\t//oddanie strzalu na wspolrzedne weybranego pola\n\t\t\t\t\tboolean bStrzal;\n\t\t\t\t\tbStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());\n\t\t\t\t\tif (bStrzal == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\t\t\toTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );\n\t\t\t\t\t\toTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );\n\t\t\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t\t\t}\n\t\t\t\t\treturn bStrzal;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej\n\t\t\t\t\toUzyteczneTrafienia.remove(iLosowanePole);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcatch (ParametrException e)\n\t\t\t\t{\n\t\t\t\tthrow new ProgramistaException(e);\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\treturn strzalLosowy(oStatkiPrzeciwnika);\n\t\t}", "boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "void Planificar(Reserva unaReserva);", "private void makeStat(int nbrParties){\n\t\tint indexTemps=0;//position à laquelle ajouter un temps de partie dans le tableaux tempsPartie\n\t\twhile(nbrParties >0){//tant qu'il reste des parties à faire\n\n\t\t\tboolean gagne=false;\n\t\t\tPlayer joueurAjouer=null;\n\t\t\tlong beforeTime=System.currentTimeMillis();\n\t\t\twhile(!gagne){//tant qu'aucun joueur n'a gagné on joue\n\t\t\t\tjoueurAjouer=jeu.whichPlayer();\n\t\t\t\t\n\t\t\t\tint value=joueurAjouer.play(jeu.getGameboard(),joueurs, null, null);\n\t\t\t\tgagne=jeu.win(joueurAjouer);\n\t\t\t\t\n\t\t\t\twhile(gagne==false &&value!=GameBoard.OK){\n\t\t\t\t\tvalue=joueurAjouer.play(jeu.getGameboard(),joueurs, null, null);\n\t\t\t\t\tgagne=jeu.win(joueurAjouer);\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tlong afterTime=System.currentTimeMillis();\n\t\t\ttempsPartie[indexTemps]=afterTime-beforeTime;\n\t\t\tindexTemps++;\n\t\t\t\n\t\t\tif(joueurAjouer==joueur1){\n\t\t\t\tif(joueur1.getNbrJoueur()==1){// signifie que c'est lui qui a commence la partie\n\t\t\t\t\tstatJ1[0]+=1;//on incremente le nombre de parties gagnées en tant que J1\n\t\t\t\t}else{\n\t\t\t\t\tstatJ1[1]+=1;//on incremente le nombre de parties gagnées en tant que J2\n\t\t\t\t}\n\t\t\t\tstatJ1[2]+=1;// on incremente le nombre de parties totales\n\t\t\t}\n\t\t\t\n\t\t\tif(joueurAjouer==joueur2){\n\t\t\t\tif(joueur2.getNbrJoueur()==1){// signifie que c'est lui qui a commence la partie\n\t\t\t\t\tstatJ2[0]+=1;//on incremente le nombre de parties gagnées en tant que J1\n\t\t\t\t}else{\n\t\t\t\t\tstatJ2[1]+=1;//on incremente le nombre de parties gagnées en tant que J2\n\t\t\t\t}\n\t\t\t\tstatJ2[2]+=1;// on incremente le nombre de parties totales\n\t\t\t}\n\t\t\t\n\t\t\tstatJ1[3]+=Player.getNbrMurDepart()-joueur1.getNombreMur();\n\t\t\tstatJ1[4]+=joueur1.getNbrDeplacement();\n\t\t\t\n\t\t\tstatJ2[3]+=Player.getNbrMurDepart()-joueur2.getNombreMur();\n\t\t\tstatJ2[4]+=joueur2.getNbrDeplacement();\n\t\t\tresetGame();\n\t\t\tnbrParties--;\n\t\t}\n\t\tstatJ1[5]+=statJ1[3]+statJ1[4];\n\t\tstatJ2[5]+=statJ2[3]+statJ2[4];\n\t}", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "public void printStat(){\n\t\tdouble tempsMoyen;\n\t\tdouble tempsTotal=0;\n\t\tfor (double temps : tempsPartie) {\n\t\t\ttempsTotal+=temps;\n\t\t}\n\t\ttempsMoyen=tempsTotal/tempsPartie.length;\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\tSystem.out.println(\"Durée moyenne d'une partie: \"+tempsMoyen+\" millisecondes\\n\");\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(joueur1.getNom()+\":\");\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que premier joueur: \"+ statJ1[0]);\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que deuxième joueur: \"+ statJ1[1]);\n\t\tSystem.out.println(\"Nombre de parties gagnées sur \"+tempsPartie.length+\" parties: \"+statJ1[2]);\n\t\tSystem.out.println(\"Nombre de mur placés sur les \"+tempsPartie.length+\" parties: \"+statJ1[3]);\n\t\tSystem.out.println(\"Nombre de déplacements effectués sur les \"+tempsPartie.length+\" parties: \"+statJ1[4]);\n\t\tSystem.out.println(\"Nombre de coups jouées sur les \"+tempsPartie.length+\" parties: \"+statJ1[5]);\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(joueur2.getNom()+\":\");\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que premier joueur: \"+ statJ2[0]);\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que deuxième joueur: \"+ statJ2[1]);\n\t\tSystem.out.println(\"Nombre de parties gagnées sur \"+tempsPartie.length+\" parties: \"+statJ2[2]);\n\t\tSystem.out.println(\"Nombre de mur placés sur les \"+tempsPartie.length+\" parties: \"+statJ2[3]);\n\t\tSystem.out.println(\"Nombre de déplacements effectués sur les \"+tempsPartie.length+\" parties: \"+statJ2[4]);\n\t\tSystem.out.println(\"Nombre de coups jouées sur les \"+tempsPartie.length+\" parties: \"+statJ2[5]);\n\t\tSystem.out.println(\"----------------------------------------------------------------------\\n\");\n\t\t\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void AktualizacjaPopulacjiKlas() {\n\t\tSystem.out.println(\"AktualizacjaPopulacjiKlas\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getJedzenie() >= Plansza.getNiewolnikNaPLanszy().getUbrania()) {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getUbrania());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getJedzenie());\n\t\t}\n\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= Plansza.getRzemieslnikNaPlanszy().getMaterialy()) {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getMaterialy());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getNarzedzia());\n\t\t}\n\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= Plansza.getArystokrataNaPlanszy().getZloto()) {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getZloto());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getTowary());\n\t\t}\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "private static int zamijeniDvijeKarte(int[] spil) {\n\t\tint prva =randomKarta (spil);\n\t\tint druga = randomKarta (spil);\n\t\tzamijeni (spil, prva, druga);\n\t\t\n\t\treturn spil, prva, druga;\n\t}", "public void dohvatiOtpad(KonkretniSpremnik ks) {\n VozilaLogger.printRad(this, ks);\n if (ks.getNazivBroj() == getVrsta()) {\n float nova_popunjenost = popunjenost + ks.getNapunjenost();\n if (nova_popunjenost >= nosivost) {\n notifyAllObservers();\n } else {\n popunjenost = nova_popunjenost;\n ks.isprazni();\n azurirajStatistikuOtpada(1, ks.getNapunjenost());\n }\n }\n }", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "private void wczytajPlanszeZdalnie()\n\t{\n\t\tPobraniePlanszy pobranie = new PobraniePlanszy(pojazd.ktoryPoziom(), this, port, host);\n\t\tThread zadanie = new Thread(pobranie);\n\t\tzadanie.start();\t\n\t}", "private void calculeStatAdd() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int win = resourceA - resourceB;\n int diff = (resourceB - resourceA) + value;\n this.getContext().getStats().incNbRessourceWinPlayers(idPlayer,type,win);\n this.getContext().getStats().incNbRessourceExtendMaxPlayers(idPlayer,type,diff);\n }", "int compteMonstres(Soldat unites[][]);", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "protected boolean strzalLosowy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = losujPole(oStatkiPrzeciwnika.getPlansza());\n\t\t\tboolean bTrafienie = oStatkiPrzeciwnika.strzal(oWylosowanePole.getX(), oWylosowanePole.getY());\n\t\t\tif (bTrafienie == true)\n\t\t\t\t{\n\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\toTrafienie.setX(oWylosowanePole.getX());\n\t\t\t\toTrafienie.setY(oWylosowanePole.getY());\n\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t}\n\t\t\treturn bTrafienie;\n\t\t\t}\n\t\tcatch (ParametrException e)\n\t\t\t{\n\t\t\tthrow new ProgramistaException(e);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public PhanSo(){\n tuSo = 0;\n mauSo = 1;\n }", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "private static void verifPayement(){\n\t\tint x,y, dime;\n\t\tx=jeu.getAssam().getXPion()-1;\n\t\ty=jeu.getAssam().getYPion()-1;\n\t\tint caseInfoTapis = jeu.cases[x][y].getCouleurTapis();\n\t\tif(caseInfoTapis == tour || caseInfoTapis == 0){\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\tdime = jeu.payerDime(caseInfoTapis,x,y,0,new boolean[7][7]);\n\t\t\tJoueur payeur = jeu.getJoueurs()[tour-1];\n\t\t\tJoueur paye = jeu.getJoueurs()[caseInfoTapis-1];\n\t\t\tif(jeu.payerVraimentDime(payeur,paye,dime)){\n\t\t\t\tjoueurElimine++;\n\t\t\t}\n\t\t\tconsole.afficherPayeurPaye(payeur, paye, dime);\n\t\t}\n\t}", "float znajdzOstatecznaCene2()\n\t{\n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\tfloat minimuCena =-1;\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//wyznacz liste ktora ma najwieksza wartosc funkcji rynkowej\n\t\t\n\t\tArrayList<Float> cenyZNajwiekszaFunkcjaRynkowa = new ArrayList<>();\n\t\tfloat maximumFunkcjiRynkowej=-1;\n\t\t\n\t\ti=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(value, cena);\n\n\t\t\t\n\t\t\tif (value>maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.clear();\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t\tmaximumFunkcjiRynkowej = value;\n\t\t\t}\n\t\t\telse if (value==maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tminimuCena = cenyZNajwiekszaFunkcjaRynkowa.get(cenyZNajwiekszaFunkcjaRynkowa.size()/2);\n\t\t\n\t\treturn minimuCena;\n\n\t}", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "public void sprawdzBonusy()\n\t{\n\t\tif(aktualnyNumerSciezki != -1)\n\t\t{\n\t\t\tpojazd.sprawdzBonus(droga.get(aktualnyNumerSciezki));\n\t\t\twyswietleniePunktow.setText(\"\" + pojazd.pobierzPunkty());\n\t\t}\n\t}", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "@Test\n public void test_distanceLinaireSurY_ParcourOptimum_Pour_4villes() {\n\n Pays pays = new Pays(4);\n\n int positionX = (int) (Math.random() * 50);\n\n pays.setPositionVille(0, new Point(positionX, 2));\n pays.setPositionVille(1, new Point(positionX, 3));\n pays.setPositionVille(2, new Point(positionX, 4));\n pays.setPositionVille(3, new Point(positionX, 5));\n\n brutForceV3.recherche(pays, 0);\n\n assertEquals(\"0>1>2>3>0\", brutForceV3.getParcours().getVillesEmprunté());\n assertEquals(brutForceV3.getParcours().getDistance(),\n parcoursVilles(pays, brutForceV3.getParcours().getVillesEmprunté(),\">\"));\n\n }", "public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public void cacheResult(PlanoSaude planoSaude);", "private void obsluga_bonusu()\n {\n if(bonusy_poziomu>0)\n {\n boolean numer= los.nextBoolean();\n if(numer){\n bon.add(new Bonus(w.getPolozenie_x(),w.getPolozenie_y(),getWidth(),getHeight()));\n bonusy_poziomu--;\n }\n }\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "public static void curar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int curador;\n //condicion de puntos de mana para ejecutar la curacion del jugador\n if(puntosDeMana>=1){\n //acciones de la funcion curar en el jugador\n aleatorio = (numeroAleatorio.nextInt(25-15+1)+15);\n curador= ((nivel+1)*5)+aleatorio;\n puntosDeVida= puntosDeVida+curador;\n puntosDeMana=puntosDeMana-1;\n }\n else{//imprimiendo el mensaje de curacion fallada\n System.out.println(\"no cuentas con Puntos De mana (MP) para curarte\");\n }\n }", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public static int getLicznikTur() { return LicznikTur; }", "@org.junit.Test\n public void testObliczOdsetkiLokataRoczna() {\n \n OdsetkiStateLokataRoczna odsetki = injector.getInstance(OdsetkiStateLokataRoczna.class);\n BigDecimal stanKonta = new BigDecimal(1000);\n BigDecimal expResult = new BigDecimal(\"20.00\");\n \n LokataRoczna lokata = injector.getInstance(LokataRoczna.class);\n \n BigDecimal result = odsetki.obliczOdsetki(stanKonta, lokata);\n\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testGetPeliBalorazioak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 4);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 2);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 3.5);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 4);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazioak itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 3.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 5);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\r\n\t}", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "private static int gainStatPoints(int statPoints){\r\n statPoints++;\r\n System.out.println(\"You have \" + statPoints + \" stat points available.\");\r\n return statPoints;\r\n }", "private Pozycja losujPole(Plansza oPlanszaPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = new Pozycja(2);\n\t\t\tint iWylosowanePole = oRand.nextInt( oPlanszaPrzeciwnika.getIloscNieznanych() ) + 1;\n\t\t\t//obliczenie x i y dla wylosowanego pola\n\t\t\tint iX = 0;\n\t\t\tint iY = 0;\n\t\t\twhile (iWylosowanePole > 0)\n\t\t\t\t{\n\t\t\t\tif (oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_POLE_PUSTE || oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_STATEK)\n\t\t\t\t\t--iWylosowanePole;\n\t\t\t\tif (iWylosowanePole > 0)\n\t\t\t\t\t{\n\t\t\t\t\t++iX;\n\t\t\t\t\tif (iX == oPlanszaPrzeciwnika.getSzerokosc())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t++iY;\n\t\t\t\t\t\tiX = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\toWylosowanePole.setX(iX);\n\t\t\toWylosowanePole.setY(iY);\n\t\t\treturn oWylosowanePole;\n\t\t\t}\n\t\tcatch (ParametrException e)\n\t\t\t{\n\t\t\tthrow new ProgramistaException(e);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void balayer()\r\n {\r\n int tot=0;\r\n for (int i=0;i<LONGUEUR;i++ )\r\n {\r\n for (int j=0; j<LARGEUR; j++ )\r\n {\r\n tot=0;\r\n Haut = lignesHor[i][j];\r\n Droite = lignesVert[i+1][j];\r\n Bas = lignesHor[i][j+1];\r\n Gauche = lignesVert[i][j];\r\n\r\n if (Haut)\r\n {\r\n tot++;\r\n Vision[i][j][1]=1;\r\n }\r\n\r\n if (Droite)\r\n {\r\n tot++;\r\n Vision[i][j][2]=1;\r\n }\r\n\r\n if (Bas)\r\n {\r\n tot++;\r\n Vision[i][j][3]=1;\r\n }\r\n\r\n\r\n if (Gauche)\r\n {\r\n tot++;\r\n Vision[i][j][4]=1;\r\n }\r\n\r\n Vision[i][j][0]=Vision[i][j][1]+Vision[i][j][2]+Vision[i][j][3]+Vision[i][j][4];\r\n }\r\n }\r\n }", "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "private void calculeStatRemove() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int loose = resourceB - resourceA;\n int diff = (resourceA - resourceB) + value;\n this.getContext().getStats().incNbRessourceLoosePlayers(idPlayer,type,loose);\n this.getContext().getStats().incNbRessourceNotLoosePlayers(idPlayer,type,diff);\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }" ]
[ "0.66982037", "0.6603085", "0.64753544", "0.6463799", "0.6316834", "0.62312585", "0.6013352", "0.60035133", "0.58320516", "0.57738227", "0.57441336", "0.57392323", "0.57281435", "0.57089496", "0.5702954", "0.56984836", "0.56744176", "0.56713516", "0.5665235", "0.56620544", "0.5657518", "0.5650068", "0.5643377", "0.5641647", "0.56252056", "0.55726004", "0.55723894", "0.5568589", "0.5566325", "0.5559652", "0.55211765", "0.55043155", "0.55036217", "0.549791", "0.54896945", "0.5488378", "0.54859334", "0.548321", "0.5471656", "0.5466499", "0.54663694", "0.5453457", "0.5452611", "0.5448818", "0.5430554", "0.54260236", "0.54243326", "0.5423996", "0.54225236", "0.5419856", "0.54179096", "0.54157794", "0.5404385", "0.5396916", "0.53895074", "0.5374776", "0.5360142", "0.53485554", "0.534782", "0.53429586", "0.5338482", "0.53094065", "0.5307496", "0.5305603", "0.53024316", "0.5300496", "0.53000325", "0.52959967", "0.529081", "0.528563", "0.5279341", "0.5276914", "0.5274033", "0.5267127", "0.52575076", "0.52569026", "0.52557397", "0.5248777", "0.5248262", "0.52476394", "0.524762", "0.524577", "0.5241873", "0.5241631", "0.52407193", "0.52382016", "0.52378607", "0.5237838", "0.5233185", "0.52297306", "0.522956", "0.52290654", "0.5228268", "0.5226957", "0.5224412", "0.5222383", "0.5218029", "0.5216916", "0.5213644", "0.52116823", "0.52098924" ]
0.0
-1
next hour or next day
private void nextDate() { Calendar calendar = Calendar.getInstance(); long hourMills = this.nextHourMills; int day; calendar.setTimeInMillis(this.nextHourMills); calendar.add(Calendar.HOUR_OF_DAY, 1); this.nextHourMills = calendar.getTimeInMillis(); day = calendar.get(Calendar.DATE); if (day != this.day) { // 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다. this.day = day; } else { // 바뀌지 않았으면 calendar.set(Calendar.HOUR_OF_DAY, 0); } try { File dir = new File(this.root, Long.toString(calendar.getTimeInMillis())); File file = new File(dir, Long.toString(hourMills)); this.data = JSONFile.getJSONObject(file); } catch (IOException e) { this.data = null; this.date.setTimeInMillis(this.nextHourMills); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyTime nextHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (hours!=23){\n\t\t\thour++;\n\t\t}\n\t\telse{\n\t\t\thour = 0;\n\t\t}\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "protected abstract void calcNextDate();", "private void advanceTime(){\n\t minute++;\n\t while (minute > 59) {\n\t minute -= 60;\n\t hour++;\n\t }\n\t while (hour > 23) {\n\t hour -= 24;\n\t day++;\n\t }\n\t while (day > 6) {\n\t day -= 7;\n\t }\n\n\t }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn SUN;\n\t\t}", "private synchronized EventType scheduleNextEvent()\n {\n Date today = new Date();\n Date today_sunrise = ss.getSunrise(latitude, longitude);\n Date today_sunset = ss.getSunset(latitude, longitude);\n Date today_off = ss.getOff(off);\n\n // get sunrise and sunset time for tomorrow\n Calendar tomorrow = Calendar.getInstance();\n tomorrow.roll(Calendar.DATE, true);\n Date tomorrow_sunrise = ss.getSunrise(latitude, longitude, tomorrow.getTime());\n Date tomorrow_sunset = ss.getSunset(latitude, longitude, tomorrow.getTime());\n Date tomorrow_off = ss.getOff(off);\n\n // determine if sunrise or sunset is the next event\n if (today.after(today_sunset)) {\n // get tomorrow's date time\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + tomorrow_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule tomorrow's sunrise as next event\n timer.schedule(new SunriseTask(), tomorrow_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = tomorrow_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else if (today.after(today_sunrise)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNSET \");\n System.out.println(\" @ \" + today_sunset);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_sunset);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunsetToday;\n return nextEvent;\n } else if (today.after(today_off)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: OFF \");\n System.out.println(\" @ \" + today_off);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_off);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + today_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunrise as next event\n timer.schedule(new SunriseTask(), today_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = today_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseToday;\n return nextEvent;\n }\n }", "private void nextDay() {\r\n tmp.setDay(tmp.getDay() + 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd++;\r\n if (nd > daysInWeek) nd -= daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }", "public static void main(String[] args) {\n\n LocalDate now = LocalDate.now();\n\n System.out.println(now);\n\n LocalDate tomorrow = now.plus(Period.ofDays(1));\n\n System.out.println(tomorrow);\n\n tomorrow = now.plusDays(1);\n\n tomorrow = now.plus(1, ChronoUnit.DAYS);\n\n System.out.println(tomorrow);\n tomorrow = now.plus(1, ChronoUnit.MONTHS);\n\n System.out.println(tomorrow);\n\n System.out.println(now.getDayOfWeek());\n System.out.println(tomorrow);\n\n System.out.println(now.isAfter(tomorrow));\n System.out.println(now.isBefore(tomorrow));\n\n //LocalTime\n LocalTime currentTime = LocalTime.now();\n LocalTime nextHour = currentTime.plus(Duration.ofHours(1));\n\n nextHour = currentTime.plus(1, ChronoUnit.HOURS); // вернет новый локалтиме ДЛЯ + И -\n\n System.out.println(nextHour);\n\n nextHour = currentTime.plusHours(1);\n System.out.println(nextHour);\n\n // LocalDateTime\n LocalDateTime today = LocalDateTime.now();\n LocalDateTime todayParsed = LocalDateTime.parse(\"2021-03-02T12:26:24\");\n\n System.out.println(today);\n System.out.println(todayParsed);\n\n System.out.println(todayParsed.get(ChronoField.DAY_OF_YEAR));\n }", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}", "LocalDateTime calculateNextPossibleStartTime(LocalDateTime startTime);", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn MON;\n\t\t}", "Date NextEvent(Date d);", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (minute!=59){\n\t\t\tminute++;\n\t\t}\n\t\telse{\n\t\t\tminute = 0;\n\t\t\tif (hours!=23){\n\t\t\t\thour++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thour = 0;\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public abstract Date getNextFireTime();", "public void instants() {\n\t\tInstant now = Instant.now(); // do something time consuming Instant\n\t\tInstant later = Instant.now();\n\t\tDuration duration = Duration.between(now, later);\n\t\tSystem.out.println(duration.toMillis());\n\n\t\tLocalDate date = LocalDate.of(2015, 5, 25);\n\t\tLocalTime time = LocalTime.of(11, 55, 00);\n\t\tZoneId zone = ZoneId.of(\"US/Eastern\");\n\t\tZonedDateTime zonedDateTime = ZonedDateTime.of(date, time, zone);\n\t\tInstant instant = zonedDateTime.toInstant();\n\n\t\tInstant nextDay = instant.plus(1, ChronoUnit.DAYS);\n\t\tSystem.out.println(nextDay);\n\t\tInstant nextHour = instant.plus(1, ChronoUnit.HOURS);\n\t\tSystem.out.println(nextHour);\n\t\t// Instant nextWeek = instant.plus(1, ChronoUnit.WEEKS); // exception\n\t}", "public Day getNextStartDay() {\n return getDay(this.days + 1);\n }", "Optional<ZonedDateTime> nextExecution(final ZonedDateTime date);", "public void nextDay() {\r\n\t\tif (day >= daysPerMonth[month] && !(month == 2 && day == 28) && !(month == 12 && day == 31)) {\r\n\t\t\tthis.month++;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\telse if (month == 2 && day == 28 && !(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0))) {\r\n\t\t\tthis.month++;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\telse if (month == 12 && day == 31) {\r\n\t\t\tthis.year++;\r\n\t\t\tthis.month = 1;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println(\"\\nhappy new year!!!\\n\");\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\tthis.day++;\r\n\t}", "public void nextDay() {\r\n int daysMax = daysInMonth();\r\n \r\n if (day == daysMax && month == 12) { // If end of the year, set date to Jan 1\r\n setDate(1, 1);\r\n } else if (day == daysMax) { // If last day of month, set to first day of next month\r\n setDate(month + 1, 1);\r\n } else { // Otherwise, simply increment this day\r\n day++;\r\n }\r\n }", "public void lookUpNextDay(int i) throws IllegalCommandArgumentException {\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n \n if (wordsOfInput[i+1].toLowerCase().matches(Constants.DAYS)) {\n // by (day)\n produceDateFromDay(wordsOfInput[i+1], 0);\n } else if (wordsOfInput[i+1].toLowerCase().matches(\"today|tdy\")) {\n // by today\n produceDateFromDay(null, 5);\n } else if (wordsOfInput[i+1].toLowerCase().matches(\"tomorrow|tmr\")) {\n // by tomorrow\n produceDateFromDay(null, 6);\n }\n \n if (i < wordsOfInput.length-2 && wordsOfInput[i+2].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+2];\n \n if (i < wordsOfInput.length - 4 && \n wordsOfInput[i+3].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+4);\n }\n \n }\n }", "Integer getStartHour();", "private long decideNextEndReset() {\n\t\tlong time = System.currentTimeMillis() + plugin.getEndResetPeriod() * 86400000;\n\t\t// Round to get the start of the next day in GMT, 5PM Pacific, 8PM Eastern,\n\t\t// when there are the most players on more-or-less\n\t\treturn (time / 86400000) * 86400000;\n\t}", "public void next( long time );", "@Test\n\tpublic void advanceDayTest_Succes(){\n\t\temptyAssemblyLineTest();\n\t\tTimestamp oldTime = assemblyLine.getCurrentTime();\n\t\tassemblyLine.startNextDay();\n\t\tassertEquals(assemblyLine.getCurrentTime().compareTo(oldTime.getNextDay()),0);\n\t\t\n\t}", "@Override\n public void clickDateNextDay() {\n\n if (DateUtil.isLastDate()) {\n final WebElement divElement = DriverConfig.getDriver().findElement(\n By.id(\"ui-datepicker-div\"));\n final WebElement nextElement = retrieveElementByAttributeValueContainsForSubElement(\n DriverConfig.getDriver(), divElement, TAG_SPAN, ATTR_CLASS,\n \"ui-icon ui-icon-circle-triangle-e\", SHORT_TIMEOUT);\n nextElement.click();\n changeAwayDateValue(\"1\");\n } else {\n int current = DateUtil.getCurrentDate();\n changeAwayDateValue(String.valueOf(current + 1));\n }\n }", "public void nextDay() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n localDate = LocalDate.parse(irlDate, formatter);\n localDate = localDate.plusDays(1);\n irlDate = DateTimeFormatter.ofPattern(\"d/M/yyyy\").format(localDate);\n System.out.println(irlDate);\n currentDay = Integer.parseInt(DateTimeFormatter.ofPattern(\"d\").format(localDate));\n currentMonth = Integer.parseInt(DateTimeFormatter.ofPattern(\"M\").format(localDate)) - 1;\n currentYear = Integer.parseInt(DateTimeFormatter.ofPattern(\"yyyy\").format(localDate));\n }", "public void advanceTime(){\n\t\tminute++;\r\n\t\twhile (minute > 59) {\r\n\t\t\tminute -= 60;\r\n\t\t\thour++;\r\n\t\t}\r\n\t\twhile (hour > 23) {\r\n\t\t\thour -= 24;\r\n\t\t\tday++;\r\n\t\t}\r\n\t\twhile (day > 6) {\r\n\t\t\tday -= 7;\r\n\t\t\tweek++;\r\n\t\t\ttotalMoney += abonnementen * 40;\r\n\t\t}\r\n\t\twhile(week > 51) {\r\n\t\t\tweek -= 52;\r\n\t\t}\r\n\t\t//System.out.println(\"advanceTime: \"+\"week: \"+ week + \" day: \"+ day +\" hour: \" + hour +\" minute: \"+ minute+ \" Money earned = \" + Math.round(totalMoney));\r\n\t}", "public void lookUpNextDate(int i) throws IllegalCommandArgumentException {\n if (i < wordsOfInput.length-2) { \n if (wordsOfInput[i+2].toLowerCase().matches(Constants.DAYS)) {\n // by next (day)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(wordsOfInput[i+2], 1);\n \n // by next day (starttime)\n if (i < wordsOfInput.length-3 && wordsOfInput[i+3].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+3];\n \n // by next day starttime (endtime)\n if (i < wordsOfInput.length - 5 && \n wordsOfInput[i+4].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+5);\n }\n } \n } else if (wordsOfInput[i+2].toLowerCase().matches(\"week|wk\")) {\n // by next (week)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 2);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"month|mth\")) {\n // by next (month)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 3);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"year|yr\")) {\n // by next (year)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 4);\n }\n }\n }", "private void scheduleNextAlarm() {\n // Cancel the currently scheduled Alarm in order to schedule the next.\n if (nextAlarm != null) {\n alarmManager.cancel(createAlarmIntent(this, nextAlarm.getId()));\n nextAlarm = null;\n }\n final Calendar calendar = Calendar.getInstance();\n Alarm alarm;\n int i = 0;\n do {\n // Look for an Alarm that is upcoming from the Calendar day and time.\n alarm = dailyDoDatabaseHelper.getNextAlarmForCalendarDay(calendar);\n if (alarm == null) {\n // If an Alarm was not found for the remainder of the day,\n // then check the next day starting midnight.\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n Log.d(CLASS_NAME, String.format(\"Checking next Calendar=%s for Alarm.\", calendar));\n }\n } while (alarm == null && i++ < 7);\n if (alarm != null) {\n nextAlarm = alarm;\n // Reusing the previous Calendar because it has scope of the future day.\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calendar.set(Calendar.MINUTE, alarm.getMinute());\n calendar.set(Calendar.SECOND, 0);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, alarm.getId()));\n Log.d(CLASS_NAME, String.format(\"Alarm=%s was found, scheduled on Calendar=%s\", alarm.toString(), calendar.toString()));\n } else {\n Log.d(CLASS_NAME, \"No upcoming Alarm(s) found to schedule.\");\n }\n }", "public Date tomorrow(){\n\t int nextD;\n\t Month nextM;\n\t int nextY;\n\n\t if ( this.day + 1 > this.month.nbJours(this.year)){\n\t nextD = 1;\n\t if (this.month.equals(Month.DECEMBER)){\n\t\t nextY = this.year + 1;\n\t \t nextM = this.month.nextMonth();\n\t }\n\t else{\n\t \tnextY = this.year;\n\t \tnextM = this.month.nextMonth();\n\t }\n\t }else{\n\t nextD = this.day + 1;\n\t nextM = this.month;\n\t nextY = this.year;\n\t }\n\t return new Date(nextD, nextM, nextY);\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "protected abstract String scheduler_next();", "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "protected void runEachHour() {\n \n }", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public static String getNextDay(String nowdate, int delay)\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:155 */ SimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 115:156 */ String mdate = \"\";\r\n/* 116:157 */ Date d = strToDate(nowdate);\r\n/* 117:158 */ long myTime = d.getTime() / 1000L + delay * 24 * \r\n/* 118:159 */ 60 * 60;\r\n/* 119:160 */ d.setTime(myTime * 1000L);\r\n/* 120:161 */ return format.format(d);\r\n/* 121: */ }\r\n/* 122: */ catch (Exception e) {}\r\n/* 123:166 */ return \"\";\r\n/* 124: */ }", "public Date next() {\n if (isValid(month, day + 1, year)) return new Date(month, day + 1, year);\n else if (isValid(month + 1, 1, year)) return new Date(month, 1, year);\n else return new Date(1, 1, year + 1);\n }", "@Override\n\tpublic void handleOnNextDay() {\n\t\trecommendDao.updateTimes();\n\t}", "Date getNextTodo();", "@Override\n protected LocalDateTime CalculateNextFeedTime() {\n return LocalDateTime.now();\n }", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "public Date getNextScheduledRun() {\n\t\tfinal Calendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 1);\n\t\tcal.set(Calendar.MINUTE, 0);\n\n\t\tif ( cal.before(Calendar.getInstance()) ){\n\t\t\tcal.add(Calendar.DATE, 7);\n\t\t}\n\t\treturn cal.getTime();\n\t\n\t}", "public Period getNextPeriod() throws PeriodNotFoundException;", "public void setNextAnchor(java.sql.Timestamp tmp) {\n this.nextAnchor = tmp;\n }", "public double getPreferredConsecutiveHours();", "public static WithAdjuster firstDayOfNextYear() {\n\n return Impl.FIRST_DAY_OF_NEXT_YEAR;\n }", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "Integer getEndHour();", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "Integer getHour();", "public MyTime nextSecond(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\tif (second != 59){\n\t\t\tsecond++; \n\t\t}\n\t\telse{\n\t\t\tif (minute!=59){\n\t\t\t\tminute++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tminute = 0;\n\t\t\t\tif (hours!=23){\n\t\t\t\t\thour++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\thour = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsecond = 0;\n\t\t}\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "private void nextWeek() {\r\n tmp.setDay(tmp.getDay() + daysInWeek);\r\n upDMYcountDMYcount();\r\n }", "public LocalDate getNextWorkingDay(TradeEntity e) {\r\n\t\tLocalDate date = e.getSettlementDate();\r\n\t\twhile (!isWorkingDay(e.getCurrency(), date.getDayOfWeek())) {\r\n\t\t\tdate = date.plusDays(1);\r\n\t\t}\r\n\t\treturn date;\r\n\t}", "public static WithAdjuster firstDayOfNextMonth() {\n\n return Impl.FIRST_DAY_OF_NEXT_MONTH;\n }", "public static WithAdjuster next(DayOfWeek dayOfWeek) {\n\n return new RelativeDayOfWeek(2, dayOfWeek);\n }", "public static Long nextExecutionTime(Long aInLastExecutionTime, int aInPeriod, int aInOffset, int aInHour) {\n\n if (aInHour > 12) aInHour -= 12;\n\n LocalDateTime now = LocalDateTime.now();\n int year = now.getYear();\n int month = now.getMonthValue();\n int day = now.getDayOfMonth();\n int hour = now.getHour();\n int minute = now.getMinute();\n\n if (aInLastExecutionTime == null) {\n if (aInPeriod < 60) {\n return LocaleUtilities.getInstance().getLocalDate(LocalDateTime.of(year, month, day, hour, minute))\n + (aInPeriod - (minute % aInPeriod) + aInOffset) * 60_000;\n } else if (aInPeriod == 60 * 12) {\n if (hour < aInHour || hour > aInHour + 12 || (hour == aInHour && minute < aInOffset) || (hour == aInHour + 12 && minute > aInOffset)) {\n int lDayOffset = (hour > aInHour + 12 || (hour == aInHour + 12 && minute > aInOffset)) ? 1 : 0;\n return LocaleUtilities.getInstance().getLocalDate(LocalDateTime.of(year, month, day, aInHour, aInOffset)) + 60_000 * 60 * 24 * lDayOffset;\n } else {\n return LocaleUtilities.getInstance().getLocalDate(LocalDateTime.of(year, month, day, aInHour + 12, aInOffset));\n }\n } else if (aInPeriod < 60 * 24) {\n return LocaleUtilities.getInstance().getLocalDate(LocalDateTime.of(year, month, day, hour, aInOffset)) + 60_000 * 60;\n } else {\n return LocaleUtilities.getInstance().getLocalDate(LocalDateTime.of(year, month, day, 0, aInOffset)) + 60_000 * 60 * 24 * (aInPeriod / (24 * 60));\n }\n } else {\n return aInLastExecutionTime + aInPeriod * 60_000;\n }\n\n\n }", "@Test\n public void testGetNextAlarm()\n {\n addTask(\"task1\", now.plusMinutes(5), null, false);\n addTask(\"task2\", now.plusDays(5), null, false);\n addTask(\"task3\", now.plusMinutes(5), Type.DAY, false); //due date NOW + 5 min\n addTask(\"task4\", now.minusDays(1), Type.WEEK, false); //due date in 1 week\n addTask(\"task5\", now.plusMinutes(10), null, true); //disabled\n\n new GetNextAlarm().getNextAlarm(now.plusMinutes(5).getMillis(), false);\n\n //this should calculate the next occurrance of task3\n Cursor cursor = taskProvider.query(TaskProvider.TASK_JOIN_REPEAT_URI,\n new TaskTable().getColumns(TASK_ID, REPEAT_NEXT_DUE_DATE),\n REPEAT_NEXT_DUE_DATE+\"=\"+now.plusMinutes(5).plusDays(1).getMillis(),\n null,\n null);\n\n assertThat(cursor.getCount(), is(1));\n cursor.moveToFirst();\n assertThat(cursor.getInt(0), is(3));\n\n }", "public void advanceDay(long day) {\n clock = Clock.offset(clock, Duration.ofDays(day));\n }", "private int[] nextDay(int[] cells){\n int[] tmp = new int[cells.length];\n \n for(int i=1;i<cells.length-1;i++){\n tmp[i]=cells[i-1]==cells[i+1]?1:0;\n }\n return tmp;\n }", "private void scheduleNextReset() {\n alarmManager.cancel(createResetIntent(this));\n final SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.pref_daily_do), Context.MODE_PRIVATE);\n final boolean isDailyResetEnabled = sharedPreferences.getBoolean(getString(R.string.pref_daily_reset_enabled), true);\n if (isDailyResetEnabled) {\n final int hourOfReset = sharedPreferences.getInt(getString(R.string.pref_daily_reset_hour), 0);\n final int minuteOfReset = sharedPreferences.getInt(getString(R.string.pref_daily_reset_minute), 0);\n final Calendar calendarToRepeat = Calendar.getInstance();\n calendarToRepeat.set(Calendar.HOUR_OF_DAY, hourOfReset);\n calendarToRepeat.set(Calendar.MINUTE, minuteOfReset);\n calendarToRepeat.set(Calendar.SECOND, 0);\n if (calendarToRepeat.before(Calendar.getInstance())) {\n calendarToRepeat.add(Calendar.DAY_OF_WEEK, 1);\n }\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,\n calendarToRepeat.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY,\n createResetIntent(this));\n Log.d(CLASS_NAME, String.format(\"Next reset scheduled on Calendar=%s\", calendarToRepeat.toString()));\n } else {\n Log.d(CLASS_NAME, String.format(\"Resets cancelled.\"));\n }\n }", "private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }", "@Test\r\n public void test14()\r\n {\r\n \tPaymentImpl p1 = null;\r\n \tString day = \"\";\t\t\r\n \t\r\n \ttry{\r\n \t\tp1 = new PaymentImpl(getCalendar(\"ltu.CalenderSaturday\"));\r\n \t\tday = p1.getNextPaymentDay();\r\n \t\tassertEquals(day, \"20160429\");\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 14, correct : 20160429, got : \" + day);\r\n \t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Clouldn't load the calender\");\r\n\t\t}\r\n }", "public void setNextAlarm(){\n }", "@DISPID(13)\r\n\t// = 0xd. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tjava.util.Date nextScheduledExecutionDateTime();", "@Override\n public int getTimeForNextTicInSeconds() {\n int seconds = Calendar.getInstance().get(Calendar.SECOND);\n return 60 - seconds;\n }", "public java.util.Date getNextAppointmentDate () {\n\t\treturn nextAppointmentDate;\n\t}", "public double getNextTime(){\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null) return Double.MAX_VALUE;\n\t\telse if(eventSet.peek() != null && timeoutSet.peek() != null) return Math.min(eventSet.peek().getTime(), timeoutSet.peek().getTime());\n\t\telse if(eventSet.peek() == null && timeoutSet.peek() != null) return timeoutSet.peek().getTime();\n\t\treturn eventSet.peek().getTime();\n\t}", "public Date getNextCheckDate(Date now)\r\n\t{\r\n\t\tsetTime(now);\r\n\r\n\t\tswitch (type)\r\n\t\t{\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MINUTE:\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MINUTE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_HOUR:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.HALF_DAY:\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tint hour = get(Calendar.HOUR_OF_DAY);\r\n\t\t\tif (hour < 12)\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 12);\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\t\tadd(Calendar.DAY_OF_MONTH, 1);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_DAY:\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.DATE, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_WEEK:\r\n\t\t\tset(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.WEEK_OF_YEAR, 1);\r\n\t\t\tbreak;\r\n\t\tcase DailyRollingFileAndSizeAppender.TOP_OF_MONTH:\r\n\t\t\tset(Calendar.DATE, 1);\r\n\t\t\tset(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tset(Calendar.MINUTE, 0);\r\n\t\t\tset(Calendar.SECOND, 0);\r\n\t\t\tset(Calendar.MILLISECOND, 0);\r\n\t\t\tadd(Calendar.MONTH, 1);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalStateException(\"Unknown periodicity type.\");\r\n\t\t}\r\n\t\treturn getTime();\r\n\t}", "public String getNextTimeFromDayTime(int day,String time){\n \t\tString res = \"00:00:00\";\n //\t\tif(existDayTime(day,time)){\n //\t\t\t// SELECT time FROM time WHERE day = 0 AND ID = 1+(SELECT ID FROM time WHERE day= 0 AND time ='16:00:00')\n //\t\t\tSQLiteDatabase db= this.getReadableDatabase();\n //\t\t\tCursor c = db.rawQuery(\"SELECT time FROM time \" +\n //\t\t\t\t\t\t\t\t \"WHERE day = \"+day+\" \" +\n //\t\t\t\t\t\t\t\t \"AND ID = 1+(SELECT ID \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"FROM time \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"WHERE day=\"+day+\" \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"AND time ='\"+time+\"')\",null);\n //\t\t\tif(c != null){\n //\t\t\t\tc.moveToFirst();\n //\t\t\t\tres = c.getString(0);\n //\t\t\t}\n //\t\t\tdb.close();\n //\t\t\treturn res;\n //\t\t} else {\n \t\t\t// TODO: else Pfad klappt immer, if nicht notwendig!\n \t\t\t// SELECT time FROM time WHERE day = 1 AND time(time) > time('18:00:00')\n \t\t\tLog.v(\"test\",\"DB-Zeit \"+time);\n \t\t\tLog.v(\"test\",\"Tag \"+String.valueOf(day));\n \t\t\tSQLiteDatabase db = this.getReadableDatabase();\n \t\t\tCursor c = db.rawQuery(\"SELECT time FROM time \" +\n \t\t\t\t\t\t\t\t \"WHERE day = \"+day+\" \" +\n \t\t\t\t\t\t\t\t \"AND time(time) > time('\"+time+\"')\",null);\n \t\t\tif(c != null){\n \t\t\t\tc.moveToFirst();\n \t\t\t\tres = c.getString(0);\n\t\t\t} else {\n\t\t\t\t// TODO: als Test, wenn Zeit fr heute nicht mehr vorhanden, nimm nchsten Tag\n\t\t\t\tres = getFirstTimeFromDay((1+day)%7);\n \t\t\t}\n \t\t\t//db.close();\n \t\t\tLog.v(\"test\",String.valueOf(res));\n \t\t\treturn res;\n //\t\t}\n \t}", "public int generateHour() {\n Random random = new Random();\n int hour = random.nextInt(8);\n\n return hour;\n }", "public synchronized long nextPm(){\n\t\treturn pm++;\n\t}", "public boolean isMorning() {\r\n return hours >= 6 && hours <= 9;\r\n }", "public static String getSQLDateTimeNext(Date val) {\n\n\t\t// Adds another day to Date and Time and converts date into SQL format\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd H:mm\");\n\t\t\treturn \"date_format('\" + format.format(next)\n\t\t\t\t\t+ \"','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "@Override\n public int nextScheduledInterval() {\n return (inInterval) ? 0 : 2;\n }", "public Date getNextExecutionTime() {\n\t\treturn SchedulerUtil.getNextExecution(this);\n\t}", "public MyTime previouseHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\n\t\tif (hour == 0){\n\t\t\thour = 23;\n\t\t}\n\t\telse{\n\t\t\thour--;\n\t\t}\n\n\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public void nextClockChange(int nextJump);", "public static int nextSwitch(int next) {\n\t\t// Make an if statement that runs if the next variable is equal to 0.\n\t\tif(next == 0) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "public void increment()\n // Increments this IncDate to represent the next day.\n {\n\t boolean ly = false;\n\t if(((year % 4 == 0) && year % 100 != 0) || year % 400 == 0) {\n\t\t //leap year\n\t\t ly = true;\n\t }\n\t if ((month == 2 && day == 28 && !ly) || (month == 2 && day == 29 && ly)) {\n\t\t month = 3;\n\t\t day = 1;\n\t } else if (month == 2 && day == 28 && !ly) {\n\t\t day ++;\n\t } else if ((month == 4 || month == 6 || month == 9 || month == 11) && day == 30){\n\t\t month ++;\n\t\t day = 1;\n\t } else if ((month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10) && day == 31){\n\t\t System.out.println(\"month is \" + month);\n\t\t month ++;\n\t\t day = 1;\n\t } else if ((month == 12) && day == 31) {\n\t\t year ++;\n\t\t month = 1;\n\t\t day = 1;\n\t } else {\n\t\t day ++;\n\t }\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateTomorrow() {\r\n doTest(TEST_DATE_2_TOMORROW, TEST_DATE_1_TODAY, false);\r\n }", "public static long getNextHour(final String timezone) {\n final Calendar time = Calendar.getInstance(TimeZone.getTimeZone(timezone));\n time.set(Calendar.MINUTE, 0);\n time.set(Calendar.SECOND, 0);\n time.set(Calendar.MILLISECOND, 0);\n time.add(Calendar.HOUR, 1);\n return time.getTimeInMillis();\n }", "public static WithAdjuster nextOrSame(DayOfWeek dayOfWeek) {\n\n return new RelativeDayOfWeek(0, dayOfWeek);\n }", "public static Date fechaInicial(Date hoy) {\n\t\thoy=(hoy==null?new Date():hoy);\n\t\tLong fechaCombinada = configuracion().getFechaCombinada();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTime(hoy);\n\t\tif (fechaCombinada == 1l) {\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.get(Calendar.DAY_OF_MONTH) - 1);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t} else {\n\t\t\tString fhoyIni = df.format(hoy);\n\t\t\ttry {\n\t\t\t\thoy = df.parse(fhoyIni);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tlog.error(\"Error en fecha inicial\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\n\t\t\tcalendar.set(Calendar.SECOND, 0);\n\t\t}\n\t\thoy = calendar.getTime();\n\t\treturn hoy;\n\t}", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public static long next() {\n return System.currentTimeMillis();\n }", "public IPv4Address nextHop(IPv4Address ip){\n\t\tIterator<RouteEntry> it = routeTable.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tRouteEntry r = it.next();\n\t\t\tSubnetUtils.SubnetInfo si = new SubnetUtils(r.dstNet.toString()).getInfo();\n\t\t\tif(si.isInRange(ip.toString()))\n\t\t\t\treturn r.nextHop;\n\t\t}\n\t\treturn null;\n\t}", "private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }", "@Test\n public void addRecord_can_read_TR_spanning_from_today_until_tomorrow() {\n DateTime start = new DateTime(today.getYear(), today.getMonthOfYear(), today.getDayOfMonth(), 12, 0);\n DateTime end = new DateTime(today.getYear(), today.getMonthOfYear(), today.getDayOfMonth() + 1, 12, 0);\n\n // when\n aggregatedDay.addRecord(aRecord(start, end, Rounding.Strategy.SIXTY_MINUTES_UP));\n\n // then: duration equals the hours covering today\n assertEquals(12, aggregatedDay.getDuration().getStandardHours());\n }", "public void checkAddTrackDay() {\n int hour = this.timeTrankiManager.getHour();\n int minute = this.timeTrankiManager.getMinute();\n\n if (hour == 9 && minute == 00) {\n this.trackListFinal.addTrackDay(1);\n }\n }", "public java.sql.Timestamp getNextAnchor() {\n return nextAnchor;\n }", "public static String getSQLDateNextLifting(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"date_format('\" + format.format(next) + \" 6:00','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "public void displayNextWeek() {\n setDisplayedDateTime(currentDateTime.plusWeeks(1));\n }", "public IEvent getNextEvent();", "private Date generateExpirationDate(){\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n c.add(Calendar.DAY_OF_WEEK, CommonSecurityConfig.EXPIRATION);\n return c.getTime();\n }", "Optional<Duration> timeToNextExecution(final ZonedDateTime date);", "public Group3Date next() {\n\t\t\tif (isValid(month, day + 1, year)) return new Group3Date(month, day + 1, year);\n\t\t\telse if (isValid(month + 1, 1, year)) return new Group3Date(month + 1, 1, year);\n\t\t\telse return new Group3Date(1, 1, year + 1);\n\t\t}" ]
[ "0.71705323", "0.65056515", "0.6254156", "0.6148408", "0.5990922", "0.593418", "0.5891423", "0.58449024", "0.5805227", "0.5766811", "0.5747301", "0.5721599", "0.5688898", "0.56504476", "0.56396997", "0.56211966", "0.5599634", "0.55789787", "0.5578339", "0.553927", "0.552538", "0.5518769", "0.5515219", "0.54884684", "0.5486623", "0.54772365", "0.5464714", "0.5418333", "0.54144293", "0.5407635", "0.53881305", "0.52915907", "0.5259849", "0.5259331", "0.5253898", "0.52524185", "0.5241338", "0.5219832", "0.52104765", "0.51886636", "0.5188388", "0.5174585", "0.5165392", "0.5146057", "0.5145912", "0.5100317", "0.50989777", "0.5072883", "0.50658745", "0.5057562", "0.5047253", "0.50395495", "0.5036735", "0.50280845", "0.5025331", "0.5012413", "0.50082", "0.4980373", "0.49694693", "0.49630734", "0.4957132", "0.4928972", "0.49278075", "0.49223986", "0.49218264", "0.49075484", "0.49049425", "0.49032944", "0.4901161", "0.4900791", "0.48888186", "0.48784527", "0.48744544", "0.48277187", "0.48215303", "0.48206878", "0.48162517", "0.4811104", "0.48106632", "0.4809547", "0.47960278", "0.47738585", "0.4769481", "0.47604394", "0.47582105", "0.47525546", "0.47444952", "0.47396302", "0.47339365", "0.4699002", "0.4692688", "0.46837556", "0.46688253", "0.4662169", "0.46584296", "0.4658067", "0.46474525", "0.46407688", "0.46393037", "0.4631148" ]
0.629527
2
Sets the main app for the controller.
public void setMainApp(FXApplication fxapp) { app = fxapp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n }", "public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}", "public void setMainApp(MainApp mainApp);", "public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}", "public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}", "public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}", "public void setMainApp(Main main) {\n this.main = main;\n }", "public void setAppMainController(AppMainController ctrl) {\n appMainController = ctrl;\n }", "public void setApp(Main application) { this.application = application;}", "public void setApp(Main application){\n this.application = application;\n }", "public void setMainApp(VIVESbook mainApp) {\r\n this.mainApp = mainApp;\r\n }", "public void setMain(MainApp main) {\n\t\tthis.main = main;\n\t}", "public void setApp(MainFXApplication main) {\n mainApplication = main;\n database = mainApplication.getUsers();\n\n }", "public void setMainApp(SplashScreenApp mainApp){\n\t\tthis.mainApp = mainApp;\n\t}", "public void setMainApp(MainFXApplication main) {\n mainFXApplication = main;\n initializeTable();\n }", "public void setMainApp(Main mainApp, Session session) {\n\t\tthis.mainApp = mainApp;\n\t\tthis.session = session;\n\t\tcargaComonentes();\n\t}", "public void setMainController(MainController mainController) {\n this.mainController = mainController;\n }", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void setMainApp(MainApp mainApp) {\r\n this.mainApp = mainApp;\r\n this.mainApp.getListSkin().entrySet().stream().forEach((nameSkin) -> {\r\n final CheckMenuItem menuItemSkin = new CheckMenuItem(nameSkin.getKey());\r\n menuItemSkin.setSelected(this.mainApp.prefs.get(MainApp.SKIN, null).equals(nameSkin.getKey()));\r\n menuItemSkin.setOnAction(e -> {\r\n Application.setUserAgentStylesheet(nameSkin.getValue());\r\n this.mainApp.prefs.put(MainApp.SKIN, nameSkin.getKey());\r\n skinmenu.getItems().stream().forEach(m -> {\r\n ((CheckMenuItem) m).setSelected(m.getText().equals(nameSkin.getKey()));\r\n });\r\n });\r\n skinmenu.getItems().add(menuItemSkin);\r\n });\r\n langmenu.getItems().stream().forEach(m -> {\r\n ((RadioMenuItem) m).setSelected(this.mainApp.prefs.get(MainApp.LANGUAGE, null).equals(m.getId()));\r\n m.setOnAction(e -> {\r\n Locale.setDefault(new Locale(m.getId()));\r\n this.mainApp.prefs.put(MainApp.LANGUAGE, m.getId());\r\n langmenu.getItems().stream().forEach(m1 -> {\r\n ((RadioMenuItem) m).setSelected(m1.getId().equals(this.mainApp.prefs.get(MainApp.LANGUAGE, null)));\r\n });\r\n try {\r\n mainApp.getPrimaryStage().close();\r\n } catch (Exception ex) {\r\n Logger.getLogger(RootLayoutController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n new MainApp().start(new Stage());\r\n });\r\n });\r\n }", "public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\n\t\t// Add observable list data to the table\n\t\t//personTable.setItems(mainApp.getPersonData());\n\t}", "public void setMainApp(portfmgrApplication mainApp) {\n\t\tthis.mainApp = mainApp;\n\t\ttype.setItems(FXCollections.observableArrayList(Arrays.asList(\"Kauf\", \"Verkauf\")));\n\t}", "public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}", "public void setMainApp(MainApp mainApp, ClientManager clientManager) {\n this.mainApp = mainApp;\n this.clientManager = clientManager;\n\n // Add observable list data to the table\n ObservableList<Client> test;\n test = clientManager.getClientData();\n //System.out.println(\"Dans Set main app : test = \"+test);\n informationsClients.setItems(clientManager.getClientData());\n\n }", "public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n\n // Add observable list data to the table\n // personTable.setItems(mainApp.getPersonData());\n }", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n\n // Add observable list data to the table\n TaxiTable.setItems(mainApp.getTaxiData());\n }", "public void setMainApp(MainApp mainApp) {\n\t\t// Add observable list data to the table\n\t\tstagiereTable.setItems(mainApp.stagiaireData());\n\t}", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n\n // Add observable list data to the table\n personTable.setItems(mainApp.getPersonData());\n }", "public ChatbotAppController()\n\t{\n\t\tapplicationView = new ChatbotView(this);\n\t\tbaseFrame = new ChatbotFrame(this);\n\t\tmySillyChatbot = new Chatbot(\"Derf\");\n\t\tstartMessage = \"Welcome to the \" + mySillyChatbot.getName() + \" chatbot. What is your name?\";\n\t\tquitMessage = \"goodbye cruel user :(\";\n\t\tcontentMessages = \"That's really cool I love riding motorcycles too!\";\n\t}", "public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public void setMainApp(MainApp mainApp) {\r\n\t\tthis.mainApp = mainApp;\r\n\r\n\t\timageDownloaderTable.setItems(mainApp.getImageDownloadTasks());\r\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public void setMainApp(Main main) {\n\t\tthis.main = main;\n\t\tthis.primaryStage = main.getPrimaryStage();\n\t\n\t\tmasterSearchData = FXCollections.observableArrayList();\n\t\tpresentationSearchData = FXCollections.observableArrayList();\n\t\n\t\tmasterInventoryData = FXCollections.observableArrayList();\n\t\tpresentationInventoryData = FXCollections.observableArrayList();\n\t\n\t\tmasterInitialData = FXCollections.observableArrayList();\n\t\tpresentationInitialData = FXCollections.observableArrayList();\n\t\n\t\tpresentationSearchData.addAll(masterSearchData);\n\t\tpresentationInventoryData.addAll(masterInventoryData);\n\t\tpresentationInitialData.addAll(masterInitialData);\n\n\t\ttableView.setItems(presentationSearchData);\n\t}", "public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n\n // Add observable list data to the table\n filmTable.setItems(mainApp.getFilteredData());\n }", "public void setController(MainController controller) {\n this.controller = controller;\n initValues();\n }", "public MainApp() {\n initComponents();\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "void setAppRootDirectory(String rootDir);", "void setDefaultApp(String id);", "public void setAppName(String appName);", "public ClientApp()\n\t{\n\t\tinitComponents();\n\t\tafterInitComponents();\n\t}", "public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}", "public void setApp(PR1 application){\n this.application = application;\n }", "public void setMain(Main main) {\r\n \tthis.main = main;\r\n }", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "public void onStart(MainMVPApplication app) {\n\t\tthis.application = app;\n\n\t\t// set the applications main windows (the view)\n\t\t//this.application.setMainWindow((Window) this.view);\n\n\t\t// load the nav presenter\n\t\tIPresenterFactory pf = application.getPresenterFactory();\n\t\tthis.navPresenter = (WorkspaceNavigationPresenter) pf.createPresenter(WorkspaceNavigationPresenter.class);\n\t\tIWorkspaceNavigationView navView = this.navPresenter.getView();\n\t\tthis.view.setNavigation(navView);\n\t\t\n\t\tIPresenter<?, ? extends EventBus> dbpresenter = pf.createPresenter(DashboardPresenter.class);\n\t\t((DashboardEventBus)dbpresenter.getEventBus()).launch(application);\n\t\tComponent dbView = (Component)dbpresenter.getView();\n\t\t\n\t\tthis.view.setContent(dbView);\n\t}", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "public App() {\n initComponents();\n }", "public App() {\n initComponents();\n }", "public void initMainLayout() {\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/MainLayout.fxml\"));\n\t\t\trootLayout = (BorderPane) loader.load();\n\n\t\t\t// Show the scene containing the root layout.\n\t\t\tScene scene = new Scene(rootLayout);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\n\t\t\tMainLayoutController mainLayoutController = loader.getController();\n\t\t\tmainLayoutController.setMainApp(this);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t\n\t\t}\n\t}", "void setApplicationName(String appName);", "@Override\n\tpublic void initApplication(BBApplication app) {\n\t\tthis._application = app;\n\t}", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }", "@Inject\n\tMainApp(SimpleApplication app, GuiManager guiManager, PageManager<Pages> pageManager) {\n\t\t//\t\tsetAspectRatio(app, 16, 9);\n\t\tSetupHelpers.disableDefaults(app);\n\t\tSetupHelpers.setDebug(app, false);\n\t\tSetupHelpers.logJoystickInfo(app.getInputManager());\n\t\tinitLoaders(app);\n\t\tinitGui(guiManager);\n\t\tinitPages(pageManager, app, false);\n\t}", "@Override\n public void start(Stage stage) throws Exception \n {\n \n FXMLLoader appMainLoader = new FXMLLoader(getClass().getResource(Resources.app_main));\n\n Parent root = (Parent)appMainLoader.load();\n root.prefHeight(600);\n root.prefWidth(1100);\n\n AppMainController appMainController = appMainLoader.getController();\n appMainController.setAppLauncher(this);\n\n// stage.initStyle(StageStyle.UNDECORATED);\n stage.setResizable(false);\n stage.setMaxHeight(600);\n stage.setMaxWidth(1000);\n\n Scene scene = new Scene(root, Color.TRANSPARENT);\n scene.getStylesheets().add(Resources.app_css);\n \n stage.setTitle(\"Hims-Lab Equipment Interface\");\n stage.setScene(scene);\n stage.show();\n //init();\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 ScoutingApp(){\n\t\tteamPanel.add(teamsListPanel);\n\t\t\n\t\tmatchPanel.add(matchesListPanel);\n\t\t\n\t\tadd(teamPanel, BorderLayout.WEST);\n\t\tadd(matchPanel, BorderLayout.EAST);\n\t\t\n\t\tsetTitle(\"Scouting Application\");\n\t\tsetSize(1000, 600);\n\t\tsetLocationRelativeTo(null);\n\t\t//setExtendedState(MAXIMIZED_BOTH);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetVisible(true);\n\t}", "public testDatabaseAppController()\n\t{\n\t\tdataController = new testDatabaseController(this);\n\t\tqueryList = new ArrayList<QueryInfo>();\n\t\tappFrame = new testDatabaseFrame(this);\n\t}", "public static void setApplication(ApplicationBase instance)\r\n {\r\n ApplicationBase.instance = instance;\r\n }", "public MainSwingApp() {\n \t\tsuper();\n \t\tContext.setState(State.NORMAL);\n \n \t\tthis.map = new JMapViewer();\n \t\tmap.addMouseListener(this);\n \t\tinitiateMainView();\n \t\tinitGUI();\n \t\tif (map.getMapMarkerList().isEmpty()) {\n \t\t\tmap.setDisplayPositionByLatLon(45.430262484682125, 4.3890380859375,\n \t\t\t\t\t11);\n \t\t} else {\n \t\t\tmap.setDisplayToFitMapMarkers();\n \t\t\tmap.setZoom(9);\n \t\t}\n \n \t\t// Sign in\n \t\t// new SignInDialog(this);\n \t}", "@FXML\r\n\tpublic void goToMain() {\r\n\t\tViewNavigator.loadScene(\"Welcome to WatchPlace\", ViewNavigator.HOME_SCENE);\r\n\t}", "public void setApplicationFrame(ApplicationFrame mainFrame) { }", "public Builder setAppName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n appName_ = value;\n onChanged();\n return this;\n }", "@FXML\r\n public void handleOnHomeButtonClick ()\r\n {\r\n mainApp.showMainScreen();\r\n }", "static void setApp(PApplet _app){\n app = _app;\n }", "public static void main(String[] args) {\n mainController controll = new mainController(\"127.0.0.1\");\n MainFrame mf = MainFrame.getInstance();\n mf.setController(controll);\n mf.setVisible(true);\n\n //메인메뉴 띄우기\n mf.changeView(Mode.MAIN);\n }", "public void setApplication(String application) {\r\n this.application = application;\r\n }", "public MapController(Application app) {\n\t\tthis.app = app;\n\t}", "public Builder setAppName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n appName_ = value;\n onChanged();\n return this;\n }", "public Builder setAppName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n appName_ = value;\n onChanged();\n return this;\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public MainScreen(GproToolController controller) {\n this.baseController = controller;\n \n initComponents();\n centerFrame();\n }", "public void startApp()\r\n\t{\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public void setMainApp(MainApp mainApp, Usuario usuario, int opcion) {\n\t\tthis.mainApp = mainApp;\n\t\tthis.usuario = usuario;\n\t\tthis.opcion = opcion;\n\t\tthis.observableListaGrupoUsuario = FXCollections.observableArrayList();\n\t\tthis.listaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tthis.listaEmpleados = EmpleadoDAO.readEmpleadosSinUsuario(this.mainApp.getConnection());\n\t\tinicializarCombos();\n\t\tmostrarDatosInterfaz();\n\t}", "public MainPane(BananaBroadcast app, Stage primaryStage) throws IOException {\n\t\tthis.cartouches = app.cartouches;\n\t\tthis.scheduler = app.scheduler;\n\t\tthis.primaryStage = primaryStage;\n\t\tthis.database = app.database;\n\t\tthis.app = app;\n\t\tGuiApp.loadLayout(this, \"MainPane.fxml\");\n\t}", "public AppTest( String testName )\r\n {\r\n super( testName );\r\n app = new App() ;\r\n }", "public ParkingApp() {\n runApp();\n }", "public Menus( Main mainApp ) {\n this(); // call the default constructor, which must always be called first\n this.mainApp = mainApp; // save the reference to the Main application\n }", "public Client_app() {\n initComponents();\n }", "public void init(IApplication app){\n\t\tthis.iApp = app;\n\t}", "public Application() {\n\t\tinitComponents();\n\t\tthis.service = new PacienteService();\n\t\tthis.AtualizarTabelaPacientes();\n\t\tthis.sexo = this.rd_nao_informado.getText();\n\t\tthis.cb_estados.setSelectedIndex(24);\n\t}", "public void setAppName( String appName )\n\t{\n\t\tthis.appName = appName;\n\t}", "public void initRootAppVars(){\n\t \ttry{\n\t \t\tInputStream is = this.getResources().openRawResource(R.raw.config);\n\t\t\t\tbyte [] buffer = new byte[is.available()];\n\t\t\t\twhile (is.read(buffer) != -1);\n\t\t\t\tString json = new String(buffer);\n\t JSONObject obj = new JSONObject(json);\n\t \n\t //appData..\n\t JSONObject rootObj = obj.getJSONObject(\"appData\");\n \t\n \t//init current app\n\t \t currentApp = new Obj_App(rootObj.getString(\"appGuid\"));\n \tcurrentApp.setApiKey(rootObj.getString(\"appApiKey\"));\n\t \t currentApp.setDataUrl(rootObj.getString(\"appDataURL\"));\n \t\n \t }catch (Exception je){\n \t \tLog.i(\"ZZ\", \"AppDelegate:initAppVars: ERROR: \" + je.getMessage()); \n\t }\n\t\t}", "public DemoScreenControllerMasterApp(String[] args) {\r\n\t\t// transfer args to start the selected demo \r\n\t\t// via listener callback method \"tfStackReConnected()\" \r\n\t\t// => see end of this class\r\n\t\tthis.args = args;\r\n\t\t\r\n\r\n\t\t// Define Tinkerforge Stack (Listener)\r\n\t\tdemoTfStack = new DemoTfStackImpl(this);\r\n\r\n\t\t\r\n\t\t//Create connection and add listener\r\n\t\tnew TfConnectService(\"localhost\",4223, null, demoTfStack);\r\n\t\t\r\n\t\t// Define Clone LCD Connection\r\n\t\t// Connect will be processed after this stack is connected\r\n\t\tcloneHost = \"Tf-AU-EG-WZ\";\r\n\t\tclonePort = 4223;\r\n\t}", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "protected void setUpGraph() {\n mAppComponent = DaggerAppComponent\n .builder()\n .appModule(new AppModule(this))\n .build();\n }", "private void setup() {\n this.primaryStage.setTitle(Constants.APP_NAME);\n\n this.root = new VBox();\n root.setAlignment(Pos.TOP_CENTER);\n root.getChildren().addAll(getMenuBar());\n\n Scene scene = new Scene(root);\n this.primaryStage.setScene(scene);\n\n // set the default game level.\n setGameLevel(GameLevel.BEGINNER);\n\n // fix the size of the game window.\n this.primaryStage.setResizable(false);\n this.primaryStage.show();\n }", "@Override\n public void setMainController(MainController mainController) {\n super.setMainController(mainController);\n quizStateChanger.setMainController(mainController);\n getProgramModel().getQuizMidiHandler().setMidiHandler(getMidiHandler());\n quizStateChanger.setMidiHandler(getProgramModel().getQuizMidiHandler());\n }", "public DefaultApplication() {\n\t}", "public Application getApp() {\n\t\treturn app;\n\t}", "public MyApp() {\n sContext = this;\n }", "public MTApplication(){\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void setRoot(BaseController root) {\n\t\t\n\t}", "public mainLayoutController() {\n\t }", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public static DesiredCapabilities setAppCapabilities() {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tString appID = PropertyFileHandler.getPropertyFromConfig(ConfigPropertyKeys.appID);\n\t\tcapabilities.setCapability(\"app\", appID + \"!App\");\n\t\treturn capabilities;\n\t}", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }" ]
[ "0.7867376", "0.782163", "0.7723465", "0.7718155", "0.76940846", "0.76940846", "0.76940846", "0.758678", "0.7563408", "0.74263066", "0.73092496", "0.7272556", "0.7257686", "0.70169985", "0.69110966", "0.6904806", "0.6733442", "0.6728229", "0.6713998", "0.67048746", "0.6660364", "0.66022116", "0.65720946", "0.6475125", "0.6455717", "0.6452958", "0.6451938", "0.6438688", "0.6435722", "0.6393465", "0.63891155", "0.6379952", "0.6347283", "0.62233275", "0.6175593", "0.6172196", "0.6154556", "0.6102538", "0.61009586", "0.6100387", "0.6097167", "0.59580195", "0.5936123", "0.5891815", "0.5882813", "0.5866458", "0.5859004", "0.5847474", "0.5844273", "0.5844273", "0.5821196", "0.5800595", "0.57881904", "0.5782122", "0.577874", "0.5777482", "0.5755251", "0.5703714", "0.56810904", "0.5669765", "0.5645025", "0.5639916", "0.5635668", "0.56155103", "0.56096184", "0.55903375", "0.5580173", "0.5577847", "0.5577467", "0.5573811", "0.5573811", "0.5556351", "0.5548442", "0.5537687", "0.55286235", "0.5524674", "0.55140346", "0.5506527", "0.55018705", "0.54846406", "0.5484411", "0.5484184", "0.54766977", "0.5467654", "0.5465365", "0.5458537", "0.5452497", "0.54464614", "0.5432252", "0.54257685", "0.54246587", "0.54172564", "0.541591", "0.5414594", "0.54082304", "0.5373408", "0.53729", "0.53719914", "0.5370335", "0.5363643" ]
0.6843309
16
Sets the stage of this dialog.
public void setDialogStage(Stage dialogStage) { _dialogStage = dialogStage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}", "public void setStage(Stage stage) {\r\n this.stage = stage;\r\n }", "public void setStage(Stage stage) {\n this.stage = stage;\n }", "public void setStage(Stage stage) {\n this.stage = stage;\n }", "public void setStage(Stage stage) {\n\t\tthis.stage = stage;\n\t}", "@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}", "public void setEditingStage(int stage) {\n\t\tif (amountOfStages < stage) {\n\t\t\tthrow new IllegalArgumentException(\"Attempting to switch to stage which does not exist\");\n\t\t}\n\n\t\tthis.stage = stage;\n\t}", "@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}", "public static void setStage(Stage stage) {\n PageSwitcher.stage = stage;\n }", "private void setStage() {\n\t\tstage = new Stage();\n\t\tstage.setScene(myScene);\n\t\tstage.setTitle(title);\n\t\tstage.show();\n\t\tstage.setResizable(false);\n//\t\tstage.setOnCloseRequest(e -> {\n//\t\t\te.consume();\n//\t\t});\n\t}", "public void setStage(GameStage stage) {\n\t\tif (stage == GameStage.DEAL) {\n\t\t\thands.clear();\n\t\t\tHand hand = new Hand();\n\t\t\tthis.addHand(hand);\n\t\t\tthis.activeHand = null;\n\t\t}\n\t\tfor (Hand hand : hands) {\n\t\t\tGameStage handStage = hand.getStage();\n\t\t\tif (handStage != GameStage.UNACTIVE && handStage.compareTo(stage) < 0) {\n\t\t\t\thand.setStage(stage);\n\t\t\t}\n\t\t}\n\t\tthis.stage = stage;\n\t}", "public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }", "public void setStage(Stage currentStage)\n\t{\n\t\tthis.thisStage = currentStage;\n\t\tthisStage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent t) {\n\t\t\t\t//Platform.exit();\n\t\t\t}\n\t\t});\n\t}", "public Builder setStageValue(int value) {\n stage_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public void rename_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,false);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\t\t\tthis.dialogStage = dialogStage;\n\t\t\t}", "public void setCurrentStage(int s) {\n if (s < getMaxNumOfStages()) {\n currentStage = s;\n } else {\n currentStage = getMaxNumOfStages();\n }\n }", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t\t}", "private void setPrimaryStage(Stage pStage) {\n GUI.pStage = pStage;\n }", "public void setDialogStage(Stage dialogStage) {\r\n\t\tthis.dialogStage = dialogStage;\r\n\t}", "public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}", "public void setStageProgression(float stageProgression)\n\t{\n\t\tthis.stageProgression = stageProgression;\n\t}", "public void setDialogStage(Stage dialogStage){\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setStage(Stage ventana) {\n\t\t\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}", "@Override\r\n\tpublic void setStageController(StageController stageController) {\n\t\tmyController = stageController;\r\n\t}", "public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }", "public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }", "public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }", "public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }", "public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }", "public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }", "public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }", "public void setPrimaryStage(Stage s) {\n primaryStage = s;\n }", "public void setStageNumber(Integer stageNumber) {\n this.stageNumber = stageNumber;\n }", "public Stage getStage() {\n return stage;\n }", "public Stage getStage() {\n return stage;\n }", "public Stage getStage() {\n return stage;\n }", "public Stage getStage() {\n return stage;\n }", "public void setStagePrincipal(Stage stagePrincipal) {\n this.stagePrincipal = stagePrincipal;\n }", "public void setClienteStage(Stage clienteStage) {\n\t\tthis.clienteStage = clienteStage;\n\t}", "public void start(Stage stage) {\r\n // Setting our primaryStage variable to the stage given to us by init()\r\n primaryStage = stage;\r\n // Retrieving the primary scene (the first thing we want the user to see)\r\n Scene primaryScene = getPrimaryScene();\r\n // Setting the title of the stage, basically what the window says on the top left\r\n primaryStage.setTitle(\"SeinfeldMemeCycler\");\r\n // Setting the scene\r\n primaryStage.setScene(primaryScene);\r\n // Displaying the stage\r\n primaryStage.show();\r\n }", "final void setLocalStage(final Stage newStage) {\n\t\t// almacenamos la nueva etapa\n\t\tthis.localStage = newStage;\n\t\t// mostramos un mensaje\n\t\tthis.getLogger().debug(\"Changing Local Stage to: \" + this.getLocalStage());\n\t}", "public void setSTAGE(BigDecimal STAGE) {\r\n this.STAGE = STAGE;\r\n }", "public void setProdutoStage(Stage produtoStage) {\n\t\tthis.produtoStage = produtoStage;\n\t}", "public void delete_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,true);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}", "public void setStageName(String stageName) {\n this.stageName = stageName;\n }", "@java.lang.Override\n public int getStageValue() {\n return stage_;\n }", "public Builder clearStage() {\n bitField0_ = (bitField0_ & ~0x00000010);\n stage_ = 0;\n onChanged();\n return this;\n }", "@java.lang.Override\n public int getStageValue() {\n return stage_;\n }", "@Override\n public void start(Stage stage){\n // set the stage\n this.stage = stage;\n\n // set the scenes\n mainScene();\n inputScene();\n\n // set the stage attributes\n stage.setTitle(\"Maze solver\");\n stage.setWidth(VisualMaze.DISPLAY_WIDTH);\n stage.setHeight(VisualMaze.DISPLAY_HEIGHT + 200);\n stage.setScene(main);\n\n // display the app\n stage.show();\n }", "public void setCurrStage(Vector4f currStage)\n\t{\n\t\tthis.currStage = currStage;\n\t}", "public Integer getStageNumber() {\n return stageNumber;\n }", "private void initStage() {\n stage = new Stage();\n stage.setTitle(\"Attentions\");\n stage.setScene(new Scene(root));\n stage.sizeToScene();\n }", "@Override\n public void start(final Stage stage) {\n\tLabel label = new Label(\" The key to making programs fast\\n\" +\n\t\t\t\" is to make them do practically nothing.\\n\" +\n\t\t\t\" -- Mike Haertel\");\t\n\tCircle circle = new Circle(160, 120, 30);\n\tPolygon polygon = new Polygon(160, 120, 200, 220, 120, 220);\n\tGroup group = new Group(label, circle, polygon);\n Scene scene = new Scene(group,320,240);\n stage.setScene(scene);\n\tstage.setTitle(\"CS 400: The Key\");\n stage.show();\n }", "public Builder newStage() {\n closeStage();\n currentStage = ImmutableSet.builder();\n return this;\n }", "String getStage();", "public Game(Stage s){\n\t\tmyStage = s;\n\t}", "public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tMain.stg = stage;\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"/stylesheets/MainMenu.fxml\"));\n\t\tstage.setTitle(BowmanConstants.GAME_TITLE);\n\t\tstage.setScene(new Scene(root, BowmanConstants.MENU_WIDTH, BowmanConstants.MENU_HEIGHT));\n\t\tstage.show();\n\t\tinit_settings();\n\t}", "public void setStageDescription(String stageDescription) {\n this.stageDescription = stageDescription;\n }", "public int getCurrentStage() {\n return currentStage;\n }", "public void Stage(ActionEvent actionEvent) {\n this.stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n this.Scene();\n }", "private void start (final Stage stage) throws IOException{\n Parent pa = FXMLLoader.load(getClass().getResource(\"/toeicapp/EditQuestion.fxml\"));\n Scene scene = new Scene(pa);\n scene.setFill(Color.TRANSPARENT);\n stage.setTitle(\"Cập nhật Câu hỏi\"); \n stage.setScene(scene);\n stage.show();\n }", "@Override\n public void start (Stage stage) throws IOException {\n init.start(stage);\n myScene = view.makeScene(50,50);\n stage.setScene(myScene);\n stage.show();\n }", "public DraftKit_GUI(Stage initPrimaryStage) {\n primaryStage = initPrimaryStage;\n }", "public void setPostStage(Vector4f postStage)\n\t{\n\t\tthis.postStage = postStage;\n\t}", "public String getStageName() {\n return stageName;\n }", "@Override\n\tpublic void show() {\n\t\tGdx.input.setInputProcessor( stage );\n\t}", "private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tStackPane pane = new StackPane();\n\t\tScene scene = new Scene(pane);\n\t\tfirstLevel();\n\t\tpane.getChildren().add(mRoot);\n\t\tstage.setScene(scene);\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void start(Stage stage) throws Exception {\r\n\t\t\r\n\t\tthis.stage = stage;\r\n\t\t\r\n\t\tstage.setTitle(windowName);\r\n\r\n\t\tPlatform.setImplicitExit(false);\r\n\r\n\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\tloader.setClassLoader(this.getClass().getClassLoader());\r\n\t\t\r\n\t\tParent box = loader.load(new ByteArrayInputStream(fxml.getBytes()));\r\n\t\t\r\n\t\tcontroller = loader.getController();\r\n\t\t\r\n\t\tcontroller.setGUI(this);\r\n\r\n\t\tscene = new Scene(box);\r\n\t\t\r\n\t\tscene.setFill(Color.TRANSPARENT);\r\n\r\n\t\tif (this.customTitleBar)\r\n\t\t\tstage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\tif (this.css != null)\r\n\t\t\tscene.getStylesheets().add(this.css.toExternalForm());\r\n\t\tstage.setScene(scene);\r\n\t\t\r\n\t\tstage.setResizable(false);\r\n\r\n\t\tstage.setOnCloseRequest(new EventHandler<WindowEvent>() {\r\n\r\n\t @Override\r\n\t public void handle(WindowEvent event) {\r\n\t Platform.runLater(new Runnable() {\r\n\r\n\t @Override\r\n\t public void run() {\r\n\t endScript();\r\n\t }\r\n\t });\r\n\t }\r\n\t });\r\n\t\t\r\n\t}", "public void setStagePrincipal(Stage ventana) {\n\t\tthis.ventana = ventana;\r\n\t}", "@Test\n public void testSetDialogStage() {\n }", "private void StageAdjustment() {\n addFoodPane.getChildren().addAll(fiberLabel, caloriesLabel, fatLabel, carbohydrateLabel,\n proteinLabel, name, nameLabel, fiber, calories, fat, carbohydrate, protein, confirm, cancel,\n id, idLabel);\n // create a new scene with the size 300x350 based on addFoodPane\n this.addFoodScene = new Scene(addFoodPane, 300, 350);\n this.setScene(addFoodScene);\n this.setTitle(\"Add Food\");// set the title of the stage\n this.setResizable(false);// fix the size of the stage\n // protects user from accidentally click other session\n this.initModality(Modality.APPLICATION_MODAL);\n }", "@Override\n public void show() {\n Gdx.input.setInputProcessor(stage);\n }", "public void nextStage(){\n\t\tif (this.stage >= MAX_STAGES){\n\t\t\treturn;\n\t\t}\n\t\tthis.stage++;\n\t\trepaint(); // Update stage.\n\t}", "@Override\n public final void start(final Stage primaryStage) {\n Scene scene = new Scene(getPane(), PANE_WIDTH, PANE_HEIGHT);\n primaryStage.setTitle(\"Tic-Tak-Toe\"); // Set the stage title.\n primaryStage.setScene(scene); // Place the scene in the stage.\n primaryStage.show(); // Display the stage.\n }", "@Override \n public void start(Stage stage) throws Exception {\n \tBeanContext.getStage(\"a\").show();\n }", "public void setupDialog(Stage stage) {\n\t\tthis.stage = stage;\n\n\t\tcustomers = C195Application.getAllCustomers();\n\n\t\tcustomerTable.setItems(customers);\n\t}", "@Override\n\tpublic void show() {\n\t\tGdx.input.setInputProcessor(stage);\n\t}", "@Override\n public void start(Stage primaryStage) {\n try {\n stage = primaryStage;\n stage.setTitle(\"Indie Airways\");\n stage.setMinWidth(WINDOW_WIDTH);\n stage.setMinHeight(WINDOW_HEIGHT);\n gotoLogin();\n //gotoMenu();\n primaryStage.show(); \n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }", "@Override\n\tpublic void start(Stage stage) {\n\t\tParent parent;\n try {\n parent = FXMLLoader.load(\n this.getClass().getClassLoader().getResource(LOGIN_FORM) );\n } catch (IOException ex) {\n Logger.getLogger(\"LoginApplication\").log(Level.SEVERE, null, ex);\n return;\n }\n Scene scene = new Scene(parent);\n\n stage.setTitle(\"Login\");\n stage.setScene(scene);\n stage.show();\n\t}", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tinstance = this;\n\t\tmainStage = stage;\n\t\tHemsProps.init(hemsPropsPath);\n\t\t\n\t\t//decide if data upload mode or normal production\n\t\tif (!IS_DATA_UPLOAD_MODE) {\n\t\t\tstage.setScene(createScene(loadMainPane()));\n\t\t\tstage.setTitle(windowTitle);\n\t\t\tstage.show();\n\n\t\t} else {\n\t\t\tDataCreator();\n\t\t}\n\t}", "@Override\n\tpublic void start( Stage stage ) throws Exception {\n\t\tpstage= stage;\n\t\tif( _SysConfig.maxWindowOnStart() ){\n\t\t\tstage.setMaximized( true );\n\t\t}else{\n\t\t\tstage.setWidth( currentBoard.getDim().getX() );\n\t\t\tstage.setHeight( currentBoard.getDim().getY() );\n\t\t}\n\t\t//\n\t\tstage.setScene( currentBoard.refreshRoot() );\n\t\tswitchWallPaperMode();\n\t\tstage.show();\n\t\tcurrentBoard.setWindowSizeChange();\n\t\t//\n\t\tstage.getIcons().add( new Image( \"file:\" + _SysConfig.getSysFolderName() +\n\t\t\t\tFile.separatorChar + \"icon.png\" ) );\n\t\tstage.setOnCloseRequest( new EventHandler <WindowEvent>() {\n\t\t\tpublic void handle( WindowEvent we ) {\n\t\t\t\tp.p( \"System closing\" );\n\t\t\t\tcloseApp();\n\t\t\t\tSystem.exit( 0 );\n\t\t\t}\n\t\t} );\n\t\t//\n\t\tstage.widthProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.heightProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tcurrentBoard.setWindowSizeChange();\n\t\t} );\n\t\tstage.xProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setX( 0.0 );\n\t\t} );\n\t\tstage.yProperty().addListener( ( obs, oldVal, newVal ) -> {\n\t\t\tif( wallpaperMode )\n\t\t\t\tstage.setY( 0.0 );\n\t\t} );\n\t\tstage.setFullScreenExitHint( \"\" );\n\t}", "@Override\n\tpublic java.lang.String getStage() {\n\t\treturn _scienceApp.getStage();\n\t}", "public void start(Stage myStage) { \n \n System.out.println(\"Inside the start() method.\"); \n \n // Give the stage a title. \n myStage.setTitle(\"JavaFX Skeleton.\"); \n \n // Create a root node. In this case, a flow layout \n // is used, but several alternatives exist. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public void start(Stage stage) {\n game = new Game();\n\n Scene gameScene = new Scene(game.getVisual().getRoot(), MainGUI.WIDTH, MainGUI.HEIGHT);\n gameScene.setOnKeyPressed(new PressHandler());\n gameScene.setOnKeyReleased(new ReleaseHandler());\n\n createMenu(stage, gameScene);\n Scene menuScene = new Scene(root, MainGUI.WIDTH, MainGUI.HEIGHT);\n stage.setScene(menuScene);\n\n }", "public Stage returnStage() {\n\t\t\treturn stage;\n\t\t}", "public Stage getPrimaryStage() {\r\n return primaryStage;\r\n }", "public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}", "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "@Override\n public void start( Stage primaryStage ) throws Exception {\n primaryStage.setTitle(\"Battleship\");\n primaryStage.setScene(createScene());\n primaryStage.show();\n }" ]
[ "0.75774777", "0.7509157", "0.74807495", "0.74807495", "0.7441088", "0.72132003", "0.6939371", "0.6865016", "0.68354553", "0.67804176", "0.67058396", "0.6640396", "0.66237754", "0.6545671", "0.64932525", "0.646926", "0.6405268", "0.63931686", "0.63909084", "0.6380902", "0.6378002", "0.6359693", "0.63578564", "0.6356482", "0.6356368", "0.6356368", "0.6356368", "0.6356368", "0.6356368", "0.6356368", "0.62987304", "0.6298565", "0.6298565", "0.6298565", "0.6289544", "0.6289544", "0.6289544", "0.6289544", "0.62459517", "0.615155", "0.6096276", "0.6074872", "0.6074872", "0.6074872", "0.6017234", "0.5955754", "0.5896528", "0.58518595", "0.58428603", "0.5818419", "0.57693666", "0.576234", "0.57423943", "0.5667593", "0.56339675", "0.56092584", "0.5595836", "0.5566144", "0.55370104", "0.553268", "0.55136704", "0.5504562", "0.54987013", "0.54668075", "0.54257864", "0.54227245", "0.54015696", "0.5397455", "0.5395722", "0.53830385", "0.5366888", "0.53151995", "0.53150487", "0.5313919", "0.52991885", "0.52283204", "0.52277946", "0.52113277", "0.520907", "0.5203133", "0.52017546", "0.51896787", "0.5170335", "0.5158507", "0.5134211", "0.512174", "0.5120373", "0.5118778", "0.51187325", "0.51178086", "0.5115288", "0.51127374", "0.51075673", "0.5106642", "0.50965923", "0.5062287", "0.5061828", "0.50537103", "0.50494355" ]
0.6326845
30
Called when the user clicks the login button. Validates the login and displays main page if successful.
@FXML private void handleLoginAttempt() { if (isInputValid()) { String uname = userField.getText(); if (Model.doesUsernameExist(uname)) { User user = Model.verifyLogin(uname, pwField.getText()); if (user == null) { // uname exists but incorrect login user = UserInfoTable.getUserFromUserName(uname); _loginAuthenticated = false; user.setLockoutNum(user.getLockoutNum() + 1); Model.editUser(user); // increment incorrect login attempts, check if banned if (user.getLockoutNum() >= 3) { bannedAlert(); return; } } else { // uname exists and correct login // check if banned if (user.getLockoutNum() >= 3) { bannedAlert(); return; } user.setLockoutNum(0); Model.editUser(user); Model.setUser(user); _loginAuthenticated = true; app.showMainPage(); return; } } // Show the error message if bad data Alert alert = new Alert(Alert.AlertType.ERROR); alert.initOwner(_dialogStage); alert.setTitle("Please Correct Invalid Fields "); alert.setHeaderText("Incorrect password and/or username"); alert.showAndWait(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void login() {\n\t\trender();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }", "public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public login() {\n initComponents();\n \n \n }", "public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }", "private void loginButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_loginButtonMouseClicked\n //Make a default user object and bind the input data\n User loginUser;\n loginUser = new User(emailField.getText(), new String(passwordField.getPassword()));\n //Check hashed credentials against database\n //JEncryption encrypter = new JEncryption();\n //loginUser.setPswd(new String(encrypter.encrypt(loginUser.getPswd())));\n try\n {\n if(loginUser.login())\n {\n //If successful load the view\n //System.out.println(loginUser.toString());\n View v = new View(loginUser.getRole(), loginUser.getUserId());\n v.setVisible(true);\n this.setVisible(false);\n }\n //If not, pop out a login failed message\n else\n {\n JOptionPane.showMessageDialog(null, \"No user with that e-mail/password combination found.\");\n }\n }\n catch(DLException d)\n {\n JOptionPane.showMessageDialog(null, \"Connection Error. Please contact an administrator if the problem persists.\");\n }\n }", "public void onLoginButtonClicked() {\n // Start loading the process\n loginView.setProgressBarMessage(\"Logging in...\");\n loginView.showProgressBar();\n\n // Login using a username and password\n authService.login(loginView.getUsernameText(), loginView.getPasswordText())\n .subscribe(new Observer<AuthResponse>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(AuthResponse authResponse) {\n respondToLoginResponse(authResponse);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n loginView.showToastShort(\"Internal Error. Failed to login.\");\n loginView.dismissProgressBar();\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public String onLogin() {\n final HttpServletRequest request = (HttpServletRequest) getFacesContext()\n .getExternalContext().getRequest();\n try {\n request.login(getModel().getUsername(), getModel().getPassword());\n } catch (final ServletException e) {\n log.debug(\"Bad authentication for login \"\n + getModel().getUsername(), e);\n getFacesMessages().warn(AppMessageKey.VIEW_LOGIN_ERROR);\n return \"\";\n }\n IView viewId;\n if (getSecurityContext().isUserInSecurityRole(SecurityRole.ADMIN)) {\n viewId = View.ADMIN_ACCESS;\n } else if (getSecurityContext()\n .isUserInSecurityRole(SecurityRole.GUEST)) {\n viewId = View.GUEST_ACCESS;\n } else {\n viewId = View.INDEX;\n }\n // Fire login event.\n event.fire(new LoginEvent(new SecurityUser(getModel()\n .getUsername())));\n // Fire render view event.\n return fireEventRenderView(viewId).getId();\n }", "@Override\n public void loginScreen() {\n logIn = new GUILogInScreen().getPanel();\n frame.setContentPane(logIn);\n ((JButton) logIn.getComponent(4)).addActionListener(e -> {\n setUsername();\n });\n }", "public void LoginButton() {\n\t\t\r\n\t}", "public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}", "public void login(ActionEvent event) throws IOException {\n\t\t//if user is admin, open admin screen\n\t\tif(username.getText().toLowerCase().equals(\"admin\")) {\n\t\t\t//open admin screen\n\t\t\tMain.changeScene(\"/view/admin.fxml\", \"Administrator Dashboard\");\t\t\t\n\t\t}\n\t\t//if user is blank, throw error\n\t\telse if(username.getText().isEmpty()){\n\t\t\tinvalidUserError.setVisible(true);\n\t\t}\n\t\t//otherwise make sure user exists and if they do set current user and change screen, if not throw error.\n\t\telse {\n\t\t\tfor(User user : UserState.getAllUsers()) {\n\t\t\t\tif(user.getUserName().toLowerCase().equals(username.getText().toLowerCase())) {\n\t\t\t\t\tUserState.setCurrentUser(user);\n\t\t\t\t\tMain.changeScene(\"/view/userhome.fxml\", \"User Home\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tinvalidUserError.setVisible(true);\n\t\t\tusername.setText(\"\");\n\t\t}\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "void SubmitButton() {\r\n\t\tint checker = Accounts.checkUser(username.getText(), password.getText());\r\n\t\tif(checker == -1) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tAdminScreen adminScreen = new AdminScreen();\r\n\t\t}\r\n\t\telse if(checker >= 0) {\r\n\t\t\tsetVisible(false);\r\n\t\t\tdispose();\r\n\t\t\tStudentScreen studentScreen = new StudentScreen(checker);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: username \"\r\n\t\t\t\t\t+ \"and/or password is incorrect.\");\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tusername.setText(\"\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void loginButtonAction() {\n String username = usernameTextField.getText();\n String pass = passwordField.getText();\n\n if(checkFields()){\n if(am.login(username, pass)){\n LoginDetails.currentAdmin = am.getAdmin();\n try {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n Stage stage = new Stage();\n Parent parent = FXMLLoader.load(getClass().getResource(\"/app/main/MainView.fxml\"));\n stage.setResizable(true);\n stage.setTitle(\"Admin Application\");\n stage.setScene(new Scene(parent, screenSize.getWidth() * 0.9, screenSize.getHeight() * 0.9));\n stage.show();\n\n Stage thisStage = (Stage) usernameTextField.getScene().getWindow();\n thisStage.close();\n\n stage.setOnCloseRequest(e -> {\n System.err.println(\"Main: Shutting down!\");\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n setInfoMessage(\"Wrong username and/or password\", true);\n }\n }\n else{\n setInfoMessage(\"You have to enter username/password\", true);\n }\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "private void login() {\r\n\r\n if (String.valueOf(login_usernameTextField.getText()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Username\");\r\n\r\n else if (String.valueOf(login_passwordField.getPassword()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Password\");\r\n\r\n else if (MainGUI.pimsSystem.staff_exists(login_usernameTextField.getText(), String.valueOf(login_passwordField.getPassword()))) {\r\n remove(loginPanel);\r\n add(tabbedPane);\r\n JOptionPane.showMessageDialog\r\n (null, \"Login Successful\");\r\n repaint();\r\n revalidate();\r\n\r\n // reset username and password fields\r\n login_usernameTextField.setText(\"\");\r\n login_passwordField.setText(\"\");\r\n\r\n } else\r\n JOptionPane.showMessageDialog\r\n (null, \"Invalid Password or Username\");\r\n }", "public abstract boolean showLogin();", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "private void onLoginButtonClicked() {\n this.loginManager = new LoginManager(this, this);\n this.password = passwordEditText.getText().toString().trim();\n this.username = usernameEditText.getText().toString().trim();\n if (username.isEmpty() || password.isEmpty()) {\n Snackbar.make(coordinatorLayout, R.string.fill_all_fields_snackbar, Snackbar.LENGTH_LONG).show();\n } else loginManager.fetchUsersToDatabase(username, password, serverName, serverPort);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\t\tboolean approved = showLoginScreen();\n\t\t\t\tif(approved) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tGUIDriver.goToScreen(\"welcome\");\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectMessage();\n\t\t\t\t}\n\t\t}", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "@OnClick(R.id.email_sign_in_button) public void onLoginClicked() {\n String uname = username.getText().toString();\n String pass = password.getText().toString();\n\n loginForm.clearAnimation();\n\n // Start login\n presenter.doLogin(new AuthCredentials(uname, pass));\n }", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "protected void login() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}", "public LoginUI() {\n\t\tparentFrame = Main.getMainFrame();\n\t\tparentFrame.setVisible(true);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(initFields(), BorderLayout.NORTH);\n\t\tadd(initButtons(), BorderLayout.CENTER);\n\t}", "public login() {\n initComponents();\n }", "public void loginButton(View view) {\n EditText userNameInput = (EditText) findViewById(R.id.user_name);\n\n if (userNameInput.getText().toString().trim().length() != 0) {\n LinearLayout loginPage = (LinearLayout) findViewById(R.id.login_page);\n loginPage.setVisibility(View.GONE);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setVisibility(View.VISIBLE);\n LinearLayout nextAndSubmitButtons = (LinearLayout) findViewById(R.id.next_and_submit_buttons);\n nextAndSubmitButtons.setVisibility(View.VISIBLE);\n Button nextButton = (Button) findViewById(R.id.next_button);\n nextButton.setEnabled(false);\n userName = userNameInput.getText().toString();\n }\n\n //tells the user that he/she need to provides his/her name\n else {\n Toast userIdNeeded = Toast.makeText(getApplicationContext(), \"USERNAME REQUIRED\", Toast.LENGTH_SHORT);\n userIdNeeded.show();\n }\n }", "public MainPage submitForm() {\n LOGGER.info(\"Clicked the button 'LOGIN'\");\n clickOnElement(loginButtonLocator);\n return MainPage.Instance;\n }", "public void navLogin() {\n container.getChildren().clear();\n loginText.setText(\"Vennligst skriv inn brukernavn og passord:\");\n Label name = new Label(\"Brukernavn:\");\n Label pwd = new Label(\"Passord:\");\n TextField username = new TextField(); /* Lager tekstfelt */\n username.getStyleClass().add(\"textField\");\n PasswordField password = new PasswordField(); /* Ditto */\n password.getStyleClass().add(\"textField\");\n password.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent args) {\n handleLogin(login.checkLogin(username.getText(), password.getText()));\n }\n });\n username.getStyleClass().add(\"inpDefault\");\n password.getStyleClass().add(\"inpDefault\");\n Button logIn = new Button(\"Logg inn\"); /* Laget knapp, Logg inn */\n Button register = new Button(\"Registrer deg\"); /* Skal sende deg til en side for registrering */\n HBox buttons = new HBox();\n buttons.getChildren().addAll(logIn, register);\n container.setPadding(new Insets(15, 12, 15, 12));\n container.setSpacing(5);\n container.getChildren().addAll(loginText, name, username, pwd, password, buttons);\n register.setOnMouseClicked(event -> navRegister());\n logIn.setOnMouseClicked(event -> handleLogin(login.checkLogin(username.getText(), password.getText())));\n }", "public static void showLogin() throws IOException {\n Main.FxmlLoader(LOGINPAGE_PATH);\n }", "@FXML\r\n\tpublic void handleLoginButton() throws IOException{\r\n\t\tString username = tfUsernameLogin.getText();\r\n\t\tString password = pfPasswordLogin.getText();\r\n\t\tuserCred = theController.isValidUser(username, password);\r\n\t\tif(userCred.equals(\"manager\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(false);\r\n\t\t\tteamScreen.setDisable(false);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse if(userCred.equals(\"employee\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(true);\r\n\t\t\tteamScreen.setDisable(true);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlbAlertLogin.setTextFill(Color.RED);\r\n\t\t\tlbAlertLogin.setText(userCred);\r\n\t\t}\r\n\t}", "public void inputListenerForLoginButton() throws SQLException, ParseException {\n\t\t// when Login is pressed\n\t\tString email = textField_Email.getText().toLowerCase();\n\t\ttextField_Email.setText(\"\");\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tString password = passwordField.getText();\n\t\tpasswordField.setText(\"\");\n\n\t\tMember m = memberRepository.passwordMatchesForLogin(email, password);\n\n\t\tif (!isEmailFormatCorrect(email) || password.equals(\"\")) {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t\treturn;\n\t\t}\n\n\t\tif (m != null) {\n\t\t\tif (m.isAdmin()) {\n\t\t\t\t// view el admin Panel\n\t\t\t\tAdminGUI admin = new AdminGUI();\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(admin);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t} else {\n\t\t\t\t// go to BookGUI panel\n\t\t\t\tBooksGUI p = new BooksGUI(m);\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(p);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t}\n\t\t} else {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\n\t}", "public Main() {\n initComponents();\n LogIn.setVisible(true);\n LogIn.setVisible(true);\n LogIn.setLocationRelativeTo(null);\n }", "@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }", "public login(JFrame frame, Authenticator auth) {\n\t\tsetBackground(Color.GRAY);\n\t\t\n\t\tJLabel lblWelcomeToOpen = new JLabel(\"Welcome to the Open Journal Submission System\");\n\t\tlblWelcomeToOpen.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcomeToOpen.setBounds(10, 55, 780, 30);\n\t\tlblWelcomeToOpen.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 24));\n\t\t\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\n\t\tlblUsername.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblUsername.setBounds(233, 183, 92, 22);\n\t\tlblUsername.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblPassword.setBounds(238, 253, 87, 22);\n\t\tlblPassword.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\t\n\t\ttextUser = new JTextField();\n\t\ttextUser.setBounds(369, 178, 180, 32);\n\t\ttextUser.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\ttextUser.setColumns(10);\n\t\t\n\t\tJButton loginbtn = new JButton(\"Login\");\n\t\tloginbtn.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\tloginbtn.setBounds(449, 339, 100, 40);\n\t\tloginbtn.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tString user = textUser.getText();\n\t\t\t\tString pass = String.valueOf( textPass.getPassword());\n\t\t\t\t\t\t\t\n\t\t\t\tif ((user == null || user.isEmpty()) && (pass == null || pass.isEmpty())) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter username and password\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n //JOptionPane.showMessageDialog(null, \"Please enter username and password\", \"ERROR\", JOptionPane.INFORMATION_MESSAGE);\n } else if (user == null || user.isEmpty()){\n \tJOptionPane.showMessageDialog(null, \"Please enter username\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } else if (pass == null || pass.isEmpty()){\n \tJOptionPane.showMessageDialog(null, \"Please enter password\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n\t\t\t}\n\t\t});\n\t\tloginbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString uname = textUser.getText();\n\t\t\t\tString pass = String.valueOf( textPass.getPassword());\n\t\t\t\t\n\t\t\t\tif (auth.login(uname, pass) != null) {\n\t\t\t\t\tif (auth.login(uname, pass).getAccountType() == \"Researcher\") {\n\t\t\t\t\t\tResearcher panel = new Researcher(frame, auth);\n\t\t\t\t\t\tframe.setContentPane(panel);\n\t\t\t\t\t\tframe.revalidate();\n\t\t\t\t\t} else if (auth.login(uname, pass).getAccountType() == \"Reviewer\") {\n\t\t\t\t\t\tSystem.out.println(uname);\n\t\t\t\t\t\tReviewer panel = new Reviewer(frame, auth,uname);\n\t\t\t\t\t\tframe.setContentPane(panel);\n\t\t\t\t\t\tframe.revalidate();\n\t\t\t\t\t} else if (auth.login(uname, pass).getAccountType() == \"Editor\") {\n\t\t\t\t\t\tEditor panel = new Editor(frame, auth,uname);\n\t\t\t\t\t\tframe.setContentPane(panel);\n\t\t\t\t\t\tframe.revalidate();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Account not found\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnRegister = new JButton(\"Register\");\n\t\tbtnRegister.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tregister panel = new register(frame, auth);\n\t\t\t\tframe.setContentPane(panel);\n\t\t\t\tframe.revalidate();\n\t\t\t}\n\t\t});\n\t\t\t\n\t\tbtnRegister.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\tbtnRegister.setBounds(259, 339, 120, 40);\t\n\t\t\t\n\t\tsetLayout(null);\n\t\tadd(lblWelcomeToOpen);\n\t\tadd(lblPassword);\n\t\tadd(lblUsername);\n\t\tadd(textUser);\n\t\tadd(btnRegister);\n\t\tadd(loginbtn);\n\t\t\n\t\ttextPass = new JPasswordField();\n\t\ttextPass.setBounds(369, 251, 180, 32);\n\t\tadd(textPass);\n\n\t}", "private void login(){\n displayPane(loginP);\n }", "public Login() {\n\t\tinitComponents();\n\t\tthis.setTitle(\"学生成绩管理系统-登录\");\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tloginPage = new LoginGUI();\n\t\t\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tloginPage.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\tdispose();\n\t\t\t\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "public Login() {\n initComponents();\n \n }", "private void login() {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"login: \");\n\n // Store values at the time of the login attempt.\n mEmail = mEditTextSignInEmail.getText().toString();\n mPassword = mEditTextSignInPassword.getText().toString();\n mFocusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(mPassword) || !mPresenter.isPasswordValid(mPassword)) {\n mEditTextSignInPassword.setError(getString(R.string.error_invalid_password));\n mFocusView = mEditTextSignInPassword;\n isProcessCancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_field_required));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n } else if (!mPresenter.isEmailValid(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_invalid_email));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n\n if (isProcessCancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n mFocusView.requestFocus();\n\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true, mLinearlayoutSignIn);\n mPresenter.loginTask(this, mAuth, mEmail, mPassword, new SignInCallback() {\n @Override\n public void onCompleted() {\n showProgress(false, mLinearlayoutSignIn);\n showUserInfoLog();\n transToShareBookActivity();\n }\n\n @Override\n public void onError(String errorMessage) {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"onError: \" + errorMessage);\n\n showProgress(false, mLinearlayoutSignIn);\n mEditTextSignInEmail.setError(getString(R.string.error_login_fail));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n });\n }\n }", "public Login()\r\n\t{\r\n\t\t//Initialize the GUI\r\n\t\tthis.initializeGUI();\r\n\r\n\t\t//Setup the JFrame\r\n\t\tthis.setTitle(Application.NAME);\r\n\t\tthis.setSize(600, 400);\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setIconImage(Application.LOGO.getImage());\r\n\r\n\t\tthis.setVisible(true);\r\n\t}", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }", "public void login(View v) {\n\n // Disable the login button\n m_loginButton.setEnabled(false);\n\n if (validateInputs()) {\n\n if (verifyCredentials()) {\n\n // Start the home screen on successful login\n Intent intent = new Intent(LoginScreenActivity.this, HomeScreenActivity.class);\n intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);\n intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);\n startActivity(intent);\n }\n } else {\n\n // On Login failure, display error to the user\n Toast.makeText(getBaseContext(), \"Login failed. Check credentials\", Toast.LENGTH_LONG).show();\n }\n\n // Enable the login button for use\n m_loginButton.setEnabled(true);\n }", "public void actionPerformed(ActionEvent e){\n if (e.getSource() == login_var){\r\n String username_input = userInp.getText();\r\n login_username = username_input;\r\n \r\n String password_input = passInp.getText();\r\n status = systemssoftwareproject.Authentication.login.login(username_input, password_input);\r\n \r\n // If credentials are a match - login successfully\r\n if(status) {\r\n setVisible(false);\r\n }\r\n \r\n // Else - display error\r\n else{\r\n JOptionPane.showMessageDialog(c, \"Incorrect Credentials! Try again.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n \r\n // Send user to SignupForm\r\n if (e.getSource() == signup){\r\n setVisible(false);\r\n SignupForm signupForm = new SignupForm();\r\n signupForm.getLoginInstance(this);\r\n }\r\n }", "public void showLogin() {\n try {\n\n // Load person overview.\n loginController controller = new loginController(this);\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"Login.fxml\"));\n loader.setController(controller);\n AnchorPane personOverview = (AnchorPane) loader.load();\n\n // Set person overview into the center of root layout.\n rootLayout.setCenter(personOverview);\n controller.background();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void handleLogin() {\n // Get the values from the inputs\n final String username = this.mUsernameInput.getText().toString();\n final String password = this.mPasswordInput.getText().toString();\n // Make sure the username and password EditTexts are not empty\n if (this.isValid(username, password)) {\n // Authenticate the user credentials on the background thread\n AuthenticationTask authenticationTask = new AuthenticationTask(this);\n // Retain the AsyncTask in the RetainedTaskFragment\n this.mAuthenticationTaskFragment.setTask(authenticationTask);\n // Execute\n authenticationTask.execute(username, password);\n }\n }", "private void initializeLogInPanel() {\r\n\r\n // set up Login Panel\r\n loginPanel = new JPanel(new GridBagLayout());\r\n loginConstraints = new GridBagConstraints();\r\n loginPanel.setBackground(MainGUI.backgroundColor);\r\n\r\n login_directionLabel = new JLabel(\"Employee Login\");\r\n login_usernameLabel = new JLabel(\"Username:\");\r\n login_passwordLabel = new JLabel(\"Password:\");\r\n login_directionLabel.setFont(new Font(login_directionLabel.getFont().getFontName(), Font.PLAIN, 40));\r\n\r\n login_directionLabel.setForeground(MainGUI.fontColor);\r\n login_usernameLabel.setForeground(MainGUI.fontColor);\r\n login_passwordLabel.setForeground(MainGUI.fontColor);\r\n\r\n login_usernameTextField = new JTextField(12);\r\n login_passwordField = new JPasswordField(12);\r\n\r\n loginButton = new JButton(\"Login\");\r\n loginButton.setForeground(MainGUI.fontColor);\r\n\r\n // add login label\r\n loginConstraints.gridx = 10;\r\n loginConstraints.gridy = 10;\r\n loginConstraints.weighty = 0.2;\r\n loginConstraints.gridwidth = 20;\r\n loginConstraints.anchor = GridBagConstraints.NORTH;\r\n loginConstraints.insets = new Insets(50, 5, 0, 30);\r\n loginPanel.add(login_directionLabel, loginConstraints);\r\n\r\n // add username label\r\n loginConstraints.gridy = 20;\r\n loginConstraints.weighty = 0;\r\n loginConstraints.gridwidth = 10;\r\n loginConstraints.insets = new Insets(40, 40, 0, 0);\r\n loginPanel.add(login_usernameLabel, loginConstraints);\r\n\r\n // add password label\r\n loginConstraints.gridy = 30;\r\n loginConstraints.gridwidth = 10;\r\n loginConstraints.insets = new Insets(10, 40, 0, 0);\r\n loginPanel.add(login_passwordLabel, loginConstraints);\r\n\r\n // add username textfield\r\n loginConstraints.gridx = 20;\r\n loginConstraints.gridy = 20;\r\n loginConstraints.gridwidth = 20;\r\n loginConstraints.insets = new Insets(40, 0, 0, 35);\r\n loginPanel.add(login_usernameTextField, loginConstraints);\r\n\r\n // add password textfield\r\n loginConstraints.gridy = 30;\r\n loginConstraints.gridwidth = 10;\r\n loginConstraints.insets = new Insets(12, 0, 0, 35);\r\n loginPanel.add(login_passwordField, loginConstraints);\r\n\r\n // add login button\r\n loginConstraints.gridx = 10;\r\n loginConstraints.gridy = 40;\r\n loginConstraints.weighty = 1;\r\n loginConstraints.ipadx = 15;\r\n loginConstraints.ipady = 10;\r\n loginConstraints.gridwidth = 20;\r\n loginConstraints.anchor = GridBagConstraints.NORTH;\r\n loginConstraints.insets = new Insets(30, 0, 0, 40);\r\n loginPanel.add(loginButton, loginConstraints);\r\n\r\n }", "public LoginPage() {\n initComponents();\n }", "private void LoginAction() {\n\t\tsubmit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif (username.getText().isEmpty() || password.getPassword().length == 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"All fields have not been entered.\", \"Oops! Please Try Again\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(myController.login(username.getText(), String.valueOf(password.getPassword())))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"We login\");\n\t\t\t\t\t\tmyController.showHomePage();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The username and password do not match an account.\", \"Login Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\telse if (username.getText().equalsIgnoreCase(\"User\") && Arrays.equals(password.getPassword(), new char[]{'u','s','e','r','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as a USER!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\t\n//\t\t\t\t} else if (username.getText().equalsIgnoreCase(\"Judge\") && Arrays.equals(password.getPassword(), new char[]{'j','u','d','g','e','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as a Judge!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\n//\t\t\t\t} else if (username.getText().equalsIgnoreCase(\"Admin\") && Arrays.equals(password.getPassword(), new char[]{'a','d','m','i','n','p','w','d'})) {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged in as an Admin!\", \"Success!\", JOptionPane.PLAIN_MESSAGE);\n//\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Incorrect Login.\", \"Oops! Please Try Again\", JOptionPane.ERROR_MESSAGE);\n//\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void loginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loginButtonActionPerformed\n uL.setVisible(true);\n boolean isLoggedInNew = uL.isLoggedIn();\n boolean isLoggedIn = na.isLoggedIn();\n if (isLoggedInNew || isLoggedIn) {\n dm.messageMustLogOut();\n uL.dispose();\n }\n }", "public void run() {\n\n String userName = String.valueOf(username.getText());\n String passWord = String.valueOf(password.getText());\n /*\n Check if passwords match, if not, clear textboxes and ask user to input again\n If they do, show chalk check mark and allow submission\n */\n User user = new User();\n if(user.login(userName, passWord)) {\n sendToHome(user);\n //Finish the login activity and prevent users from going back\n finish();\n }\n else\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Error on Login\",\n Toast.LENGTH_LONG).show();\n }\n });\n }", "public void loginAlert() {\n\t\tDialog<Pair<String, String>> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Login Dialog\");\n\t\tdialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n\t\t// Set the icon (must be included in the project).\n\t\tdialog.setGraphic(new ImageView(this.getClass().getResource(\"file:src/vista/img/usuario.png\").toString()));\n\n\t\t// Set the button types.\n\t\tButtonType loginButtonType = new ButtonType(\"Login\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n\t\t// Create the username and password labels and fields.\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tTextField username = new TextField();\n\t\tusername.setPromptText(\"Username\");\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPromptText(\"Password\");\n\n\t\tgrid.add(new Label(\"Username:\"), 0, 0);\n\t\tgrid.add(username, 1, 0);\n\t\tgrid.add(new Label(\"Password:\"), 0, 1);\n\t\tgrid.add(password, 1, 1);\n\n\t\t// Enable/Disable login button depending on whether a username was entered.\n\t\tNode loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n\t\tloginButton.setDisable(true);\n\n\t\t// Do some validation (using the Java 8 lambda syntax).\n\t\tusername.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t loginButton.setDisable(newValue.trim().isEmpty());\n\t\t});\n\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// Request focus on the username field by default.\n\t\tPlatform.runLater(() -> username.requestFocus());\n\n\t\t// Convert the result to a username-password-pair when the login button is clicked.\n\t\tdialog.setResultConverter(dialogButton -> {\n\t\t if (dialogButton == loginButtonType) {\n\t\t return new Pair<>(username.getText(), password.getText());\n\t\t }\n\t\t return null;\n\t\t});\n\n\t\tOptional<Pair<String, String>> result = dialog.showAndWait();\n\n\t\tresult.ifPresent(usernamePassword -> {\n\t\t System.out.println(\"Username=\" + usernamePassword.getKey() + \", Password=\" + usernamePassword.getValue());\n\t\t});\n\t}", "private void LoginButtonActionPerformed(java.awt.event.ActionEvent evt) {\n String id = jTextField2.getText().toString();\n String password = jPasswordField1.getText();\n \n \n \n String getusername = jTextField2.getText().toString();\n String display=lms.DisplayName(getusername);\n System.out.println(display);\n switch (selected) {\n case 1:\n {\n boolean logincheck=lms.checkBorrowerLogin(id,password);\n if(logincheck){\n BorrowerHome b = new BorrowerHome(lms,display,id);\n b.setVisible(true);\n }\n break;\n }\n case 2:\n {\n boolean logincheck=lms.checkClerkLogin(id,password);\n if(logincheck){\n ClerkHome c = new ClerkHome(lms,display,id);\n c.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n case 3:\n { \n boolean logincheck=lms.checkLibrarianLogin(id,password);\n if(logincheck){\n LibrarianHome c = new LibrarianHome(lms,display,id);\n c.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n default:\n {\n boolean logincheck=lms.checkBorrowerLogin(id,password);\n if(logincheck){\n BorrowerHome b = new BorrowerHome(lms,display,id);\n b.setVisible(true);\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"Invalid login\");\n } \n break;\n }\n }\n \n// else\n// {\n// JOptionPane.showMessageDialog(null,\"Invalid login\");\n// } \n\n \n }", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "@Override\n\tpublic void onLogin(String webContent) {\n\t\tsetDisplayActionBar(true);\n\n\t\t// change to main fragment\n\t\tBundle arg = new Bundle();\n\t\targ.putString(MainFragment.KEY_CONTENT, webContent);\n\t\tif (mainFragment == null) {\n\t\t\tmainFragment = new MainFragment();\n\t\t}\n\t\tmainFragment.setArguments(arg);\n\t\t// protect from crashing\n\t\t// if the user decide to hide the ui\n\t\t// and the retrieve task return\n\t\ttry {\n\t\t\tgetFragmentManager().beginTransaction().\n\t\t\t\t\treplace(R.id.container, mainFragment).commit();\n\t\t\t// store the data in preference\n\t\t\tfinal SharedPreferences prefs =\n getSharedPreferences(PREFERENCE, Context.MODE_PRIVATE);\n\t\t\tprefs.edit().putString(KEY_E_LEARNING_DATA, webContent).\n putBoolean(KEY_LOGIN_SUCCESS, true).apply();\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t\tfinal SharedPreferences prefs =\n getSharedPreferences(PREFERENCE, Context.MODE_PRIVATE);\n\t\t\tprefs.edit().putString(KEY_E_LEARNING_DATA, webContent).\n putBoolean(KEY_LOGIN_SUCCESS, false).apply();\n\t\t\tsetDisplayActionBar(false);\n\t\t}\n\t}", "@Override\n public Object run(Pane mainPane) throws Exception {\n\n LoginModel loginModel = new LoginModel();\n LoginPresenter loginPresenter = new LoginPresenter(loginModel, new LoginView());\n\n ((VBox)(mainPane.getParent())).getChildren().remove(0);\n\n Utils.goForward(new Utils.ViewDef(\"/login.fxml\", loginPresenter), mainPane);\n\n return null;\n }", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n setLocationRelativeTo(null);\n }", "public void loginClicked(View view) {\n setContentView(R.layout.activity_scanner);\n System.out.println(\"log in clicked\");\n }", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public Login() {\n \n initComponents();\n \n this.setLocationRelativeTo(null);\n connect = new DataConnect();\n LoginError.setVisible(false);\n this.setResizable(false);\n Username.setDocument(new JtextLimit(8));\n \n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "private void signInEvt() {\n // Retrieve Details\n String email = this.view.getWelcomePanel().getSignInPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignInPanel().getPasswordText().getPassword()).trim();\n if (!email.equals(\"\") && !password.equals(\"\")) {\n if (model.getSudokuDB().checkLogin(email, password)) {\n // Set Player\n Player player = model.getSudokuDB().loadPlayer(email, password);\n if (player != null) {\n model.setPlayer(model.getSudokuDB().loadPlayer(email, password));\n // Clear Fields\n view.getWelcomePanel().getSignInPanel().clear();\n // Show Home Screen\n refreshHomePanel();\n view.getCardLayoutManager().show(view.getContent(), \"home\");\n } else {\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"An error occured during sign in, please try again.\", \"Sign In Error\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"The credentials you have provided are invalid, please enter them correctly or create a new account.\", \"Invalid Credentials\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to sign in, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "@FXML private void buttonLoginClick() {\n if(passwordField.getText().isEmpty() && mailField.getText().isEmpty() ){\n passwordField.setStyle(\"-fx-background-color: #ff471a\");\n mailField.setStyle(\"-fx-background-color: #ff471a\");\n\n showError(\"All fields are not filled\");\n\n\n }else if(passwordField.getText().isEmpty()){\n passwordField.setStyle(\"-fx-background-color: #ff471a\");\n showError(\"All fields are not filled\");\n clearField();\n\n }else if(mailField.getText().isEmpty()){\n mailField.setStyle(\"-fx-background-color: #ff471a\");\n showError(\"All fields are not filled\");\n clearField();\n }else{\n String resultat = loginManager.login(mailField.getText(),passwordField.getText());\n clearField();\n switch (resultat){\n case \"Success\":\n // connection with success\n System.out.println(\"Connection success\");\n connected();\n\n break;\n case \"Error\":\n this.showError(\"An error has occured please contact the administrator\");\n break;\n case \"Failed\":\n this.showError(\"Wrong password and/or email please check it out and retry\");\n break;\n }\n\n }\n }", "@Override\n public void handle(ActionEvent event) // Joseph\n {// Initializes the Controller Class UserLoginController\n UserLoginController loginController = new UserLoginController();\n if(usernameTextField.getText() == null || usernameTextField.getText().trim().isEmpty() \n || passwordTextField.getText() == null || passwordTextField.getText().trim().isEmpty())\n {alert2.showAndWait();}\n else\n {\n if(loginController.ValidateUser(usernameTextField.getText(), passwordTextField.getText()) == true)\n {\n int[] userID = loginController.getUser(usernameTextField.getText(), passwordTextField.getText());\n \n if (userID[0] == 1) // Call the Reporter page UI here\n {\n userRole = userID[0];\n uID = userID[1];\n stage.setScene(ReporterPage(stage));\n } \n else if (userID[0] == 2) // Call the Developer page UI here\n {\n userRole = userID[0];\n uID = userID[1];\n stage.setScene(DeveloperPage(stage));\n }\n else if (userID[0] == 3) // Call the Reviewer page UI here\n {\n userRole = userID[0];\n uID = userID[1];\n stage.setScene(ReviewerPage(stage));\n } \n else if (userID[0] == 4) // Call the Triager page UI here\n {\n userRole = userID[0];\n uID = userID[1];\n stage.setScene(TriagerPage(stage));\n } \n else // Display error message here! \n {System.out.println(\"No role found.\");} \n }\n else\n {alert.showAndWait();}\n \n usernameTextField.clear(); // Clears Username Box\n passwordTextField.clear(); // Clears Password Box\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString username = txtUsername.getText().toString();\n\t\t\t\tString password = txtPassword.getText().toString();\n\n\t\t\t\tif (username.trim().length() > 0\n\t\t\t\t\t\t&& password.trim().length() > 0) {\n\t\t\t\t\t\n\t\t\t\t \tValidateLogin validateLogin=new ValidateLogin();\n\t\t\t\t\tURL url1;\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\turl1 = new URL(\"http://localhost:8080/shopExperience/reading\");\n\t\t\t\t\t\tvalidateLogin.execute(url1);\n\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t \t\n\t\t\t\t\t if (username.equals(\"test\") && password.equals(\"test\")) {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tif (httpLoginRequest()) {\n\n\t\t\t\t\t\t\t// Creating user login session\n\t\t\t\t\t\t\t// For testing i am stroing name, email as follow\n\t\t\t\t\t\t\t// Use user real data\n\t\t\t\t\t\t\tsession.createLoginSession(\"Android Hive\",\n\t\t\t\t\t\t\t\t\t\"[email protected]\");\n\n\t\t\t\t\t\t\t// Staring MainActivity\n\t\t\t\t\t\t\tIntent i = new Intent(getApplicationContext(),\n\t\t\t\t\t\t\t\t\tMainActivity.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// username / password doesn't match\n\t\t\t\t\t\t\talert.showAlertDialog(LoginActivity.this,\n\t\t\t\t\t\t\t\t\t\"Login failed..\",\n\t\t\t\t\t\t\t\t\t\"Username/Password is incorrect\", false);\n\t\t\t\t\t\t}\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// user didn't entered username or password\n\t\t\t\t\t// Show alert asking him to enter the details\n\t\t\t\t\talert.showAlertDialog(LoginActivity.this, \"Login failed..\",\n\t\t\t\t\t\t\t\"Please enter username and password\", false);\n\t\t\t\t}\n\n\t\t\t}", "@FXML\n void doLogin(ActionEvent event) {\n try {\n loginModel.doLogin(new Login(textFieldUsername.getText(), passwordFieldPassword.getText()));\n } catch (WrongCredentialsException e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Wrong username or password\");\n alert.showAndWait();\n } catch (Exception e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Cannot load application. Goodbye!\");\n alert.showAndWait();\n Platform.exit();\n } finally {\n textFieldUsername.clear();\n passwordFieldPassword.clear();\n }\n }", "public void loadLoginUI()\r\n\t{\r\n\t\tString logoImagePath = GameConstants.PATH_UI_IMAGES + \"hawkstersvmk_100px.png\";\r\n\t\tString emailImagePath = GameConstants.PATH_UI_IMAGES + \"email.png\";\r\n\t\tString passwordImagePath = GameConstants.PATH_UI_IMAGES + \"password.png\";\r\n\t\tString loginImagePath = GameConstants.PATH_UI_IMAGES + \"login.png\";\r\n\t\t\r\n\t\tfinal LoginModule loginModule = new LoginModule();\r\n\t\t\r\n\t\tthis.removeAll();\r\n\t\t\r\n\t\t// set general properties of the main window frame\r\n\t\tthis.setPreferredSize(new Dimension(800, 600));\r\n\t\tthis.setSize(800,600);\r\n\t\tthis.setLayout(null);\r\n\t\t\r\n\t\t// logo label\r\n\t\tfinal JLabel logoLabel = new JLabel(AppletResourceLoader.getImageFromJar(logoImagePath));\r\n\t\tlogoLabel.setBounds(new Rectangle(loginOffsetX + 10, loginOffsetY + 10, 100, 128));\r\n\t\tadd(logoLabel);\r\n\t\t\r\n\t\t// Email label\r\n\t\tfinal JLabel emailLabel = new JLabel(AppletResourceLoader.getImageFromJar(emailImagePath));\r\n\t\temailLabel.setBounds(new Rectangle(loginOffsetX + 125, loginOffsetY + 100, 75, 25));\r\n\t\tadd(emailLabel);\r\n\t\t\r\n\t\t// Password label\r\n\t\tfinal JLabel passwordLabel = new JLabel(AppletResourceLoader.getImageFromJar(passwordImagePath));\r\n\t\tpasswordLabel.setBounds(new Rectangle(loginOffsetX + 125, loginOffsetY + 130, 75, 25));\r\n\t\tadd(passwordLabel);\r\n\t\t\r\n\t\t// Email text box\r\n\t\tfinal JTextField emailTextBox = new JTextField();\r\n\t\temailTextBox.setBorder(null);\r\n\t\temailTextBox.setBounds(new Rectangle(loginOffsetX + 205, loginOffsetY + 100, 150, 25));\r\n\t\tadd(emailTextBox);\r\n\t\t\r\n\t\t// Password text box\r\n\t\tfinal JPasswordField passwordTextBox = new JPasswordField();\r\n\t\tpasswordTextBox.setBorder(null);\r\n\t\tpasswordTextBox.setBounds(new Rectangle(loginOffsetX + 205, loginOffsetY + 130, 150, 25));\r\n\t\tadd(passwordTextBox);\r\n\t\t\r\n\t\t// \"Error\" label\r\n\t\tfinal JLabel errorLabel = new JLabel(\"* Invalid email/password combination *\", JLabel.CENTER);\r\n\t\terrorLabel.setForeground(Color.ORANGE);\r\n\t\terrorLabel.setBackground(new Color(0, 128, 0));\r\n\t\terrorLabel.setBounds(new Rectangle(loginOffsetX + 0, loginOffsetY + 165, 400, 25));\r\n\t\terrorLabel.setVisible(false);\r\n\t\tadd(errorLabel);\r\n\t\t\r\n\t\t// Login button\r\n\t\tfinal JButton loginButton = new JButton(AppletResourceLoader.getImageFromJar(loginImagePath));\r\n\t\tloginButton.setBackground(new Color(0, 128, 0));\r\n\t\tloginButton.setBounds(new Rectangle(loginOffsetX + 150, loginOffsetY + 200, 75, 25));\r\n\t\tloginButton.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\t// trim the email and password for whitespace upon a login attempt\r\n\t\t\t\temailTextBox.setText(emailTextBox.getText().trim());\r\n\t\t\t\tpasswordTextBox.setText(new String(passwordTextBox.getPassword()).trim());\r\n\t\t\t\t\r\n\t\t\t\tloginButton.setEnabled(false);\r\n\t\t\t\temailTextBox.setEnabled(false);\r\n\t\t\t\tpasswordTextBox.setEnabled(false);\r\n\t\t\t\t\r\n\t\t\t\t// check the login credentials\r\n\t\t\t\tif(loginModule.login(emailTextBox.getText(), new String(passwordTextBox.getPassword())))\r\n\t\t\t\t{\r\n\t\t\t\t\t// correct credentials and authentication\r\n\t\t\t\t\terrorLabel.setVisible(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// load up the Room Viewer window\r\n\t\t\t\t\tif(!loginModule.getUsername().trim().equals(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// set basic properties based upon the login result\r\n\t\t\t\t\t\troomViewerUI.setAvatarBasicData(new AStarCharacterBasicData(loginModule.getUsername(), emailTextBox.getText(), loginModule.getGender(), loginModule.getContentRating(), loginModule.getCredits()));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// close the login window\r\n\t\t\t\t\tloginLoadRoomViewerUI();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// incorrect credentials\r\n\t\t\t\t\terrorLabel.setText(loginModule.getErrorMessage());\r\n\t\t\t\t\terrorLabel.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\tloginButton.setEnabled(true);\r\n\t\t\t\t\temailTextBox.setEnabled(true);\r\n\t\t\t\t\tpasswordTextBox.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(loginButton);\r\n\t\t\r\n\t\t// set a background color\r\n\t\tsetBackground(Color.black); // black\r\n\t\t//setBackground(new Color(0,128,0)); // medium-green\r\n\t\t\r\n\t // pack the window and display it\r\n\t this.setName(\"Hawk's Virtual Magic Kingdom\");\r\n\t this.setVisible(true);\r\n\t \r\n\t repaint();\r\n\t \r\n\t roomViewerUI = this;\r\n\t}", "public Login() {\n initComponents();\n lblstar.setVisible(false); // hide the red star that indicates that the user didnt fill in a form\n lblstar1.setVisible(false);\n }", "@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public void startMain(View view) {\n Toast.makeText(LoginActivity.this, \"Login Button Clicked\", Toast.LENGTH_SHORT).show();\n }", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }" ]
[ "0.74313676", "0.73104316", "0.72258633", "0.71920466", "0.7129617", "0.7122856", "0.70889264", "0.70856005", "0.6979919", "0.6945378", "0.6940506", "0.69371796", "0.6917343", "0.6900435", "0.68642354", "0.68631047", "0.68547446", "0.68494576", "0.6839018", "0.68332666", "0.68202865", "0.68172646", "0.6815088", "0.6783228", "0.67697954", "0.67668545", "0.67570037", "0.6734688", "0.6731981", "0.67117625", "0.670923", "0.6708302", "0.6708027", "0.6699375", "0.66938984", "0.6692957", "0.66917807", "0.6690093", "0.66771805", "0.6674799", "0.667195", "0.66692865", "0.6668962", "0.6667279", "0.6656422", "0.66411966", "0.66308326", "0.6629289", "0.6628175", "0.66274947", "0.66270125", "0.6601357", "0.6591236", "0.65698284", "0.6558768", "0.6552108", "0.6540168", "0.6537345", "0.6530921", "0.6530155", "0.65286773", "0.6527525", "0.65024453", "0.649928", "0.64984965", "0.6495258", "0.6494577", "0.64927614", "0.6489492", "0.6488924", "0.6482783", "0.6481386", "0.6477308", "0.6466813", "0.6464284", "0.6462911", "0.64566296", "0.6452053", "0.6450616", "0.6444574", "0.6440643", "0.64350104", "0.6431176", "0.6424114", "0.64221346", "0.6413228", "0.6411702", "0.64105564", "0.640863", "0.6403797", "0.6395824", "0.6391634", "0.6384203", "0.6377872", "0.6372115", "0.63707674", "0.63657045", "0.63640755", "0.63589764", "0.6352319" ]
0.675211
27
Helper function to alert user that their account has been banned.
private void bannedAlert() { Alert alert = new Alert(Alert.AlertType.WARNING); alert.initOwner(_dialogStage); alert.setTitle("Account blocked"); alert.setHeaderText("Account blocked"); alert.setContentText("Your account has been blocked due" + " to too many incorrect login attempts. To " + "unblock your account, please contact an " + "administrator."); alert.showAndWait(); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void ban(String user) { sendMessage(\"/ban \" + user); }", "public abstract void banUser(String nickname, String reason);", "void ban(String user);", "public void checkBanStatus() {\n if(getBanned() != null && getBanned().after(getLast_join())) {\n Date today = new Date();\n Date banDate = getBanned();\n String timeLeft = ClymeSkyblockCore.getInstance().getTimeUtil().getTimeDifference(banDate, today);\n\n Bukkit.getScheduler().runTask(ClymeSkyblockCore.getInstance(), () -> {\n getPlayer().kickPlayer(\" \\n\" +\n ClymeSkyblockCore.getInstance().getClymeMessage().getRawPrefix() + \"\\n\" +\n \" \\n\" +\n \" \\n\" +\n \"§cYou are banned from the Server!\\n\" +\n \" \\n\" +\n \"§f§lReason: §7\" + getBanReason() + \"\\n\" +\n \"§f§lTime left: §7\" + timeLeft + \"\\n\" +\n \"\\n\\n\" +\n \"§c§oIf you think you have been wrongly punished,\\n\" +\n \"please contact our support team!\\n\" +\n \"§c§oor purchase a ban evasion in our store: §fshop.clyme.games§c§o!\" +\n \"\\n\");\n\n Bukkit.getConsoleSender().sendMessage(\"[ClymeGames] §4Player \" + getUsername() + \" tried to join but is banned!\");\n });\n }\n }", "public boolean isBanned() {\n\t\treturn banned;\n\t}", "public void ban(User other)\n {\n other.setBanned(true);\n }", "@EventHandler(priority = EventPriority.HIGHEST) // set to highest because this is most important\n\tpublic void playerBanned(PlayerLoginEvent event){\n\t\tUUID uuid = event.getPlayer().getUniqueId();\n\t\tString reason = bm.isBanned(uuid);\n\t\tif (reason.equals(\"\")) return;\n\t\tPlayer p = event.getPlayer();\n\t\tevent.setKickMessage(reason);\n\t\tevent.setResult(Result.KICK_BANNED);\n\t}", "public boolean isBanned ( ) {\n\t\treturn extract ( handle -> handle.isBanned ( ) );\n\t}", "@Override\n\tpublic boolean getBanned() {\n\t\treturn this.banned;\n\t}", "public void ban(ClientAddress clientAddress);", "public interface OnUserBannedListener {\n\n void onUserBanned(String message);\n\n\n}", "@Override\n\t@Transactional\n\tpublic void banUserByAdministrator(String username) {\n\t\tUser user = findOne(username);\n\t\tuser.setState(UserStatus.BANNED.name());\n\t\tmailService.sendMailToBannedUser(user.getEmail(), user.getUsername());\n\t\tuserRepository.saveAndFlush(user);\n\t}", "void checkBalance() {\n\t\tSystem.out.println(\"Account balance: \" + balance);\n\t}", "public static void banishingDialogBanisher (SummonedMonster BanishedMonster) {\r\n YuGiOhJi.informationDialog(\"Banishing \" + BanishedMonster.Monster.monsterName + \" due to the effect of \" + YuGiOhJi.Banisher.monsterName, \"Passive effect\");\r\n }", "public String getBanStatus() {\n return this.BanStatus;\n }", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "public void showAccountBalance(){\n balance();\n\n }", "private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }", "public CorePlayer setBanned(final boolean banned, final String reason) {\n\t\tGuard.ArgumentNotNull(banMessage, \"banMessage\");\n\t\t\n\t\tthis.banned = banned;\n\t\tthis.banMessage = reason;\n\t\t\n\t\tdb.updateField(this, \"banned\", true);\n\t\tdb.updateField(this, \"ban_message\", banMessage);\n\t\t\n\t\tif (banned && isOnline()) {\n\t\t\tString fullBanMessage = String.format(\"%s\\n%s\", Lang.youAreBanned, reason);\n\t\t\tbukkitPlayer.kickPlayer(fullBanMessage);\n\t\t}\n\t\treturn this;\n\t}", "private int handleBannedResponses(final JSONArray array) throws JSONException{\n if (array == null || array.length() <= 0){\n return 0;\n }\n \n for (int v = 0; v < array.length(); v++) {\n String[] response = array.getString(v).split(\";\");\n OfflinePlayer player = plugin.getServer().getOfflinePlayer(response[0]);\n if (player == null){\n continue;\n }\n \n if(player.isBanned() && \"u\".equals(response[1])){\n player.setBanned(false); // unbanning player\n }\n else if(!player.isBanned() && \"b\".equals(response[1])){\n player.setBanned(true); // banning player\n }\n } \n return array.length();\n }", "public void setBanStatus(String BanStatus) {\n this.BanStatus = BanStatus;\n }", "private void notifyMissedConfirmations() {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n U1467085Bid templateBid = new U1467085Bid();\n templateBid.bidderUserName = UserSession.getInstance().username;\n //find all bids from the user\n MatchSet allMyAds = js.contents(Collections.singleton(templateBid), null, SpaceUtils.TIMEOUT, Integer.MAX_VALUE);\n boolean foundAny = false;\n for (U1467085Bid i = (U1467085Bid) allMyAds.next(); i != null; i = (U1467085Bid) allMyAds.next()) {\n try {\n //check if confirmation was written for that bid\n U1467085BidConfirmation confirmationTemplate = new U1467085BidConfirmation();\n confirmationTemplate.bidId = i.id;\n U1467085BidConfirmation confirmation = (U1467085BidConfirmation) js.readIfExists(confirmationTemplate, null, SpaceUtils.TIMEOUT);\n U1467085AdBid adTemplate = new U1467085AdBid();\n adTemplate.id = i.adId;\n U1467085AdBid ad = (U1467085AdBid) js.readIfExists(adTemplate, null, SpaceUtils.TIMEOUT);\n if (confirmation != null && ad != null && ad.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n confirmation.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n i.verifySignature(UserSession.getInstance().pubKey)) {\n String message = \"Your bid of \" + String.format(\"%.2f$\", (float) i.bid / 100) + \" on item: \" + ad.title + \" has won.\";\n Platform.runLater(() -> observableNotificationList.add(message));\n foundAny = true;\n SpaceUtils.cleanAdRemove(ad, 3);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n //Avoid duplicate popup notifications but showing a single notification if any confirmations\n //were found\n if (foundAny) {\n NotificationUtil.showNotification(\"Some bids won while you were away.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void onKbsAccountLocked(@Nullable Long timeRemaining);", "public void setBannedList(boolean b){\n useList = b;\n }", "@Override\n protected void onPostExecute( AsyncTaskResult<BanUserResponse> asyncResult) {\n BattlesReportedFragment fragment = fragmentReference.get();\n Activity activity = activityReference.get();\n if (fragment == null || fragment.isRemoving()) return;\n if (activity == null || activity.isFinishing()) return;\n\n BanUserResponse result = asyncResult.getResult();\n if (asyncResult.getError() != null)\n {\n new HandleLambdaError().handleError(asyncResult.getError(), activity,fragment.mProgressContainer);\n return;\n }\n\n\n\n if (result.getAffectedRows() == 1)\n {\n //User Banned\n if (challengerOrChallenged == ChallengerOrChallenged.CHALLENGER) {\n fragment.mReportedBattlesList.get(holder.getAdapterPosition()).setChallengerBanned(true);\n }\n else if (challengerOrChallenged == ChallengerOrChallenged.CHALLENGED)\n {\n fragment.mReportedBattlesList.get(holder.getAdapterPosition()).setChallengedBanned(true);\n }\n fragment.mAdapter.notifyItemChanged(holder.getAdapterPosition());\n\n }\n else\n {\n Toast.makeText(activity, R.string.not_authorised_ignore_comment, Toast.LENGTH_LONG).show();\n }\n\n\n\n\n fragment.mProgressContainer.setVisibility(View.INVISIBLE);\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "@Override\n public void run() {\n secondsLeft--;\n Bukkit.getBanList(BanList.Type.NAME).addBan(player.getName(), bold(ChatColor.BOLD) + String.format(\"BANNED FOR %s SECONDS FOR JOHN LOGGING!\", secondsLeft), null, null);\n if (secondsLeft == 1) {\n Bukkit.getBanList(BanList.Type.NAME).pardon(player.getName());\n this.cancel();\n }\n }", "boolean blockUser(User user);", "@RequestMapping(value = \"/admin/ban/{target}\", method = RequestMethod.POST)\n @ResponseBody\n public void ban(@PathVariable String target, HttpServletRequest request) {\n logger.info(\"Delete POST request\");\n\n if (!request.isUserInRole(\"ADMIN\") || !userService.loginExists(target)) {\n String error = MessageFormat.format(\"Error trying ban user: {0}\", target);\n logger.error(error);\n return;\n }\n\n UserAdminDto userAdminDto = userService.getUserAdminDto(target);\n userAdminDto.setAccess(Access.DISALLOWED);\n userService.updateUser(userAdminDto);\n }", "Boolean accountIsActivated(Integer userId);", "public void hitBJ() {\n\t\tif (blackjack.isOkBet()) {\n\t\t\tif (blackjack.getCount(1, false, 21)) {\n\t\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).addCard(blackjack.giveCard(1), 1);\n\t\t\t\tif (blackjack.getCount(1, true, 21)) {\n\t\t\t\t\tblackjack.playerLoses();\n\t\t\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You lose!\", \"BUSTED\",\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tresetBJTable();\n\t\t\t\t}\n\t\t\t}\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You must bet something\", \"ERROR\",\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "private int banBlueChampion(String cN) {\n\t\tif (bannedChamps.contains(cN)) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (!cN.equals(\"noban\")) {\n\t\t\tURL url = getClass().getResource(\".coredata/championicons/32px/\" + cN + \"Square.png\");\n\t\t\tImageIcon champIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\t\tJLabel champLabel = new JLabel();\n\t\t\tJLabel champName = new JLabel(cN);\n\t\t\tchampName.setBackground(Color.BLACK);\n\t\t\tchampName.setForeground(Color.WHITE);\n\t\t\tchampLabel.setIcon(champIcon);\n\t\t\tbottomPanel.add(champLabel, new Integer(3));\n\t\t\tint i = blueBans.size();\n\t\t\tchampLabel.setBounds(29, 32 + 36*i, 32, 32);\n\t\t\tbottomPanel.add(champName, new Integer(3));\n\t\t\tchampName.setBounds(64, 24 + 36*i, 150, 50);\n\t\t\tblueBans.add(cN);\n\t\t\tbannedChamps.add(cN);\n\t\t}\n\t\tnumBlueBans += 1;\n\t\treturn 0;\n\t}", "@Override\n public void banPlayer(UUID uuid, String reason, String source) {\n String uuidString = uuid.toString();\n if (getServer().getBanList(BanList.Type.NAME).addBan(uuidString, reason, null, source) == null) {\n Logger logger = getLogger();\n logger.warning(\"No player to ban with UUID \" + uuidString);\n return;\n }\n\n // Notify others of the ban\n OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(uuid);\n getServer().broadcast(source + \" banned \" + offlinePlayer.getName() + \" for \" + reason, \"matrix.ban.notify\");\n\n // If online, kick now\n Player player = offlinePlayer.getPlayer();\n if (player != null) {\n getServer().getScheduler().runTask(this, new Runnable() {\n public void run() {\n player.kickPlayer(\"You have been banned: \" + reason);\n }\n });\n }\n }", "@Override\n\tpublic String getBanMessage() {\n\t\treturn this.banMessage;\n\t}", "@Test\r\n\tpublic void testBanAndUnbanUser() {\r\n\t\t// Administrator: Logged user, user to ban, expected exception.\r\n\t\tfinal Object[][] testingData = {\r\n\t\t\t{\r\n\t\t\t\t\"administrator1\", \"user3\", null\r\n\t\t\t}, {\r\n\t\t\t\t\"administrator1\", \"user1\", IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t\"user1\", \"user3\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++)\r\n\t\t\tthis.testSaveFromCreateAdminTemplate((String) testingData[i][0], (String) testingData[i][1], (Class<?>) testingData[i][2]);\r\n\t}", "@Override\n\t@Transactional\n\tpublic void updateUserWithBan(User user) {\n\t\tuserRepository.saveAndFlush(user);\n\t\tif (user.getUserRating() < User.MINIMAL_RATING_FOR_ACTIVE_USER) {\n\t\t\tmailService.sendMailToBannedUser(user.getEmail(), user.getUsername());\n\t\t}\n\t}", "public String getBlocking_account() {\n return blocking_account;\n }", "private void doCheckBalance() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n ui.displayMessage(\"Balance: \" + userAccount.getBalance());\n break;\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }", "public static void addBannedHeader(String header) {\n bannedHeaders.add(header);\n }", "public static String checkBanned(String ip) throws UnknownHostException {\n String query = \"SELECT * FROM `\" + mysql_db + \"`.`banlist`\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n ResultSet r = pst.executeQuery();\n while (r.next()) {\n String decIP = r.getString(\"ip\");\n if (decIP.contains(\"*\")) {\n if (Functions.inRange(ip, decIP)) {\n return decIP;\n }\n } else if (decIP.equals(ip)) {\n return decIP;\n }\n }\n return null;\n } catch (SQLException e) {\n\n logMessage(LOGLEVEL_IMPORTANT, \"Could not check ban.\");\n return null;\n }\n }", "public void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}", "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "private void onUnblockButtonClicked(ActionEvent actionEvent) {\n for (User user : builder.getBlockedUsers()) {\n if (selectedButton.getId().equals(\"user_blocked_\" + user.getId())) {\n builder.removeBlockedUser(user);\n this.blockedUsersLV.getItems().remove(user);\n ResourceManager.saveBlockedUsers(builder.getPersonalUser().getName(), user, false);\n break;\n }\n }\n }", "@Override\n public void gotUsersError(String message) {\n disableButton.setEnabled(true);\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void betBJ(boolean guest) {\n\t\tdouble bet = ((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).getBet();\n\t\tif (!blackjack.isOkBet() && blackjack.canBet(bet)) {\n\n\t\t\tblackjack.setOkBet(true);\n\t\t\tif (guest) {\n\t\t\t\tblackjack.addBet(bet);\n\t\t\t\tstartBJ();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tBet aposta = new Bet(bet, \"blackJack\");\n\t\t\ttry {\n\t\t\t\tmanager.getServer().enviarTrama(new Betting(aposta));\n\t\t\t\tSegment s = manager.getServer().obtenirTrama();\n\t\t\t\tif (!((Check) s).isOk())\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet refused\");\n\t\t\t\telse {\n\t\t\t\t\tnew Dialeg().setWarningText(\"Bet accepted\");\n\t\t\t\t\tblackjack.addBet(bet);\n\t\t\t\t\t((BlackjackView)manager.getPanel(Constants.BJ_VIEW_NAME)).updateCash(bet);\n\t\t\t\t\tstartBJ();\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME),\n\t\t\t\t\t\"There has been an error with the bet:\\n The minimum bet is 10, or\\n You have not enough funds\",\n\t\t\t\t\t\"ERROR\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t}", "public boolean isStudentBanned(long reservationTime, long currentTime){\n return (currentTime - reservationTime > 5*60000);\n }", "@Override\n public void noticeUserAccount(String userId, boolean includePassword) throws Exception {\n\n }", "public void alertUser(int status){\r\n\r\n }", "@Override\r\n\tpublic boolean isBlocked() {\r\n\t\tif (this.status.equals(Status.BLOCKED)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isBlocked(Intent intent)\n {\n String newState = intent.getStringExtra(PortalDetectorService.EXTRA_PORTAL_STATE);\n \n return !(State.NO_PORTAL.equals(newState) || State.SIGNED_IN.equals(newState));\n }", "void blockedAccount(File file, int accountID) throws ServiceException;", "public static void banishingDialogBigBanisher (SummonedMonster BanishedMonster) {\r\n YuGiOhJi.informationDialog(\"Banishing \" + BanishedMonster.Monster.monsterName + \" due to the effect of \" + YuGiOhJi.BigBanisher.monsterName, \"Passive effect\");\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic boolean disapproveBenficiary(BigInteger accountNumber) throws IBSExceptions {\n\t\tboolean result = false;\r\n\t\tif (bankRepresentativeDAO.decliningBeneficiaryDetails(accountNumber)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n protected AsyncTaskResult<BanUserResponse> doInBackground(BanUserRequest... params) {\n LambdaInvokerFactory factory = new LambdaInvokerFactory(\n activityReference.get().getApplicationContext(),\n Regions.US_EAST_1,\n FacebookLoginFragment.getCredentialsProvider(activityReference.get()));\n final LambdaFunctionsInterface myInterface = factory.build(LambdaFunctionsInterface.class);\n try {\n BanUserResponse response = myInterface.BanUserAdmin(params[0]);\n return new AsyncTaskResult<>(response);\n } catch (LambdaFunctionException lfe) {\n Log.i(\"ERROR\", lfe.getDetails());\n Log.i(\"ERROR\", lfe.getStackTrace().toString());\n lfe.printStackTrace();\n\n return new AsyncTaskResult<>(lfe);\n } catch (AmazonServiceException ase) {\n // invalid credentials, incorrect AWS signature, etc\n Log.i(\"ERROR\", ase.getErrorMessage());\n return new AsyncTaskResult<>(ase);\n } catch (AmazonClientException ace) {\n // Network issue\n Log.i(\"ERROR\", ace.toString());\n return new AsyncTaskResult<>(ace);\n }\n }", "private void alertForgetPwdMsg() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.MyTheme);\n builder.setMessage(R.string.alert_user_is_locked)\n .setCancelable(false)\n .setPositiveButton(R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n onForgetPwd();\n\n }\n })\n .setNegativeButton(R.string.cancel,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "void banDevice(Integer deviceId);", "private static boolean isBannedWord(String word, String[] banned) {\n\t\tfor (int i = 0; i < banned.length; i++) {\n\t\t\tif (word.equals(banned[i])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "boolean activateAccount(Integer userId);", "public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "private void doBankTurn() {\n // Wait 1 second so player can understand what is happening\n try\n {\n Thread.sleep(1000);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n if (round_score + game.getBank_total() >= game.getWinning_score() || round_score >= 20) {\n bankUserScore();\n }\n else\n rollDie();\n }", "public static void addBan(String ip, String reason, String sender) {\n String query = \"INSERT INTO `\" + mysql_db + \"`.`banlist` VALUES (?, ?) ON DUPLICATE KEY UPDATE `reason` = ?\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n pst.setString(1, ip);\n pst.setString(2, reason);\n pst.setString(3, reason);\n if (pst.executeUpdate() == 1) {\n bot.blockingIRCMessage(sender, \"Added \" + ip + \" to banlist.\");\n } else {\n bot.blockingIRCMessage(sender, \"That IP address is already banned!\");\n }\n } catch (SQLException e) {\n\n logMessage(LOGLEVEL_IMPORTANT, \"Could not add ban to banlist\");\n }\n }", "Boolean isAccountLocked(String username);", "public void setBuzzInPeriod() {\n\n passButton.setVisible(true);\n teamLabel.setText(\"\");\n\n if (teamHasAnswered.get(teamIndex)) {\n AppearanceSettings.setEnabled(false, submitAnswerButton, answerField, passButton);\n announcementsLabel.setText(\"It's time to buzz in! But you've already had your chance..\");\n } else {\n announcementsLabel.setText(\"Buzz in to answer the question!\");\n passButton.setEnabled(true);\n AppearanceSettings.setEnabled(false, submitAnswerButton, answerField);\n }\n }", "public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //owner.acceptBid(thing1, bid);\n //assertTrue(borrower.notifiedOfAcceptedBid(bid));\n\n assertTrue(false);\n }", "boolean isAccountNonExpired();", "boolean isAccountNonExpired();", "public void blockedAndBlock(){\n\t\tif(player.isAttacking() && random(BASE_BLOCK_PERCENTAJE + ((double)difficulty)/10)){\n\t\t\tplayer.hasBeenBlocked();\n\t\t\tthis.setCurrentAnimation(\"blocked and prepare block_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"blocked and prepare block\", 0, false);\n\t\t} else{\n\t\t\tthis.setCurrentAnimation(\"attack end blocked_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"attack end blocked\", 0, false);\n\t\t}\n\t}", "boolean isAccountNonLocked();", "boolean isAccountNonLocked();", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"chat/users/{id}/blacklist/{blacklisted_user_id}\")\n Call<Void> addChatMessageBlacklist(\n @retrofit2.http.Path(\"blacklisted_user_id\") Integer blacklistedUserId, @retrofit2.http.Path(\"id\") String id\n );", "public BigDecimal borrow(Account acct) {\n\t\tBigDecimal amt = maxLoans.subtract(acct.loans);\n\t\tif (amt.compareTo(BigDecimal.ZERO) < 0)\n\t\t\tamt = BigDecimal.ZERO;\n\t\treturn amt;\n\t}", "@Override\n\tpublic void checkBalance() {\n\t\tSystem.out.println(\"balance is checked\");\n\t}", "public void warn(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}", "public void warningCoins(int coins);", "@Override\n\t@Transactional\n\tpublic void unbanUserByAdministrator(String username) {\n\t\tUser user = findOne(username);\n\t\tuser.setState(UserStatus.ACTIVE.name());\n\t\tif (user.getUserRating() <= RATING_TO_BAN_USER) {\n\t\t\tuser.setUserRating(User.MINIMAL_RATING_FOR_ACTIVE_USER);\n\t\t}\n\t\tuserRepository.saveAndFlush(user);\n\t}", "private int banPurpleChampion(String cN) {\n\t\tif (bannedChamps.contains(cN)) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (!cN.equals(\"noban\")) {\n\t\t\tURL url = getClass().getResource(\".coredata/championicons/32px/\" + cN + \"Square.png\");\n\t\t\tImageIcon champIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\t\tJLabel champLabel = new JLabel();\n\t\t\tchampLabel.setIcon(champIcon);\n\t\t\tbottomPanel.add(champLabel, new Integer(3));\n\t\t\tint i = purpleBans.size();\n\t\t\tchampLabel.setBounds(1200, 32 + 36*i, 32, 32);\n\t\t\tJLabel champName = new JLabel(cN, SwingConstants.RIGHT);\n\t\t\tchampName.setBackground(Color.BLACK);\n\t\t\tchampName.setForeground(Color.WHITE);\n\t\t\tbottomPanel.add(champName, new Integer(3));\n\t\t\tchampName.setBounds(1045, 24 + 36*i, 150, 50);\n\t\t\tpurpleBans.add(cN);\n\t\t\tbannedChamps.add(cN);\n\t\t}\n\t\tnumPurpleBans += 1;\n\t\treturn 0;\n\t}", "private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "@When(\"^user clicks on My Account button$\")\r\n public void user_clicks_on_My_Account_button() throws Throwable {\n throw new PendingException();\r\n }", "public void onSignupFailed() {\n\n _signupButton.setEnabled(true);\n }", "@Test\r\n\tpublic void driverRatioBanned() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateRatioBanned((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}", "public void buttonClick(ClickEvent event) {\n\t\t\t\t\t\n\t\t\t\t\tif(manageButton.getCaption().equals(\"Block\")) {\n\t\t\t\t\t\tDbUtil.blockUser(uid.getValue());\n\t\t\t\t\t\tNotification.show(\"User blocked!\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tDbUtil.unblockUser(uid.getValue());\n\t\t\t\t\t\tNotification.show(\"User unblocked!\");\n\t\t\t\t\t}\n\t\t\t\t\tPage.getCurrent().reload();\n\t\t\t\t\t\n\t\t\t\t}", "public void warn(CommandSender sender, String message) {\n\t\tsender.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}", "@Override\n\tpublic void sendLetterOfBannedUser(String message, String username) {\n\t\tNotification notification = new Notification();\n\t\tnotification.setDate(new Date());\n\t\tnotification.setType(NotificationType.MESSAGE.name());\n\t\tnotification.setUser(userRepository.getUserByUserRoleAdmin());\n\t\tnotification.setUserSender(userRepository.findByUsername(username));\n\t\tnotification.setMessage(message);\n\t\tnotifyRepo.saveAndFlush(notification);\n\t\tmailService.sendMailByBannedUserToAdministrator(username, message);\n\t}", "public void setDenied() {\r\n\t\tstatus = \"Denied\";\r\n\t}", "boolean removeBankAccount(String IBAN, Klant klant) throws SessionExpiredException, IllegalArgumentException, RemoteException;", "int getBattlesWon();", "public void onNoAccountsFound();", "@Override\n public boolean isBoatOnTheLeftBank() {\n return false;\n }", "void displayWhiteboardTakenError(){\n createWhiteboard.setText(\"Whiteboard ID already taken. Select it from below or choose a new integer.\");\n\n }", "public void succeededWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Withdrawal success.\");\n\t}", "public double getAvailableBalance(int userAccountNumber) {\r\n return getAccount(userAccountNumber).getAvailableBalance();\r\n }", "public void sendRouletteBet() {\n\t\tif (rouletteExecutor.getAposta() == null)\n\t\t\tnew Dialeg().setWarningText(\"You must bet!\");\n\t\telse {\n\t\t\tif (bool.compareAndSet(true, false)) {\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(rouletteExecutor.getAposta()));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//// e.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnew Dialeg().setWarningText(\"You can't bet to the same number\");\n\t\t\t}\n\t\t}\n\t}", "public static void INTTransfer_Insufficientbalance() {\n\n try {\n clickHarmburgerMenuBTN();\n clickTransferBTN();\n clickIntertnational();\n internationalFundTransfer();\n waitToElement(\"//android.widget.TextView[@text='Insufficient balance.']\");\n\n MobileElement insufficientMSG = driver.findElement(By.xpath(\"//android.widget.TextView[@text='Insufficient balance.']\"));\n verifyElementIsDisplayed(insufficientMSG, \"Insufficient Balance\");\n clickCancelButton();\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"unable to verify the message\" + e.getMessage());\n }\n\n\n }", "private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }", "public void warningPermit();", "public void checkForAlerts() {\n }", "private void signalInvalidUser() {\r\n userText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The username was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }", "@ReactMethod\n public void AlertIfWhitelist(String title, String message, String dontShowAgainText, String positiveText, String negativeText) {\n final SharedPreferences settings = this.getCurrentActivity().getSharedPreferences(\"Whitelist\",Context.MODE_PRIVATE);\n final String saveIfSkip = \"skipWhitelistMessage\";\n boolean skipMessage = settings.getBoolean(saveIfSkip, false);\n // Show dialog only when \"do not show again\" hasn't been enabled yet\n if (!skipMessage) {\n final SharedPreferences.Editor editor = settings.edit();\n // Check if intent of the android whitelist apps activity is callable\n for (Intent intent : AUTO_START_INTENTS){\n if (isCallable(intent)) {\n // Prepare dialog\n final AppCompatCheckBox dontShowAgain = new AppCompatCheckBox(this.getCurrentActivity());\n dontShowAgain.setText(dontShowAgainText);\n dontShowAgain.setLeft(20);\n dontShowAgain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n editor.putBoolean(saveIfSkip, isChecked);\n editor.apply();\n }\n });\n\n final RelativeLayout layout = new RelativeLayout(this.getCurrentActivity());\n layout.setPadding(50,50,0,0);\n layout.addView(dontShowAgain);\n\n new AlertDialog.Builder(this.getCurrentActivity())\n .setTitle(title)\n .setMessage(message)\n .setView(layout)\n .setPositiveButton(positiveText, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n try {\n for (Intent intent : AUTO_START_INTENTS)\n if (isCallable(intent)) {\n editor.putBoolean(saveIfSkip, true);\n editor.apply();\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n reactContext.startActivity(intent);\n break;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(negativeText, null)\n .show();\n break;\n }\n }\n }\n }" ]
[ "0.70832455", "0.6990375", "0.6934938", "0.69156504", "0.676308", "0.640059", "0.62839586", "0.62398255", "0.61580515", "0.61038065", "0.5903379", "0.56682616", "0.56134564", "0.5599301", "0.5552614", "0.5464765", "0.5433375", "0.54326403", "0.54124695", "0.5409802", "0.540856", "0.54071987", "0.54068667", "0.5297037", "0.52826667", "0.52766514", "0.52376604", "0.5231102", "0.5228188", "0.5219953", "0.52041906", "0.5200264", "0.51732814", "0.5147349", "0.5139615", "0.5126777", "0.5107391", "0.50912625", "0.5091083", "0.50868654", "0.50743043", "0.50730294", "0.50715697", "0.50660014", "0.50637853", "0.505948", "0.50545835", "0.5033634", "0.5033144", "0.50112617", "0.50028306", "0.49983177", "0.4997849", "0.49885297", "0.49829054", "0.49747673", "0.4970014", "0.4963188", "0.49594173", "0.49420547", "0.4927439", "0.49217147", "0.49183285", "0.49136856", "0.4910372", "0.49055278", "0.49055278", "0.48952046", "0.4880224", "0.4880224", "0.48524338", "0.48505405", "0.48436496", "0.48364654", "0.48343375", "0.48338988", "0.48308223", "0.47986326", "0.4774363", "0.47719494", "0.47700155", "0.47693464", "0.47609317", "0.47569233", "0.47492048", "0.4746015", "0.47435796", "0.47429386", "0.47378585", "0.47360831", "0.47310573", "0.47255093", "0.47254446", "0.47240058", "0.47172043", "0.4712851", "0.47073525", "0.47039446", "0.47017938", "0.4700779" ]
0.78816867
0
Validates the user input in the text fields. If any are invalid, opens an alert box describing the invalid fields.
private boolean isInputValid() { String errorMessage = ""; //for now just check they actually typed something if ((userField.getText() == null) || userField.getText().isEmpty()) { errorMessage += "No username entered\n"; } if ((pwField.getText() == null) || pwField.getText().isEmpty()) { errorMessage += "No password entered\n"; } //no error message means success / good input if (errorMessage.isEmpty()) { return true; } else { // Show the error message if bad data Alert alert = new Alert(Alert.AlertType.ERROR); alert.initOwner(_dialogStage); alert.setTitle("Invalid Fields"); alert.setHeaderText("Please correct invalid fields"); alert.setContentText(errorMessage); alert.showAndWait(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }", "public void validateInputs(ActionEvent actionEvent) {\n //retrieve the inputs\n try {\n productNameInput = productNameField.getText();\n if (productNameInput.equals(\"\")) {\n throw new myExceptions(\"Product Name: Enter a string.\\n\");\n }\n }\n catch (myExceptions ex) {\n errorMessageContainer += ex.getMessage();\n isInputValid = false;\n }\n\n try {\n productPriceInput = Double.parseDouble(productPriceField.getText());\n if (productPriceField.getText().equals(\"\")) {\n throw new myExceptions(\"Price field: enter a value..\\n\");\n }\n if (productPriceInput <= 0) {\n throw new myExceptions(\"Price field: enter a value greater than 0.\\n\");\n }\n }\n catch (myExceptions priceValidation) {\n errorMessageContainer += priceValidation.getMessage();\n isInputValid = false;\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Price field: enter a positive number. Your input can contain decimals. \\n\";\n isInputValid = false;\n\n }\n\n try {\n maxInventoryLevelInput = Integer.parseInt(maxInventoryField.getText());\n minInventoryLevelInput = Integer.parseInt(minInventoryField.getText());\n if (maxInventoryField.getText().equals(\"\") || minInventoryField.getText().equals(\"\") || maxInventoryLevelInput <= 0 || minInventoryLevelInput <= 0) {\n throw new myExceptions(\"Min and Max fields: enter values for the minimum and maximum inventory fields.\\n\");\n }\n if (maxInventoryLevelInput < minInventoryLevelInput) {\n throw new myExceptions(\"Max inventory MUST be larger than the minimum inventory.\\n\");\n }\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Min and Max fields: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions minMaxValidation) {\n errorMessageContainer += minMaxValidation.getMessage();\n isInputValid = false;\n\n }\n\n try {\n productInventoryLevel = Integer.parseInt(inventoryLevelField.getText());\n if (inventoryLevelField.getText().equals(\"\")) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel <= 0) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel > maxInventoryLevelInput || productInventoryLevel < minInventoryLevelInput) {\n throw new myExceptions(\"Inventory level: value must be between max and min.\\n\");\n }\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Inventory level: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions stockValidation) {\n errorMessageContainer += stockValidation.getMessage();\n isInputValid = false;\n\n }\n\n errorMessageLabel.setText(errorMessageContainer);\n errorMessageContainer = \"\";\n\n }", "private void ValidateEditTextFields() {\n\tfor (int i = 0; i < etArray.length; i++) {\n\t if (etArray[i].getText().toString().trim().length() <= 0) {\n\t\tvalidCustomer = false;\n\t\tetArray[i].setError(\"Blank Field\");\n\t }\n\t}\n\n\tif (etPhoneNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etPhoneNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (etEmergencyNumber.getText().length() != 11) {\n\t validCustomer = false;\n\t etEmergencyNumber.setError(\"Invalid Phone Number\");\n\t}\n\n\tif (calendarDob == null) {\n\t validCustomer = false;\n\t}\n }", "protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug 16256: important not to treat \"\" (blank error) the same as null\r\n\t\t// (no error)\r\n\t\tsetErrorMessage(errorMessage);\r\n\t}", "private void checkEditTexts() {\n\n if (!validateEmail(Objects.requireNonNull(edInputEmail.getText()).toString().trim())) {\n Toasty.error(Objects.requireNonNull(getActivity()), getString(R.string.error_invalid_email), Toasty.LENGTH_SHORT, true).show();\n } else {\n\n if (Objects.requireNonNull(edInputPass.getText()).toString().trim().equalsIgnoreCase(\"\")) {\n\n Toasty.error(Objects.requireNonNull(getActivity()), getString(R.string.error_empty_password), Toasty.LENGTH_SHORT, true).show();\n\n } else {\n sendLoginRequest(edInputEmail.getText().toString(), edInputPass.getText().toString());\n CustomProgressBar.showProgress(loadingLayout);\n }\n }\n }", "private boolean checkValidity() {\n if(txtSupplierCode.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Code!!\", \"EMPTY SUPPLIER CODE\", JOptionPane.ERROR_MESSAGE);\n txtSupplierCode.setBackground(Color.RED);\n return false;\n }\n if(txtSupplierName.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Please Enter the Supplier Name!!\", \"EMPTY SUPPLIER NAME\", JOptionPane.ERROR_MESSAGE);\n txtSupplierName.setBackground(Color.RED);\n return false;\n }\n return true;\n }", "private boolean validateInputInfo(){\n\n //Get user input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Check to make sure no boxes were left empty\n if(firstName.isEmpty() || lastName.isEmpty() || email.isEmpty() || phone.isEmpty()){\n Toast.makeText(this, \"You must fill all fields before continuing!\", Toast.LENGTH_LONG).show();\n return false;\n }\n //Check to see if phone number is valid\n else if(!(phone.length() >= 10)){\n Toast.makeText(this, \"Make sure to input a valid 10 digit phone number!\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n return true;\n }", "public boolean validation(){\n String Venuename= venuename.getText().toString();\n String Address= address.getText().toString();\n String Details= details.getText().toString();\n String Venueimage= venueimage.getText().toString();\n if(Venuename.isEmpty()){\n venuename.setError(\"Please enter the item name\");\n venuename.requestFocus();\n return false;\n }\n if(Address.isEmpty()){\n address.setError(\"Please enter the item name\");\n address.requestFocus();\n return false;\n }\n if(Details.isEmpty()){\n details.setError(\"Please enter the item name\");\n details.requestFocus();\n return false;\n }\n if(Venueimage.isEmpty()){\n venueimage.setError(\"Please Select the image first\");\n return false;\n }\n\n\n return true;\n }", "private boolean validEditInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameEditField.getText().equals(\"\") || abbrevationEditField.getText().equals(\"\")\n || chooseCityBox.getValue() == null || chooseLeagueBox.getValue() == null\n || chooseLeagueTeamBox.getValue() == null) {\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationEditField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameEditField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }", "private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (idLabel.getText() == null || idLabel.getText().length() == 0) {\r\n errorMessage += \"No valid ID number!\\n\"; \r\n } else {\r\n // try to parse the postal code into an int.\r\n try {\r\n Integer.parseInt(idLabel.getText());\r\n } catch (NumberFormatException e) {\r\n errorMessage += \"No valid ID number (must be an integer)!\\n\"; \r\n }\r\n }\r\n \r\n if (firstNameField.getText() == null || firstNameField.getText().length() == 0) {\r\n errorMessage += \"No valid first name!\\n\"; \r\n }\r\n if (lastNameField.getText() == null || lastNameField.getText().length() == 0) {\r\n errorMessage += \"No valid last name!\\n\"; \r\n }\r\n if (industryField.getText() == null || industryField.getText().length() == 0) {\r\n errorMessage += \"No valid industry!\\n\"; \r\n }\r\n\r\n if (workTypeField.getText() == null || workTypeField.getText().length() == 0) {\r\n errorMessage += \"No valid work type!\\n\"; \r\n }\r\n\r\n if (addressField.getText() == null || addressField.getText().length() == 0) {\r\n errorMessage += \"No valid address!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n // Show the error message.\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.initOwner(dialogStage);\r\n alert.setTitle(\"Invalid Fields\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.setContentText(errorMessage);\r\n\r\n alert.showAndWait();\r\n\r\n return false;\r\n }\r\n }", "private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ID.getText() == null || ID.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\";\n System.out.println(\"fl\");\n }\n if (password.getText() == null || password.getText().length() == 0) {\n errorMessage += \"No valid password!\\n\"; \n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Dialogs.create()\n .title(\"Invalid Fields\")\n .masthead(\"Please correct invalid fields\")\n .message(errorMessage)\n .showError();\n return false;\n }\n }", "private boolean validateUserInputs() {\n ArrayList<String> errors = new ArrayList();\n \n if (this.view.getContent().equals(\"\")) {\n errors.add(\"\\t - Enter a comment\");\n }\n \n if (errors.size() > 0) {\n String errorMsg = \"Unable to save new Asset.\\nDetails:\";\n for (String error : errors) {\n errorMsg += \"\\n\" + error;\n }\n JOptionPane.showMessageDialog(this.view, errorMsg, \"Unable to Save\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n }\n return true;\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "private boolean validateInput() {\n String departmentInput = mDepartmentField.getText().toString();\n String emailInput = mEmailField.getText().toString();\n String passwordInput = mPasswordField.getText().toString();\n\n if (departmentInput.isEmpty()) {\n mDepartmentField.setError(\"Please enter your department number\");\n mDepartmentField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n\n if (emailInput.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(emailInput).matches()) {\n mEmailField.setError(\"Please enter a valid email address\");\n mEmailField.requestFocus();\n return false;\n } else {\n mEmailField.setError(null);\n }\n\n if (passwordInput.isEmpty()) {\n mPasswordField.setError(\"Please enter your password\");\n mPasswordField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n return true;\n }", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "boolean validateInput() {\n if (etFullname.getText().toString().equals(\"\")) {\n etFullname.setError(\"Please Enter Full Name\");\n return false;\n }\n if (etId.getText().toString().equals(\"\")) {\n etId.setError(\"Please Enter ID\");\n return false;\n }\n if (etEmail.getText().toString().equals(\"\")) {\n etEmail.setError(\"Please Enter Email\");\n return false;\n }\n if (etHall.getText().toString().equals(\"\")) {\n etHall.setError(\"Please Enter Hall Name\");\n return false;\n }\n if (etAge.getText().toString().equals(\"\")) {\n etAge.setError(\"Please Enter Age\");\n return false;\n }\n if (etPhone.getText().toString().equals(\"\")) {\n etPhone.setError(\"Please Enter Contact Number\");\n return false;\n }\n if (etPassword.getText().toString().equals(\"\")) {\n etPassword.setError(\"Please Enter Password\");\n return false;\n }\n\n // checking the proper email format\n if (!isEmailValid(etEmail.getText().toString())) {\n etEmail.setError(\"Please Enter Valid Email\");\n return false;\n }\n\n // checking minimum password Length\n if (etPassword.getText().length() < MIN_PASSWORD_LENGTH) {\n etPassword.setError(\"Password Length must be more than \" + MIN_PASSWORD_LENGTH + \"characters\");\n return false;\n }\n\n\n return true;\n }", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n// Show the error message.\r\n Dialogs.create()\r\n .title(\"Invalid Fields\")\r\n .masthead(\"Please correct invalid fields\")\r\n .message(errorMessage)\r\n .showError();\r\n return false;\r\n }\r\n }", "protected boolean validateInputs() {\n if (KEY_EMPTY.equals(firstName)) {\n etFirstName.setError(\"First Name cannot be empty\");\n etFirstName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(lastName)) {\n etLastName.setError(\"Last Name cannot be empty\");\n etLastName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(username)) {\n etUsername.setError(\"Username cannot be empty\");\n etUsername.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(email)) {\n etEmail.setError(\"Email cannot be empty\");\n etEmail.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(password)) {\n etPassword.setError(\"Password cannot be empty\");\n etPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Confirm Password cannot be empty\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (!password.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Password and Confirm Password does not match\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(major)) {\n etMajor.setError(\"Major cannot be empty\");\n etMajor.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(university)) {\n etUniversity.setError(\"university cannot be empty\");\n etUniversity.requestFocus();\n return false;\n }\n\n\n\n if(!isStudent && !isTutor){\n //Show a toast or some kind of error\n Toast toast = Toast.makeText(this, \"message\", Toast.LENGTH_SHORT);\n toast.setText(\"please check the account type\");\n toast.setGravity(Gravity.CENTER, 0, 0);\n //other setters\n toast.show();\n return false;\n }\n\n\n return true;\n }", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif(userNameField.getText() == null || userNameField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a felhasználó név mező!\\n\";\n\t\t}\n\t\tif(passwordField.getText() == null || passwordField.getText().length() == 0) {\n\t\t\terrorMessage += \"Üres a jelszó mező!\";\n\t\t}\n\t\t\n\t\tif(errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// show the error message\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Érvénytelen mezők\");\n\t\t\talert.setHeaderText(\"Kérlek töltsd ki az összes mezőt!\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\t\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }", "public boolean validateForm() {\r\n\t\tint validNum;\r\n\t\tdouble validDouble;\r\n\t\tString lengthVal = lengthInput.getText();\r\n\t\tString widthVal = widthInput.getText();\r\n\t\tString minDurationVal = minDurationInput.getText();\r\n\t\tString maxDurationVal = maxDurationInput.getText();\r\n\t\tString evPercentVal = evPercentInput.getText();\r\n\t\tString disabilityPercentVal = disabilityPercentInput.getText();\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.1 - Ensure all inputs are numbers\r\n\t\t */\r\n\t\t\r\n\t\t// Try to parse length as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Length must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Width must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Min Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Max Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"EV % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Disability % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.2 - Ensure all needed inputs are non-zero\r\n\t\t */\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Length must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Width must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Min Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Max Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"EV % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.3 - Ensure Max Duration can't be smaller than Min Duration\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > Integer.parseInt(maxDurationVal)) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be less than Min Duration\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.4 - Ensure values aren't too large for the system to handle\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(lengthVal) > 15) {\r\n\t\t\tsetErrorMessage(\"Carpark length can't be greater than 15 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (Integer.parseInt(widthVal) > 25) {\r\n\t\t\tsetErrorMessage(\"Carpark width can't be greater than 25 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(maxDurationVal) > 300) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be greater than 300\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(evPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"EV % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(disabilityPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private boolean isInputValid(){\n\t\tString errorMessage = \"\";\n\t\tif((nameField.getText() == null) || (nameField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid product name!\\n\";\n\t\t}\n\t\tif((amountAvailableField.getText() == null) || (amountAvailableField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount available value!\\n\";\n\t\t}\n\t\tif((amountSoldField.getText() == null) || (amountSoldField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount sold value!\\n\";\n\t\t}\n\t\tif((priceEachField.getText() == null) || (priceEachField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price for each!\\n\";\n\t\t}\n\t\tif((priceMakeField.getText() == null) || (priceMakeField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price to make the product!\\n\";\n\t\t}\n\t\tif(errorMessage.length() == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (nameField.getText() == null || nameField.getText().length() == 0) {\r\n errorMessage += \"请输入直播名!\\n\";\r\n }\r\n if (urlField.getText() == null || urlField.getText().length() == 0) {\r\n errorMessage += \"请输入直播流!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"输入错误\");\r\n alert.setContentText(errorMessage);\r\n return false;\r\n }\r\n }", "protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}", "private boolean validateInputs() {\n if (KEY_EMPTY.equals(tenchuxe)) {\n etTenChuXe.setError(\"Vui lòng điền Tên chủ xe\");\n etTenChuXe.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(sdt)) {\n etSDT.setError(\"Vui lòng điền Số điện thoại\");\n etSDT.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(mota)) {\n edMoTa.setError(\"Vui lòng điền Mô tả xe\");\n edMoTa.requestFocus();\n return false;\n\n }\n if (KEY_EMPTY.equals(biensoxe)) {\n etBienSoXe.setError(\"Vui lòng điền Biển số xe\");\n etBienSoXe.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(passwordtx)) {\n etPasswordtx.setError(\"Vui lòng điền Mật khẩu\");\n etPasswordtx.requestFocus();\n return false;\n }\n\n if (KEY_EMPTY.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Vui lòng điền Xác nhận mật khẩu\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (!passwordtx.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Xác nhận mật khẩu sai !\");\n etConfirmPassword.requestFocus();\n return false;\n }\n\n return true;\n }", "private boolean checkUserInputValidity() {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().trim();\n String studentGradeString = mStudentGradeEditText.getText().toString();\n\n // Check for valid student name\n if (TextUtils.isEmpty(studentName)) {\n Toast.makeText(this, R.string.please_enter_valid_name, Toast.LENGTH_SHORT).show();\n mStudentNameEditText.requestFocus();\n return false;\n }\n\n // Check for valid student birthdate\n if (mStudentBirthdate == 0) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n if (DateUtils.isChosenDateAfterToday(mStudentBirthdate)) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n // Check for valid student grade\n if (TextUtils.isEmpty(studentGradeString)) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n } else {\n int studentGrade = Integer.parseInt(studentGradeString);\n if (studentGrade <= 0) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n }\n }\n\n return true;\n }", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (gemNameField.getText() == null || gemNameField.getText().length() == 0) {\n errorMessage += \"No valid gem name!\\n\";\n }\n if (gemValueField.getText() == null || gemValueField.getText().length() == 0) {\n errorMessage += \"No valid gem value!\\n\";\n } else {\n // try to parse the gem value into an int.\n try {\n Integer.parseInt(gemValueField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid gem value (must be an integer)!\\n\";\n }\n }\n if (gemDescripField.getText() == null || gemDescripField.getText().length() == 0) {\n errorMessage += \"No valid gem description!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }", "public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }", "private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif (dateField.getText() == null || dateField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiges Datum!\\n\";\n\t\t} else {\n\t\t\tif (!DateUtil.validDate(dateField.getText())) {\n\t\t\t\terrorMessage += \"Kein gültiges Datum. Benutze das dd.mm.yyy Format!\\n\";\n\t\t\t}\n\t\t}\n\t\tString categoryFieldSelection = categoryField.getSelectionModel().getSelectedItem();\n\t\tif (categoryFieldSelection.isEmpty() || categoryFieldSelection.length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Kategorie!\\n\";\n\t\t}\n\t\tif (useField.getText() == null || useField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Verwendungszweck!\\n\";\n\t\t}\n\t\tif (amountField.getText() == null || amountField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Betrag!\\n\";\n\t\t} \n\t\t/**else {\n\t\t\t// try to parse the amount into a double\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(amountField.getText());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\terrorMessage += \"Kein zulässiger Betrag! (Nur Dezimalzahlen erlaubt)\\n\";\n\t\t\t}\n\t\t}**/\n\t\tif (distributionKindField.getText() == null || distributionKindField.getText().length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Ausgabeart!\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Show the error message.\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Ungültige Eingaben\");\n\t\t\talert.setHeaderText(\"Bitte korrigieren Sie die Fehler in den Feldern.\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.showAndWait();\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkForInvalidInput(){\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n String name = usernameTextView.getText().toString();\n\n\n if(email.isEmpty() || password.isEmpty() || name.isEmpty()){\n Toast.makeText(getApplicationContext(),\"Please fill in all fields\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n\n if(!email.contains(\"@\")){\n Toast.makeText(getApplicationContext(),\"Please enter a valid email\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n if(!isStudent && !isTeacher){\n Toast.makeText(getApplicationContext(),\"Please select Student or Teacher\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n\n\n\n\n // add more checks?\n\n return true;\n\n }", "private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }", "private boolean validateInput() {\n String username = editUsername.getText().toString().trim();\n String email = editEmail.getText().toString().trim();\n String password = editPassword.getText().toString().trim();\n String repeatPassword = editRepeatPassword.getText().toString().trim();\n if (!password.equals(repeatPassword)) {\n ShowMessageUtil.tosatSlow(\"Enter passwords differ\", EmailRegisterActivity.this);\n return false;\n } else if (username.equals(\"\") || email.equals(\"\") || password.equals(\"\")) {\n ShowMessageUtil.tosatSlow(\"every item can not be empty!\", EmailRegisterActivity.this);\n return false;\n }\n if (username.length()>10){\n ShowMessageUtil.tosatSlow(\"the character length of the username can't be over than 10\", EmailRegisterActivity.this);\n return false;\n }\n return true;\n }", "private boolean validate() {\n if(edtMobileNumber.getText().toString().length() <= 0){\n edtMobileNumber.setFocusable(true);\n edtMobileNumber.setError(Constants.ERR_MSG_MOBILE);\n return false;\n }else if(edtFirstName.getText().toString().length() <= 0){\n edtFirstName.setFocusable(true);\n edtFirstName.setError(Constants.ERR_MSG_FIRST_NAME);\n return false;\n }else if(edtLastName.getText().toString().length() <= 0){\n edtLastName.setFocusable(true);\n edtLastName.setError(Constants.ERR_MSG_LAST_NAME);\n return false;\n }else if(edtDateOfBirth.getText().toString().length() <= 0){\n edtDateOfBirth.setFocusable(true);\n edtDateOfBirth.setError(Constants.ERR_MSG_DATE_OF_BIRTH);\n return false;\n }else if(edtEnterPin.getText().toString().length() <= 0){\n edtEnterPin.setFocusable(true);\n edtEnterPin.setError(Constants.ERR_MSG_PIN);\n return false;\n }else if(edtConfirmPin.getText().toString().length() <= 0){\n edtConfirmPin.setFocusable(true);\n edtConfirmPin.setError(Constants.ERR_MSG_CONFIRM_PIN);\n return false;\n }else if(spnStatus.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_STATUS, Toast.LENGTH_SHORT).show();\n return false;\n }else if(spnBloodGroup.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_BLOOD_GROUP, Toast.LENGTH_SHORT).show();\n return false;\n }else if(rgGender.getCheckedRadioButtonId() == -1){\n Toast.makeText(context,Constants.ERR_MSG_GENDER,Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ServiceName.getText() == null || ServiceName.getText().length() == 0) {\n errorMessage += \"No valid name!\\n\";\n }\n if (Serviceemail.getText() == null || Serviceemail.getText().length() == 0) {\n Pattern p = Pattern.compile(\"[_A-Za-z0-9][A-Za-z0-9._]*?@[_A-Za-z0-9]+([.][_A-Za-z]+)+\");\n Matcher m = p.matcher(Serviceemail.getText());\n if (m.find() && m.group().equals(Serviceemail.getText())) {\n errorMessage += \"No valid Mail Forment!\\n\";\n }\n }\n if (servicedescrip.getText() == null || servicedescrip.getText().length() == 0) {\n errorMessage += \"No valid description !\\n\";\n }\n if (f == null && s.getImage() == null) {\n errorMessage += \"No valid photo ( please upload a photo !)\\n\";\n }\n if (Serviceprice.getText() == null || Serviceprice.getText().length() == 0) {\n errorMessage += \"No valid prix !\\n\";\n } else {\n // try to parse the postal code into an int.\n try {\n Float.parseFloat(Serviceprice.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid prix (must be a Float)!\\n\";\n }\n }\n if ( !Weekly.isSelected() && !Daily.isSelected() && !Monthly.isSelected()) {\n errorMessage += \"No valid Etat ( select an item !)\\n\";\n }\n if (Servicesatet.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid etat ( select an item !)\\n\";\n }\n if (ServiceCity.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid City ( select an item !)\\n\";\n }\n if (servicetype.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid Type ( select an item !)\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n alert.showAndWait();\n return false;\n }\n }", "private void InputTextValidator () {\n isNotNull = !txtCategoryNo.getText().equals(\"\") && !txtCategoryName.getText().equals(\"\");\n }", "private boolean validateInputs() {\n\n boolean bValid = true;\n\n // Extract the inputs entered by the user and verify them\n String strEmail = m_tfUserEmailID.getText().toString();\n String strPassword = m_tfUserPassword.getText().toString();\n\n // Check if the e-mail format is right\n if (strEmail.isEmpty() || !android.util.Patterns.EMAIL_ADDRESS.matcher(strEmail).matches()) {\n m_tfUserEmailID.setError(\"Enter a valid email address\");\n bValid = false;\n } else {\n m_tfUserEmailID.setError(null);\n }\n\n // Check if the password is at least 6 characters long and within 12 characters\n if (strPassword.isEmpty() || strPassword.length() < 6 || strPassword.length() > 12) {\n m_tfUserPassword.setError(\"Must be between 6-12 alphanumeric characters\");\n bValid = false;\n } else {\n m_tfUserPassword.setError(null);\n }\n\n return bValid;\n }", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "public void errorWindow(int i) {\n Alert alert = new Alert(AlertType.INFORMATION);\n if (i == 1) {\n alert.setTitle(\"Missing partID\");\n alert.setHeaderText(null);\n alert.setContentText(\"Enter Part ID\");\n alert.showAndWait();\n }\n if (i == 2) {\n alert.setTitle(\"Missing part name!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Enter part name\");\n alert.showAndWait();\n }\n if (i == 3) {\n alert.setTitle(\"Enter Price!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Enter price of item\");\n alert.showAndWait();\n }\n if (i == 4) {\n alert.setTitle(\"Max items not entered!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Enter max items\");\n alert.showAndWait();\n }\n if (i == 5) {\n alert.setTitle(\"Min items not entered!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Enter min items\");\n alert.showAndWait();\n }\n if (i == 6) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Min cant be more then max.\");\n alert.showAndWait();\n }\n if (i == 7) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Inv cant be more then max or less than min.\");\n alert.showAndWait();\n }\n if (i == 8) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Inv cant be less then min.\");\n alert.showAndWait();\n }\n if (i == 9) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Machine ID and Company name cant be empty.\");\n alert.showAndWait();\n }\n if (i == 10) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Must enter inv\");\n alert.showAndWait();\n }\n if (i == 11) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Must enter Integer value for max, min, Machine ID, and inv.\\nEnter a double for cost\");\n alert.showAndWait();\n }\n if (i == 12) {\n alert.setTitle(\"Invalid Entry!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Min cannot be less then 0!\");\n alert.showAndWait();\n }\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }", "private void checkFields() {\n\t\t\n\t\tboolean errors = false;\n\t\t\n\t\t// contact name\n\t\tString newName = ((TextView) findViewById(R.id.tvNewContactName)).getText().toString();\n\t\tTextView nameErrorView = (TextView) findViewById(R.id.tvContactNameError);\n\t\tif(newName == null || newName.isEmpty()) {\n\t\t\terrors = true;\n\t\t\tnameErrorView.setText(\"Contact must have a name!\");\n\t\t} else {\n\t\t\tnameErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact phone number\n\t\tString newPhone = ((TextView) findViewById(R.id.tvNewContactPhone)).getText().toString();\n\t\tTextView phoneNumberErrorView = (TextView) findViewById(R.id.tvContactPhoneError);\n\t\tif(newPhone == null || newPhone.isEmpty()) {\n\t\t\terrors = true;\n\t\t\tphoneNumberErrorView.setText(\"Contact must have a phone number!\");\n\t\t} else {\n\t\t\tphoneNumberErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact e-mail\n\t\tString newEmail= ((TextView) findViewById(R.id.tvNewContactEmail)).getText().toString();\n\t\tTextView emailErrorView = (TextView) findViewById(R.id.tvContactEmailError);\n\t\tif(newEmail == null || newEmail.isEmpty()) {\n\t\t\terrors = true;\n\t\t\temailErrorView.setText(\"Contact must have an E-mail!\");\n\t\t} else if (!newEmail.matches(\".+@.+\\\\..+\")) {\n\t\t\terrors = true;\n\t\t\temailErrorView.setText(\"Invalid E-mail address! Example:\"\n\t\t\t\t\t+ \"[email protected]\");\n\t\t} else {\n\t\t\temailErrorView.setText(\"\");\n\t\t}\n\t\t\n\t\t// contact note\n\t\tString newNote = ((TextView) findViewById(R.id.tvNewContactNote)).getText().toString();\n\t\t\n\t\t// contact Facebook profile address\n\t\tString newAddress = ((TextView) findViewById(R.id.tvNewContactAddress)).getText().toString();\n\t\t\n\t\t// save the new contact if all the required fields are filled out\n\t\tif(!errors) {\n\t\t\tif(newNote == null || newNote.isEmpty()) {\n\t\t\t\tnewNote = \"No note.\";\n\t\t\t}\n\t\t\t\n\t\t\tif(newAddress == null || newAddress.isEmpty()) {\n\t\t\t\tnewAddress = \"No address.\";\n\t\t\t}\n\t\t\tHomeActivity.listOfContacts.add(new Contact(newName, newPhone, newEmail, \n\t\t\t\t\tnewNote, newAddress));\n\t\t\tIntent intent = new Intent(AddContactActivity.this, HomeActivity.class);\n\t\t\tstartActivity(intent);\n\t\t}\n\t}", "private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }", "@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }", "private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }", "private boolean validateForm() {\n\n String email = mEditTextViewEmail.getText().toString();\n if (TextUtils.isEmpty(email)) {\n mTextInputLayoutEmail.setError(\"Emaill Id Required\");\n Toast.makeText(MainActivity.this, \"Email field required\", Toast.LENGTH_SHORT).show();\n return false;\n } else if (!isEmailValid(email)) {\n mTextInputLayoutEmail.setError(\"A valid Email id is required\");\n return false;\n } else {\n mTextInputLayoutEmail.setError(null);\n }\n\n String password = mEditTextViewPassword.getText().toString();\n if (TextUtils.isEmpty(password)) {\n mTextInputLayoutPassword.setError(\"Password required\");\n Toast.makeText(MainActivity.this, \"Password field required\", Toast.LENGTH_SHORT).show();\n return false;\n } else if (!isPasswordValid(password)) {\n mTextInputLayoutPassword.setError(\"Password must be at least 6 characters\");\n return false;\n } else {\n mTextInputLayoutPassword.setError(null);\n }\n\n return true;\n }", "private boolean isInputOkay() {\n // checks the text fields\n if (mBinding.date.getText() == null || mBinding.date.getText().toString().equals(\"\")) {\n snackBar(\"Please select the date.\");\n return false;\n }\n\n if (mBinding.time.getText() == null || mBinding.time.getText().toString().equals(\"\")) {\n snackBar(\"Please select the time.\");\n return false;\n }\n\n if (mBinding.stress.getText() == null || mBinding.stress.getText().toString().equals(\"\")) {\n snackBar(\"Please select the stress level.\");\n return false;\n }\n\n if (mBinding.tired.getText() == null || mBinding.tired.getText().toString().equals(\"\")) {\n snackBar(\"Please select the tiredness level.\");\n return false;\n }\n\n if (mBinding.mv0.getText() == null || mBinding.mv0.getText().toString().equals(\"\")) {\n snackBar(\"Please select at least the start glucose value.\");\n return false;\n }\n\n return true;\n }", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "public boolean validateuser(){\n if(fname.getText().toString().isEmpty()){\n fname.setError(\"Enter your first name\");\n fname.requestFocus();\n return false;\n }\n if(lname.getText().toString().isEmpty()){\n lname.setError(\"Enter your last name\");\n lname.requestFocus();\n return false;\n }\n if(username.getText().toString().isEmpty()){\n username.setError(\"Enter your last name\");\n username.requestFocus();\n return false;\n }\n if(password.getText().toString().isEmpty()||password.getText().toString().length()<6){\n password.setError(\"Enter your password with digit more than 6\");\n password.requestFocus();\n return false;\n }\n return true;\n }", "private void checkRegistationValidation() {\r\n\t\tUtility.hideKeyBoard(this);\r\n\t\tif (firstName.getText().toString().length() == 0\r\n\t\t\t\t&& lastName.getText().toString().length() == 0\r\n\t\t\t\t&& emailAddress.getText().toString().length() == 0\r\n\t\t\t\t&& password.getText().toString().length() == 0\r\n\t\t\t\t&& confirmPassword.getText().toString().length() == 0) {\r\n\t\t\tshowToastMessage(\"All fields are mendatory\");\r\n\t\t} else if (emailAddress.getText().toString().length() == 0) {\r\n\r\n\t\t\temailAddress.setError(Constant.emailFieldValidation);\r\n\t\t\temailAddress.setText(\"\");\r\n\t\t\temailAddress.requestFocus();\r\n\t\t} else if (firstName.getText().toString().length() == 0) {\r\n\t\t\tfirstName.setError(\"Enter first name\");\r\n\t\t\tfirstName.setText(\"\");\r\n\t\t\tfirstName.requestFocus();\r\n\t\t} else if (lastName.getText().toString().length() == 0) {\r\n\t\t\tlastName.setError(\"Enter first name\");\r\n\t\t\tlastName.setText(\"\");\r\n\t\t\tlastName.requestFocus();\r\n\t\t} else if (password.getText().toString().length() == 0) {\r\n\t\t\tpassword.setError(Constant.passwordFieldValidation);\r\n\t\t\t;\r\n\t\t\tpassword.setText(\"\");\r\n\t\t\tpassword.requestFocus();\r\n\t\t} else if (!Utility.validateEmail(emailAddress.getText().toString())) {\r\n\t\t\temailAddress.setError(Constant.emailFormatValidation);\r\n\t\t\temailAddress.setText(\"\");\r\n\t\t\temailAddress.requestFocus();\r\n\r\n\t\t} else if (!password.getText().toString()\r\n\t\t\t\t.equals(confirmPassword.getText().toString())) {\r\n\t\t\tconfirmPassword.setError(\"Confirm password not same as password\");\r\n\t\t\tconfirmPassword.setText(\"\");\r\n\t\t\tconfirmPassword.requestFocus();\r\n\t\t} else {\r\n\t\t\tif (isConnectedToInternet()) {\r\n\t\t\t\tloadingProgress.setVisibility(View.VISIBLE);\r\n\t\t\t\tsendRegistrationRequestToServer();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnew Utility().showCustomDialog(\"Ok\", \"Internet Connection\",\r\n\t\t\t\t\t\t\"no internet access\", false, RegistrationActivity.this,\r\n\t\t\t\t\t\tnull, null);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }", "private boolean validInput()\n {\n boolean completeForm = true; //all textfields have been filled in\n boolean noExceptions = true; //all textfields (except name) have int\n boolean selectionMade = true; //user has selected a ship type\n\n if (shipNameInput.getText()==\"Ship name\" ||\n xcoordInput.getText()==\"Starting x coordinate\" ||\n ycoordInput.getText()==\"Starting y coordinate\")\n {\n System.out.println(\"ERROR: Please fill in all text fields before \"+\n \"adding your ship.\");\n completeForm = false;\n }\n try\n {\n xcoord = Integer.parseInt(xcoordInput.getText());\n ycoord = Integer.parseInt(ycoordInput.getText());\n }\n catch (NumberFormatException except)\n {\n System.out.println(\"ERROR: Ship coordinates and speed need to be \"+\n \"entered as integers.\");\n noExceptions = false;\n }\n if (directionInput.getResponse() == \"none\")\n {\n System.out.println(\"ERROR: Please choose a direction.\");\n selectionMade = false;\n }\n else\n {\n String d = directionInput.getResponse();\n if (d == \"N\") direction = 0;\n else if (d == \"NE\") direction = Ship.NE;\n else if (d == \"E\") direction = Ship.E;\n else if (d == \"SE\") direction = Ship.SE;\n else if (d == \"S\") direction = Ship.S;\n else if (d == \"SW\") direction = Ship.SW;\n else if (d == \"W\") direction = Ship.W;\n else if (d == \"NW\") direction = Ship.NW;\n }\n shipName = shipNameInput.getText();\n speed = speedSlider.getValue();\n\n return (completeForm && noExceptions && selectionMade);\n }", "private boolean formValidated() {\n boolean flag = true;\n name_error.setVisibility(View.GONE);\n family_error.setVisibility(View.GONE);\n address_region_error.setVisibility(View.GONE);\n address_city_error.setVisibility(View.GONE);\n address_error.setVisibility(View.GONE);\n gender_error.setVisibility(View.GONE);\n cellphone_error.setVisibility(View.GONE);\n address_postal_code_error.setVisibility(View.GONE);\n if (address_spinner.getSelectedItem() == null || address_spinner.getSelectedItem().equals(getString(R.string.address_province_placeholder))) {\n address_region_error.setVisibility(View.VISIBLE);\n address_region_error.setText(R.string.error_isrequired);\n flag = false;\n }\n if (city_spinner.getVisibility() == View.VISIBLE && (city_spinner.getSelectedItem() == null || city_spinner.getSelectedItem().equals(getString(R.string.address_city_placeholder)))) {\n address_city_error.setVisibility(View.VISIBLE);\n address_city_error.setText(R.string.error_isrequired);\n flag = false;\n }\n if (postal_spinner.getVisibility() == View.VISIBLE && (postal_spinner.getSelectedItem() == null || postal_spinner.getSelectedItem().equals(getString(R.string.delivery_neighbourhood)))) {\n address_postal_region_error.setVisibility(View.VISIBLE);\n address_postal_region_error.setText(R.string.error_isrequired);\n flag = true;\n }\n if (BamiloApplication.CUSTOMER.getGender().isEmpty()) {\n if (gender_spinner.getSelectedItem() == null || gender_spinner.getSelectedItem().equals(getString(R.string.gender))) {\n gender_error.setVisibility(View.VISIBLE);\n gender_error.setText(R.string.error_isrequired);\n flag = false;\n }\n }\n if (name.getText().length() >= 0) {\n /* */\n if (name.getText().length() < 2) {\n name_error.setVisibility(View.VISIBLE);\n name_error.setText(R.string.error_isrequired);\n flag = false;\n }\n\n }\n if (family.getText().length() >= 0) {\n /* */\n if (family.getText().length() < 2) {\n family_error.setVisibility(View.VISIBLE);\n family_error.setText(R.string.error_isrequired);\n flag = false;\n }\n\n }\n if (address.getText().length() >= 0) {\n /* */\n if (address.getText().length() < 2) {\n address_error.setVisibility(View.VISIBLE);\n address_error.setText(R.string.error_isrequired);\n flag = false;\n }\n\n }\n Pattern pattern = Pattern.compile(getString(R.string.cellphone_regex), Pattern.CASE_INSENSITIVE);\n\n Matcher matcher = pattern.matcher(cellphone.getText());\n boolean result = matcher.matches();\n if (!result) {\n cellphone.setVisibility(View.VISIBLE);\n cellphone_error.setVisibility(View.VISIBLE);\n cellphone_error.setText(R.string.address_phone_number_invalidity_error);\n flag = false;\n }\n if (cellphone.getText().length() == 0) {\n cellphone.setVisibility(View.VISIBLE);\n cellphone_error.setVisibility(View.VISIBLE);\n cellphone_error.setText(R.string.error_isrequired);\n flag = false;\n }\n\n\n if (postal_code.getText().length() != 0 && postal_code.getText().length() != 10) {\n address_postal_code_error.setVisibility(View.VISIBLE);\n flag = false;\n }\n\n if (gender_lable.length() == 0) {\n gender_error.setVisibility(View.VISIBLE);\n flag = false;\n }\n return flag;\n }", "private boolean validateInput() {\n\tboolean valid = false;\n\ttry {\n\t if (paymentText == null | paymentText.getValue() == \"\") {\n\t\tpaymentText.focus();\n\t\tthrow new NullPointerException(\"paymentText fehlt\");\n\t }\n\t if (paymentBetrag == null | paymentBetrag.getValue() == \"\") {\n\t\tpaymentBetrag.focus();\n\t\tthrow new NullPointerException(\"paymentBetrag fehlt\");\n\t }\n\t if (!paymentBetrag.isEmpty()) {\n\t\t@SuppressWarnings(\"unused\")\n\t\tdouble d = Double.parseDouble(paymentBetrag.getValue());\n\t }\n\t // seems that everything was OK\n\t valid = true;\n\t} catch (NullPointerException e) {\n\t System.out.println(\"PaymentWindow - \" + e);\n\t} catch (NumberFormatException e) {\n\t // entered value is no number\n\t paymentBetrag.focus();\n\t}\n\treturn valid;\n }", "public boolean validateInput(boolean showMessage) {\n\n boolean valid = true;\n\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, minPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, maxPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, minPrecursorMassTxt, \"minimum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, maxPrecursorMassTxt, \"maximum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n\n if (!minPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, minPtmsPerPeptideTxt, \"minimum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n \n if (!maxPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, maxPtmsPerPeptideTxt, \"maximum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n\n valid = GuiUtilities.validateIntegerInput(this, maxVariablePtmsPerTypeLabel, maxVariablePtmsPerTypeTxt, \"maximum number of variable PTMs per type\", \"Variable PTMs Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, decoySeedLabel, decoySeedTxt, \"decoy seed\", \"Decoy Seed Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, minSpectrumMzTxt, \"minimum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n if (!maxSpectrumMzTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, maxSpectrumMzTxt, \"maximum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n }\n valid = GuiUtilities.validateIntegerInput(this, minPeaksLbl, minPeaksTxt, \"minimum number of peaks\", \"Spectrum Peaks Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, removePrecursorPeakLabel, removePrecursorPeakToleranceTxt, \"remove precursor peak tolerance\", \"Precursor Peak Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinWidthLabel, mzBinWidthTxt, \"mz bin width\", \"Mz Bin Width Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinOffsetLabel, mzBinOffsetTxt, \"mz bin offset\", \"Mz Bin Offset Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, numberMatchesLabel, numberMatchesTxt, \"number of spectrum matches\", \"Number of Spectrum Matches Error\", true, showMessage, valid);\n\n // peptide length: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPepLengthTxt.getText().trim());\n double highValue = Double.parseDouble(maxPepLengthTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Peptide Length Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n peptideLengthLabel.setForeground(Color.RED);\n peptideLengthLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // precursor mass range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPrecursorMassTxt.getText().trim());\n double highValue = Double.parseDouble(maxPrecursorMassTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Precursor Mass Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n precursorMassLabel.setForeground(Color.RED);\n precursorMassLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // spectrum mz range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minSpectrumMzTxt.getText().trim());\n double highValue = Double.parseDouble(maxSpectrumMzTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Spectrum Mz Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n spectrumMzLabel.setForeground(Color.RED);\n spectrumMzLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n okButton.setEnabled(valid);\n return valid;\n }", "@Override\n\t\tprotected boolean isTextValid()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (getField().getText().isEmpty())\n\t\t\t\t\tthrow new AppException(ErrorId.NO_FILTER);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (AppException e)\n\t\t\t{\n\t\t\t\tGuiUtils.setFocus(getField());\n\t\t\t\tJOptionPane.showMessageDialog(this, e, App.SHORT_NAME, JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "private boolean validCreateInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameCreateField.getText().equals(\"\") || abbrevationCreateField.getText().equals(\"\")\n || chooseCityBoxCreate.getValue() == null || chooseLeagueBoxCreate.getValue() == null\n || chooseAgeGroupCreate.getValue() == null || chooseLeagueTeamBoxCreate.getValue() == null){\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationCreateField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameCreateField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }", "private boolean validateInputs() {\n question = txtQuestion.getText().trim();\n option1 = txtOption1.getText().trim();\n option2 = txtOption2.getText().trim();\n option3 = txtOption3.getText().trim();\n option4 = txtOption4.getText().trim();\n correctOption = jcCorrectAns.getSelectedItem().toString();\n //System.out.println(correctOption);\n if(question.isEmpty() || option1.isEmpty() || option2.isEmpty() || \n option3.isEmpty() || option4.isEmpty() || correctOption.isEmpty()){\n return false;\n }\n return true;\n }", "public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }", "@Override\n\t@FXML\n\tpublic boolean validate() {\n\t\t\n\t\tboolean isDataEntered = true;\n\t\tLocalDate startDate = Database.getInstance().getStartingDate();\n\t\tSystem.out.println();\n\t\tif(amountField.getText() == null || amountField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the amount field empty.\");\n\t\telse if(!(Validation.validateAmount(amountField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please enter a valid amount\");\n\t\telse if(creditTextField.getText() == null || creditTextField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the credit text field empty.\");\n\t\telse if(!(Validation.validateChars(creditTextField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please only enter valid characters\");\n\t\telse if(dateField.getValue() == null) {\n\t\t\tisDataEntered = setErrorTxt(\"You left the date field empty.\");\t\t\t\n\t\t}\n\t\telse if(dateField.getValue().isBefore(startDate))\n\t\t\tisDataEntered = setErrorTxt(\"Sorry, the date you entered is before the starting date.\");\n\t\treturn isDataEntered;\n\t}", "private void clearErrorsInEdittextFields() {\n\t\tetyourName.setOnFocusChangeListener(new OnFocusChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onFocusChange(View rv, boolean hasFocus) {\n\n\t\t\t\tetyourName.setError(null);\n\t\t\t\tetyourEmail.setError(null);\n\t\t\t\tetyourFeedback.setError(null);\n\t\t\t\tif (hasFocus) {\n\t\t\t\t\tif (etyourName.getText().length() != 0) {\n\n\t\t\t\t\t\tetyourName.setError(null);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tetyourEmail.setOnFocusChangeListener(new OnFocusChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onFocusChange(View rv, boolean hasFocus) {\n\n\t\t\t\tetyourName.setError(null);\n\t\t\t\tetyourEmail.setError(null);\n\t\t\t\tetyourFeedback.setError(null);\n\n\t\t\t}\n\t\t});\n\t\tetyourFeedback.setOnFocusChangeListener(new OnFocusChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onFocusChange(View rv, boolean hasFocus) {\n\n\t\t\t\tetyourName.setError(null);\n\t\t\t\tetyourEmail.setError(null);\n\t\t\t\tetyourFeedback.setError(null);\n\n\t\t\t}\n\t\t});\n\n\t\tetyourName.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tetyourName.setError(null);\n\t\t\t}\n\t\t});\n\t\tetyourEmail.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tetyourEmail.setError(null);\n\t\t\t}\n\t\t});\n\t\tetyourFeedback.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tetyourFeedback.setError(null);\n\t\t\t}\n\t\t});\n\t}", "public void validateInput(String fName, String lName, String zipCode, String employID){\n boolean firstname = firstNameTwoCharactersLong(fName);\n //boolean firstFilled = firstNameFilled\n boolean firstFilled = firstNameFilled(fName);\n //boolean lastname = lastNameTwoCharactersLong\n boolean lastname = lastNameTwoCharactersLong(lName);\n //boolean lastFilled = lastNameFilled\n boolean lastFilled = lastNameFilled(lName);\n //boolean the rest\n boolean employeeID = employeeIDValid(employID);\n boolean zCode = zipCodeValid(zipCode);\n\n //if all of them are valid=true then error prints \"there are no errors found\n if (firstname && firstFilled && lastname && lastFilled && employeeID && zCode){\n errorMessage = \"There were no errors found\";\n }\n //Display error message\n System.out.println(errorMessage);\n\n }", "public void displayInvalidNumberAlert(int i) {\r\n String invalidMessage = \"\";\r\n\r\n if(i == 1)\r\n invalidMessage = \"PLEASE ENTER A VALID NUMBER, 2 OR ABOVE, FOR YOUR AGE!!!\";\r\n else if(i == 2)\r\n invalidMessage = \"PLEASE ENTER A VALID HEIGHT IN INCHES!!!\";\r\n else\r\n invalidMessage = \"PLEASE ENTER A VALID WEIGHT IN POUNDS!!!\";\r\n\r\n //build error box\r\n AlertDialog.Builder newDialog = new AlertDialog.Builder(MainActivity.this);\r\n newDialog.setMessage(invalidMessage).setCancelable(false)\r\n .setPositiveButton(\"GOT IT!\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.cancel();\r\n }\r\n });\r\n //create alert box\r\n AlertDialog alert = newDialog.create();\r\n alert.setTitle(\"ERROR\");\r\n alert.show();\r\n }", "private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}", "@Override\n public void validate(MessageContainer messages) {\n // Verify that they user entered a title\n if (StringUtils.isBlank(madlib.getTitle())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.title.missing\");\n }\n // Verify that they user entered all the nouns\n if (StringUtils.isBlank(madlib.getNoun1()) || StringUtils.isBlank(madlib.getNoun2()) ||\n StringUtils.isBlank(madlib.getNoun3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.noun.missing\");\n }\n // Verify that they user entered all the adjectives\n if (StringUtils.isBlank(madlib.getAdjective1()) || StringUtils.isBlank(madlib.getAdjective2()) ||\n StringUtils.isBlank(madlib.getAdjective3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.adjective.missing\");\n }\n }", "private boolean check() {\r\n\t\tif (principal.getText().equals(\"\") && rate.getText().equals(\"\")) {\r\n\t\t\tJOptionPane\r\n\t\t\t\t\t.showMessageDialog(this,\r\n\t\t\t\t\t\t\t\"Please enter a value for \\\"Principal\\\" and \\\"Rate(Percentage)\\\".\");\r\n\t\t\treturn false;\r\n\t\t} else if (principal.getText().equals(\"\")) {\r\n\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\"Please enter a value for \\\"Principal\\\".\");\r\n\t\t\treturn false;\r\n\t\t} else if (rate.getText().equals(\"\")) {\r\n\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\"Please enter a value for \\\"Rate(Percentage)\\\".\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void checkValidation() {\n // Get email id and password\n MainActivity.EmailAddress = emailid.getText().toString();\n finalPassword = password.getText().toString();\n\n // Check patter for email id\n Pattern p = Pattern.compile(Utils.regEx);\n\n Matcher m = p.matcher(MainActivity.EmailAddress);\n\n // Check for both field is empty or not\n if (MainActivity.EmailAddress.equals(\"\") || MainActivity.EmailAddress.length() == 0\n || finalPassword.equals(\"\") || finalPassword.length() == 0) {\n loginLayout.startAnimation(shakeAnimation);\n new CustomToast().Show_Toast(getActivity(), view,\n \"Enter both credentials.\");\n\n }\n // Check if email id is valid or not\n else if (!m.find())\n new CustomToast().Show_Toast(getActivity(), view,\n \"Your Email Id is Invalid.\");\n // Else do login and do your stuff\n else\n tryLoginUser();\n\n }", "private boolean checkInputValidation(){\n if(facility_EDT_value.getText().toString().trim().isEmpty()){\n Toast.makeText(getContext(), \"Please enter search value!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }", "private boolean validateInput() {\n boolean isValid = true;\n Alert errMsg = Util.getAlert(Alert.AlertType.ERROR);\n if (connectionsCB.getEditor().getText() == null || !Util.isValidAddress(connectionsCB.getEditor().getText())) {\n errMsg.setContentText(\"Invalid TRex Host Name or IP address\");\n isValid = false;\n } else if (!Util.isValidPort(rpcPort.getText())) {\n errMsg.setContentText(\"Invalid TRex Sync Port Number(\" + rpcPort.getText() + \")\");\n isValid = false;\n } else if (!Util.isValidPort(asyncPort.getText())) {\n errMsg.setContentText(\"Invalid Async Port Number(\" + asyncPort.getText() + \")\");\n isValid = false;\n } else if (Util.isNullOrEmpty(nameTF.getText())) {\n errMsg.setContentText(\"Name should not be empty\");\n isValid = false;\n }\n\n if (!isValid) {\n errMsg.show();\n }\n return isValid;\n }", "private void displayValidity() {\n if (allValid) spnValid.setText(\"All fields are valid!\");\n else spnValid.setText(\"There are invalid fields. Please go back and check these.\");\n }", "private void alertBox_validation(String msg, final int validateflag) {\r\n\t\tAlertDialog.Builder validation_alert = new AlertDialog.Builder(this);\r\n\t\tvalidation_alert.setTitle(\"Information\");\r\n\t\tvalidation_alert.setMessage(msg);\r\n\t\tif (validateflag != 21) {\r\n\t\t\tvalidation_alert.setNeutralButton(\"OK\",\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\tif (validateflag != 0) {\r\n\t\t\t\t\t\tif (validateflag == 1) {\r\n\t\t\t\t\t\t\tmStreetNumberValue.requestFocus();\r\n\t\t\t\t\t\t}else if (validateflag == 3) {\r\n\t\t\t\t\t\t\tmCardNoValue1.setText(\"\");\r\n\t\t\t\t\t\t\tmCardNoValue2.setText(\"\");\r\n\t\t\t\t\t\t\tmCardNoValue3.setText(\"\");\r\n\t\t\t\t\t\t\tmCardNoValue4.setText(\"\");\r\n\t\t\t\t\t\t\tmCardNoValue1.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 7) {\r\n\t\t\t\t\t\t\tmCardNoValue4.setText(\"\");\r\n\t\t\t\t\t\t\tmCardNoValue4.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 8) {\r\n\t\t\t\t\t\t\tmExpirationDateValue.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 9) {\r\n\t\t\t\t\t\t\tmExpirationDateValue.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 10) {\r\n\t\t\t\t\t\t\tmCVVNoValue.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 11) {\r\n\t\t\t\t\t\t\tmCVVNoValue.setText(\"\");\r\n\t\t\t\t\t\t\tmCVVNoValue.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 15) {\r\n\t\t\t\t\t\t\tmZipCodeValue.requestFocus();\r\n\t\t\t\t\t\t} else if (validateflag == 19) {\r\n\t\t\t\t\t\t\tmCardNoValue1.getText().clear();\r\n\t\t\t\t\t\t\tmCardNoValue2.getText().clear();\r\n\t\t\t\t\t\t\tmCardNoValue3.getText().clear();\r\n\t\t\t\t\t\t\tmCardNoValue4.getText().clear();\r\n\t\t\t\t\t\t} else if (validateflag == 20) {\r\n\t\t\t\t\t\t\tmZipCodeValue.getText().clear();\r\n\t\t\t\t\t\t\tmZipCodeValue.requestFocus();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tvalidation_alert.setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// Calling funtion to save fields\r\n\t\t\t\t\tsaveFields();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tvalidation_alert.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tvalidation_alert.show();\r\n\t}", "public static void isInputValid(String errorMessage){\r\n\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\talert.setTitle(\"Error!\");\r\n\t\talert.setHeaderText(\"\");\r\n\t\talert.setContentText(errorMessage);\r\n\t\talert.showAndWait();\r\n\t}", "private boolean validateForm() {\n boolean valid = true;\n\n String email = inputEmailEt.getText().toString();\n if (TextUtils.isEmpty(email)) {\n inputEmailLayout.setErrorEnabled(true);\n inputEmailLayout.setError(getString(R.string.need_email));\n valid = false;\n } else {\n inputEmailLayout.setError(null);\n inputEmailLayout.setErrorEnabled(false);\n }\n\n String password = inputPassordEt.getText().toString();\n if (TextUtils.isEmpty(password)) {\n inputPasswordLayout.setErrorEnabled(true);\n inputPasswordLayout.setError(getString(R.string.need_password));\n valid = false;\n } else {\n inputPasswordLayout.setError(null);\n inputPasswordLayout.setErrorEnabled(false);\n }\n return valid;\n }", "@Override\n public void onClick(View view) {\n if(mobile_num.getText().toString().isEmpty()){\n mobile_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n// }else if(org_ocupation.getText().toString().isEmpty()){\n// org_ocupation.setError(\"This Field Required\");\n// showToast(\"Some fields are incomplete\");\n }else if(fis_acres.getText().toString().isEmpty()){\n fis_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(fish_years.getText().toString().isEmpty()){\n fish_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_acres.getText().toString().isEmpty()){\n mudcrab_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_years.getText().toString().isEmpty()){\n mudcrab_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_acres.getText().toString().isEmpty()){\n shrimp_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_years.getText().toString().isEmpty()){\n shrimp_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_area.getText().toString().isEmpty()){\n total_farming_area.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(ownd_in_acres.getText().toString().isEmpty()){\n ownd_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(leased_in_acres.getText().toString().isEmpty()){\n leased_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_num.getText().toString().isEmpty()){\n total_farming_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(owned_seed_num.getText().toString().isEmpty()){\n owned_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(sponcerd_seed_num.getText().toString().isEmpty()){\n sponcerd_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(village.getText().toString().isEmpty()){\n village.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mandal.getText().toString().isEmpty()){\n mandal.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(district.getText().toString().isEmpty()){\n district.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(pincode.getText().toString().isEmpty()){\n pincode.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(min_salinity.getText().toString().isEmpty()){\n min_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(max_salinity.getText().toString().isEmpty()) {\n max_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(select_water_type.getSelectedItemPosition()==0) {\n showToast(\"Select water type\");\n }else if(select_moter_type.getSelectedItemPosition()==0) {\n showToast(\"Select moter type\");\n }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Water Type\")) {\n showToast(\"Select water type\");\n// }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Motor Type\")) {\n// showToast(\"Select moter type\");\n\n\n } else{\n\n\n try {\n obj.put(\"alt_mobile\",mobile_num.getText().toString());\n\n\n obj.put(\"occupation\",occupation.getText().toString());\n obj.put(\"farm_capacity\", capacity.getText().toString());\n obj.put(\"fish_acreas\",fis_acres.getText().toString());\n obj.put(\"fish_years\", fish_years.getText().toString());\n obj.put(\"mudcrab_acres\", mudcrab_acres.getText().toString());\n obj.put(\"mudcrab_years\" , mudcrab_years.getText().toString());\n obj.put(\"shr_acrs\", shrimp_acres.getText().toString());\n obj.put(\"shr_years\", shrimp_years.getText().toString());\n obj.put(\"total_farming_area\", total_farming_area.getText().toString());\n obj.put(\"own_acres\", ownd_in_acres.getText().toString());\n obj.put(\"leased_area\", leased_in_acres.getText().toString());\n obj.put(\"total_famrming_bags\", total_farming_num.getText().toString());\n obj.put(\"own_seed_num\", owned_seed_num.getText().toString());//add bags for above and beloew\n obj.put(\"sponsered_seed_num\" , sponcerd_seed_num.getText().toString());\n obj.put(\"village\", village.getText().toString());\n obj.put(\"mandal\",mandal.getText().toString());\n obj.put(\"district\",district.getText().toString());\n obj.put(\"state\", select_state.getSelectedItem().toString());\n obj.put(\"pincode\", pincode.getText().toString());\n obj.put(\"min_salinity\", min_salinity.getText().toString());\n obj.put(\"max_salinity\" ,max_salinity.getText().toString());\n obj.put(\"selected_water_type\",select_water_type.getSelectedItem().toString());\n obj.put(\"select_motor_type\", select_moter_type.getSelectedItem().toString());\n System.out.println(\"checking data\"+obj.toString());\n SharedPreferences.Editor editor = getSharedPreferences(\"collect\", MODE_PRIVATE).edit();\n editor.putString(\"farmer1\",obj.toString());\n editor.commit();\n SharedPreferences prefs = getSharedPreferences(\"collect\", MODE_PRIVATE);\n Boolean sup = prefs.getBoolean(\"supplier\",false);\n if(sup){\n Intent i=new Intent(farm.this,supplier.class);\n startActivity(i);\n }\n else\n {\n Intent i=new Intent(farm.this,declaration.class);\n startActivity(i);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n\n\n\n }", "public boolean validations() {\n boolean result = false;\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n\n if (nameString.isEmpty() || nameString == null || locationString.isEmpty() || locationString == null || isImageNotPresent()) {\n displayToastMessage(getString(R.string.fields_mandatory_msg));\n return result;\n } else {\n result = true;\n return result;\n }\n }", "public boolean validate() {\n boolean validate = true;\n String titleStr = etTitle.getText().toString();\n String contentStr = etContent.getText().toString();\n if (titleStr.isEmpty() || titleStr.matches(\"\")) {\n etTitle.setError(\"Please Fill Title\");\n validate = false;\n }\n if (contentStr.isEmpty() || contentStr.matches(\"\")) {\n etContent.setError(\"Please Fill Content\");\n validate = false;\n }\n\n return validate;\n }", "public boolean checkFields(){\n String message = \"\";\n if (firstName.getText().isEmpty()){\n message=\"First name is required\";\n }\n if (lastName.getText().isEmpty()){\n if (message.isEmpty())\n message = \"Last name is required\";\n else\n message = \"First name and Last name are required\";\n }\n if (birthday.getValue() == null){\n if (message.isEmpty())\n message = \"please select your birthday\";\n else if (firstName.getText().isEmpty()&& !lastName.getText().isEmpty())\n message = \"First name and birthday required\";\n else if (!firstName.getText().isEmpty() && lastName.getText().isEmpty())\n message = \"Last name and birthday required\";\n else\n message = \"all fields are required\";\n }\n errorDisplay.setText(message);\n return message.equals(\"\");\n }", "public void actionPerformed (ActionEvent event){\n\t\tclearErrors();\n\t\tboolean wrong =false;\n\t\tname = nameField.getText();\n\t\t//check for invalid input and set error\n\t\tif (name.equals(\"\")){\n\t\t\tnameError.setText(\"*Field required\");\n\t\t\twrong=true;\n\t\t}\n\t\tif (rollField.getText().equals(\"\")){\n\t\t\trollError.setText(\"*Field required\");\n\t\t\troll = 0;\n\t\t\twrong=true;\n\t\t}\n\t\telse{\n\n\t\t\ttry{\n\t\t\t\troll = Integer.parseInt (rollField.getText());\n\t\t\t}\n\t\t\tcatch(NumberFormatException e){\n\t\t\t\trollError.setText(\"*Must be an integer\");\n\t\t\t\twrong=true;\n\t\t\t}\n\t\t}\n\t\tif (roll <0 ){\n\t\t\trollError.setText(\"*Must be an integer\");\n\t\t\twrong=true;\n\t\t}\n\n\n\t\tif (seatField.getText().equals(\"\")){\n\t\t\tseatError.setText(\"*Field required\");\n\t\t\twrong=true;\n\t\t}\n\t\telse{\n\n\t\t\ttry{\n\t\t\t\tseat = Integer.parseInt (seatField.getText());\n\t\t\t}\n\t\t\tcatch(NumberFormatException e){\n\t\t\t\tseatError.setText(\"*Must be an integer\");\n\t\t\t\twrong=true;\n\t\t\t}\n\t\t}\n\n\t\t//if no errors, start a thread to send login data\n\t\tif (!wrong){\n\t\t\tThread t= new Thread(new ClientHelper(name,roll,seat));\n\t\t\tt.start();\t\n\t\t\tbuildWaitingDialog();\n\t\t}\n\t\telse{\n\t\t\tnameError.repaint();\n\t\t\trollError.repaint();\n\t\t\tseatError.repaint();\n\t\t}\n\n\t}", "public boolean validate()\n {\n EditText walletName = findViewById(R.id.walletName);\n String walletNameString = walletName.getText().toString();\n\n EditText walletBalance = findViewById(R.id.walletBalance);\n String walletBalanceString = walletBalance.getText().toString();\n\n if (TextUtils.isEmpty(walletNameString))\n {\n walletName.setError(\"This field cannot be empty\");\n\n return false;\n }\n else if (TextUtils.isEmpty(walletBalanceString))\n {\n walletBalance.setError(\"This field cannot be empty\");\n\n return false;\n }\n else\n {\n return true;\n }\n }", "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "private boolean checkValidations() {\n if (TextUtils.isEmpty(etFirstName.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_name_war));\n return false;\n } else if (etPhoneNo.getText().length() > 0 && etPhoneNo.getText().toString().trim().length() < 7) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.valid_mo_no_war));\n return false;\n }\n /*else if (TextUtils.isEmpty(etAdress.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_address_war));\n return false;\n } else if (countryId==null || countryId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.country_war));\n return false;\n } else if (stateId==null || stateId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.state_war));\n return false;\n }*/ /*else if (cityId==null || cityId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.city_war));\n return false;\n }*/\n else\n return true;\n }", "public static void validate() {\r\n\t\tfrmMfhEmailer.validate();\r\n\t}", "public void textFieldValidator(KeyEvent event) {\n TextFieldLimited source =(TextFieldLimited) event.getSource();\n if (source.equals(partId)) {\n isIntegerValid(event);\n } else if (source.equals(maximumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(partName)) {\n isCSVTextValid(event);\n } else if (source.equals(inventoryCount)) {\n isIntegerValid(event);\n } else if (source.equals(minimumInventory)) {\n isIntegerValid(event);\n } else if (source.equals(variableTextField)) {\n if (inHouse.isSelected()) {\n isIntegerValid(event);;\n } else {\n isCSVTextValid(event);\n }\n } else if (source.equals(partPrice)) {\n isDoubleValid(event);\n } else return;\n }", "public boolean validarForm() throws Exception {\r\n\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxNro_ingreso.setStyle(\"background-color:white\");\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxEstado_salida.setStyle(\"background-color:white\");\r\n dtbxFecha_ingreso.setStyle(\"background-color:white\");\r\n\r\n Admision admision = ((Admision) lbxNro_ingreso.getSelectedItem()\r\n .getValue());\r\n\r\n boolean valida = true;\r\n\r\n String mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n if (tbxNro_identificacion.getText().trim().equals(\"\")) {\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_prestador.getText().trim().equals(\"\")) {\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (admision == null) {\r\n lbxNro_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_diagnostico_principal.getText().trim().equals(\"\")) {\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (lbxCausa_externa.getSelectedIndex() == 0) {\r\n lbxCausa_externa\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (valida) {\r\n if (lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono el estado de la salida como muerto(a) \\npor lo tanto debe seleccionar la causa de muerte\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (!lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && !tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n lbxEstado_salida.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono una casua de muerte \\npor lo tanto debe seleccionar el estado a la salida como muerto (a)\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (dtbxFecha_ingreso.getValue().compareTo(\r\n dtbxFecha_egreso.getValue()) > 0) {\r\n dtbxFecha_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"La fecha de ingreso no puede ser mayor a la fecha de egreso\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (!valida) {\r\n Messagebox.show(mensaje,\r\n usuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n }\r\n\r\n return valida;\r\n }", "public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "private boolean formIsValid(){\r\n // check if all the required fields have been filled in\r\n boolean allFieldsEntered = formComplete();\r\n // check if Name field has valid input\r\n boolean nameFieldValid = isAllChars(NAME_FIELD.getText());\r\n // check if city field has valid input\r\n boolean cityFieldValid = isAllChars(CITY_FIELD.getText());\r\n // check if country field has valid input\r\n boolean ctryFieldValid = isAllChars(COUNTRY_FIELD.getText());\r\n // check if zipcode field has valid input\r\n boolean zipFieldValid = isAllNums(ZIP_FIELD.getText());\r\n // check if phone field has valid input\r\n boolean phoneFieldValid = isAllNums(PHONE_FIELD.getText());\r\n // check if all fields and form are valid\r\n return allFieldsEntered && nameFieldValid &&\r\n cityFieldValid && ctryFieldValid &&\r\n zipFieldValid && phoneFieldValid; \r\n }", "private boolean isValidate() {\n name = edt_name.getText().toString();\n phone = edt_phone.getText().toString();\n landMark = edt_landmark.getText().toString();\n address = edt_address.getText().toString();\n city = edt_city.getText().toString();\n state = edt_state.getText().toString();\n if (name.length() == 0) {\n edt_name.setError(\"Please Enter Name \");\n requestFocus(edt_name);\n return false;\n } else if (phone.isEmpty()) {\n edt_phone.setError(\"Please Enter Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (phone.length() != 10) {\n edt_phone.setError(\"Please Enter Valid Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (address.length() == 0) {\n edt_address.setError(\"Please Enter Address\");\n requestFocus(edt_address);\n return false;\n } else if (city.length() == 0) {\n edt_city.setError(\"Please Enter City Name\");\n requestFocus(edt_city);\n return false;\n } else if (state.length() == 0) {\n edt_state.setError(\"Please Enter State Name\");\n requestFocus(edt_state);\n return false;\n }\n return true;\n }", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "@Override\n\tpublic void validate() {\n\t\tFormFieldValidator.validateStudent(this, student);\n\t\tFormFieldValidator.validateCourseList(this, courseID);\n\t}", "public boolean validateFields(Customer customer) {\r\n if (isEmpty(customer.getFirstName(), customer.getLastName(), customer.getPhoneNum(),\r\n customer.getEmail(), customer.getDate())) {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setTitle(\"Invalid info\");\r\n alert.setHeaderText(null);\r\n alert.setContentText(\"Invalid info.\\nAll fields must be filled.\");\r\n alert.showAndWait();\r\n return false;\r\n }\r\n return true;\r\n }" ]
[ "0.7453682", "0.71437734", "0.69607526", "0.6938547", "0.6896535", "0.68188953", "0.6813673", "0.6792212", "0.67410684", "0.67043495", "0.66586137", "0.66346127", "0.6612948", "0.6601096", "0.65929466", "0.65879667", "0.65864843", "0.6553215", "0.6542545", "0.65013236", "0.6497518", "0.64829844", "0.64765096", "0.6445639", "0.6444737", "0.64305717", "0.64105", "0.6403977", "0.64038783", "0.63976884", "0.639692", "0.6379816", "0.6378829", "0.6376834", "0.6375696", "0.6374455", "0.6372147", "0.6358796", "0.63570756", "0.63510376", "0.63336074", "0.6326226", "0.6321388", "0.63109684", "0.6301593", "0.62780356", "0.6272074", "0.6271847", "0.6263711", "0.6263058", "0.62508947", "0.62250733", "0.622391", "0.6207357", "0.62073267", "0.618864", "0.6184497", "0.6166424", "0.6164643", "0.61641765", "0.6146337", "0.61300504", "0.6093649", "0.6086899", "0.60725516", "0.60643053", "0.60584474", "0.6057816", "0.60529727", "0.6044572", "0.6037517", "0.6021115", "0.6020928", "0.5989757", "0.59761226", "0.5975425", "0.59706587", "0.5969886", "0.5960819", "0.5956248", "0.59532887", "0.59258837", "0.5925678", "0.592341", "0.59214056", "0.5907849", "0.5905013", "0.58997345", "0.58913773", "0.5891273", "0.5889814", "0.5882939", "0.58760804", "0.5871945", "0.5867416", "0.5851304", "0.58476174", "0.5846505", "0.58328915", "0.5824375" ]
0.6767862
8
Called when the user clicks the register button. Displays the registration page.
@FXML private void handleRegistration() { app.showRegistrationPage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }", "public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}", "private void registrationView() {\n String login;\n String email;\n String password;\n\n try {\n while (true) {\n printLine();\n print(\"\\tВведите логин\\n\");\n print(\"\\t>>>>> \");\n login = readStringFromConsole();\n\n print(\"\\tВведите email\\n\");\n print(\"\\t>>>>> \");\n try {\n email = valid.emailValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный email\");\n continue;\n }\n\n print(\"\\tВведите пароль\\n\");\n print(\"\\t>>>>> \");\n try {\n password = valid.passwordValidation(readStringFromConsole());\n } catch (NotValidDataException e) {\n printErr(\"\\tнекорректный password\");\n continue;\n }\n break;\n }\n\n try {\n\n serviceAuthorizationService.registration(new UserDto()\n .withUsername(login)\n .withEmail(email)\n .withPassword(password));\n setStatus(REGISTERED);\n printLine();\n print(\"\\tВы успешно зарегистрировались\");\n } catch (AlreadyExistsException e) {\n e.showMessage();\n registrationView();\n }\n } catch (IOException e) {\n registrationView();\n }\n }", "public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}", "public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }", "public Register() {\n setTitle(\"Register\"); //sets its title name which appears on top the frame\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); //optional, what happens when the frame closes\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n windowListener.handleClosing();\n }\n });\n\n setBounds(150, 150, 400, 200); //Explicitly defining the frame size and also frame location\n contentPane = new JPanel(); // Creating a new jpanel\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); // specifies added component's position within the panel\n setContentPane(contentPane); //Adding components to the Content Pane\n contentPane.setLayout(null); //sets the layout manager as null\n\n JLabel lblUsername = new JLabel(\"Username\"); // Creates a label with default value Username\n lblUsername.setBounds(91, 14, 66, 14); // sets the label size and location\n contentPane.add(lblUsername); // Adds the label to the content pane\n\n JLabel lblEmail = new JLabel(\"Email\"); // Creates a label with default value Email\n lblEmail.setBounds(91, 39, 66, 14); // sets the label size and location\n contentPane.add(lblEmail); // Adds the label to the content pane\n\n JLabel lblPassword = new JLabel(\"Password\"); // Creates a label with default value Password\n lblPassword.setBounds(91, 64, 66, 14); // sets the label size and location\n contentPane.add(lblPassword); // Adds the label to the content pane\n\n txtLogin = new JTextField(); // creates empty Login text field\n txtLogin.setBounds(179, 11, 120, 20); //Defines the text field size and location\n contentPane.add(txtLogin); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n txtEmail = new JTextField();// creates empty email text field \n txtEmail.setBounds(179, 36, 120, 20); //Defines the text field size and location\n contentPane.add(txtEmail); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n passwordField = new JPasswordField(); // create empty password field\n passwordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n passwordField.setBounds(179, 61, 120, 20); // Defines the password field size and location\n contentPane.add(passwordField); // Adds the password field to the Content Pane\n\n JLabel lblConfirmPassword = new JLabel(\"Confirm Password\"); // Creates a label with default value Confirm Password\n lblConfirmPassword.setBounds(65, 95, 108, 14); // sets the label size and location\n contentPane.add(lblConfirmPassword); // Adds the label to the content pane\n\n // add new user and password to txt file \n JButton btnSignUp = new JButton(\"Sign Up\"); // Creates Sign Up button and gives it default name Sign Up\n btnSignUp.addActionListener(new ActionListener() {//Adds onClick listener to the button\n public void actionPerformed(ActionEvent arg0) { // method called when the button is clicked\n\n FileWriter fw; // create variable for the FileWriter which writes to the file\n //catch for empty unfilled textfields\n if (!txtLogin.getText().isEmpty() || !passwordField.getText().isEmpty() || !confirmPasswordField.getText().isEmpty() || !txtEmail.getText().isEmpty()) {\n if (passwordField.getText().equals(confirmPasswordField.getText())) {\n Pattern p = Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@\"\n + \"[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\"); // Rejex which checks for a valid email address\n Matcher m = p.matcher(txtEmail.getText()); //Tries to match the input email to check whether it is a valid email coapturing all required aspects\n\n if (m.find()) { // when mathcer finds the email valid proceed below\n try {\n fw = new FileWriter(\"src//SandwichShop//users.txt\", true); // Assign the FileWriter fw to a file\n fw.write(txtLogin.getText() + \" \" + passwordField.getText() + \" \" + txtEmail.getText() + \" \\r\\n\"); // Write user details to the file\n fw.close(); //close the FileWriter\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Registration completed successfully!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Enter correct E-mail, please.\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"\\\"Password\\\" field and \\\"Confirm Password\\\" field not match\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"One or more fields are empty!\");\n }\n }\n });\n btnSignUp.setBounds(16, 125, 350, 23); // set size and location of the Sign Up button\n contentPane.add(btnSignUp); // Add the button to the content pane\n\n confirmPasswordField = new JPasswordField(); // create confirmPassword field\n confirmPasswordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n confirmPasswordField.setBounds(179, 92, 120, 20); // set size and location of the password field\n contentPane.add(confirmPasswordField); // add the confirm password field to the content pane\n }", "public sign_up_page() {\n initComponents();\n }", "public signup() {\n initComponents();\n }", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }", "public\n RegisterView()\n {\n super(ViewKeys.REGISTER);\n\n setAccount(null);\n setAccountChooser(new ElementComboBoxChooser(getAccounts()));\n setFilter(new TransactionFilter());\n setPanel(new Panel());\n setSearchWidget(new SearchWidget(createPopupMenu()));\n\n // Build panel.\n setFill(GridBagConstraints.BOTH);\n add(createToolsPanel(), 0, 0, 1, 1, 0, 0);\n add(getPanel(), 0, 1, 1, 1, 100, 100);\n\n getAccountChooser().setAllowInactiveAccounts(false);\n\n // Add listeners.\n getAccountChooser().addActionListener(new ActionHandler());\n getSearchWidget().addActionListener(new ActionHandler());\n }", "private void register() {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }", "public String register() {\r\n\t\tif (password.equals(passwordConfirm)) {\r\n\t\t\tUser newUser = new User(username, password);\r\n\t\t\t\r\n\t\t\tif (dataManager.addUser(newUser)) {\r\n\t\t\t\tFacesMessage message = new FacesMessage(\"User has been registered successfully.\");\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, message);\r\n\t\t\t\tlogger.info(\"New user has been registered.\");\r\n\t\t\t\treturn \"login.xhtml\";\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"A user with the same username already exists.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:username\", message);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tFacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \"Password confirmation is incorrect.\");\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(\"registration_form:password_confirm\", message);\t\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Test\n\tpublic void TC01_Register() {\n\t\tclickToElemnet(registerLinkX);\n\t\tSystem.out.println(\"TC01 : 1. Register Page Display Status : \" + checkElementDisplayed(registerPageX));\n\n\t\t// Register new accout\n\t\tclickToElemnet(genderMaleRadioBtnX);\n\t\tsendkeysToElement(firstNameTxtX, regFirstName);\n\t\tsendkeysToElement(lastNameTxtX, regLastName);\n\t\tselectElementFromDropDown(dateOfBirthDropDownX, regDateOfBirth);\n\t\tselectElementFromDropDown(dateOfMonthDropDownX, regDateOfMonth);\n\t\tselectElementFromDropDown(dateOfYearDropDownX, regDateOfYear);\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(companyNameTxtX, regCompanyName);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tsendkeysToElement(confirmPasswordTxtX, regPassword);\n\t\tclickToElemnet(registerBtnX);\n\n\t\t// Verify Account is Created Successfully\n\t\tSystem.out.println(\"TC01 : 2. Register message : \" + getTextFromElement(registerSuccessMsgX));\n\n\t\t// Click Log Out Link\n\t\tSystem.out.println(\"TC01 : 3. Click Log Out Link\");\n\t\tclickToElemnet(logOutLinkX);\n\n\t\t// Verify navigate to Home Page\n\t\tSystem.out.println(\"TC01 : 4. Navigate to Home Page : \" + driver.getCurrentUrl());\n\n\t}", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void showRegister() {\n try {\n start(primaryStage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void showRegister() throws IOException {\n Main.FxmlLoader(REGISTERPAGE_PATH);\n }", "public Successful_Registration() {\n initComponents();\n }", "public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }", "public RegisterView() {\r\n\r\n\t\tcontainer = getContentPane();\r\n\t\tcontainer.setLayout(new BorderLayout());\r\n\t\tpanelRegister = new JPanel(new GridLayout(8, 1));\r\n\t\tpanelButton = new JPanel(new GridLayout(1, 2));\r\n\t\ttextFieldUser = new JTextField();\r\n\t\tpasswordFieldPassword = new JPasswordField();\r\n\t\tpasswordFieldRePassword = new JPasswordField();\r\n\t\tcheckBoxIsFarmer = new JCheckBox();\r\n\t\tlabelUser = new JLabel(\"Username: \");\r\n\t\tlabelPassword = new JLabel(\"Password: \");\r\n\t\tlabelRePassword = new JLabel(\"Confirm Password: \");\r\n\t\tlabelIsFarmer = new JLabel(\"Farmer? (Yes/No)\");\r\n\r\n\t\tpanelRegister.add(labelUser);\r\n\t\tpanelRegister.add(textFieldUser);\r\n\t\tpanelRegister.add(labelPassword);\r\n\t\tpanelRegister.add(passwordFieldPassword);\r\n\t\tpanelRegister.add(labelRePassword);\r\n\t\tpanelRegister.add(passwordFieldRePassword);\r\n\t\tpanelRegister.add(labelIsFarmer);\r\n\t\tpanelRegister.add(checkBoxIsFarmer);\r\n\r\n\t\tpanelRegister.setBackground(Util.orange);\r\n\t\tpanelButton.setBackground(Util.orange);\r\n\t\t\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\t\r\n\t\tbuttonRegister = new JButton(\"Confirm Registration\");\r\n\t\tregisterController = new RegisterController();\r\n\t\tbuttonRegister.addActionListener(e -> registerController.startProcess(this));\r\n\t\tbuttonCancel = new JButton(\"Cancel\");\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\tbuttonCancel.addActionListener(e -> registerCancelController.startProcess(this));\r\n\t\t\r\n\t\tpanelButton.add(buttonRegister);\r\n\t\tpanelButton.add(buttonCancel);\r\n\r\n\r\n\r\n\t\tcontainer.add(panelRegister, BorderLayout.CENTER);\r\n\t\tcontainer.add(panelButton, BorderLayout.SOUTH);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setSize(500, 500);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setTitle(\"Register\");\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t}", "@Then(\"^click on the Register button$\")\r\n\tpublic void click_on_the_Register_button() throws Throwable {\n\t register.submitRegistration();\r\n\t}", "public void displayRegisterForm(View v) {\n\n Intent intent = new Intent(getApplicationContext(), RegistrationScreenActivity.class);\n startActivityForResult(intent, NEW_USER_REGISTER);\n }", "@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }", "public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }", "public static void signup() throws Exception{\n\t\trender();\n\t}", "public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}", "private void goToRegisterScreen()\n {\n Intent intent = new Intent(this, Register.class);\n startActivity(intent);\n }", "@RequestMapping(value = \"/registration\", method = RequestMethod.GET)\n public String showPageRegistration(Model model)\n {\n model.addAttribute(\"registeredUser\", new User());\n return \"registration\";\n }", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }", "public void clickToRegisterButton() {\n\t\twaitToElementClickable(driver,RegisterPageUI.REGISTER_BUTTON);\n\t\tclickToElement(driver,RegisterPageUI.REGISTER_BUTTON);\n\t}", "public static Result register(){\n Skier loggedInSkier=Session.register();\n if(loggedInSkier!=null) {\n login(loggedInSkier);\n return renderHome(loggedInSkier);\n }else\n return badRequest(index.render(\"Something went wrong!\"));\n }", "@Override\n protected void onSubmit()\n {\n final ApplicationUser appUser = (ApplicationUser) getModelObject();\n UserRegistration userRegistration = new UserRegistration(appUser.getBusinessUser());\n paramUserId = userRegistration.getUserId();\n //paramDateTime = userRegistration.getRequestTimeAsString();\n //paramToken = userRegistration.getMailToken();\n\n // Note: Dccd does not use a validation Page!\n\n\t\t\t// Construct the url for the activation of member and/or organisation\n\t\t\tMap<String, String> parameterMap = new HashMap<String, String>();\n\t\t\tparameterMap.put(\"userId\", paramUserId);\n\t\t\tparameterMap.put(\"inEditMode\", \"0\"); // activation button is placed on non-edit page!\n\t\t\tparameterMap.put(\"enableModeSwitch\", \"1\");\n\t\t\tfinal String activationUrl = createPageURL(MemberPage.class, parameterMap);\n\t\t\tuserRegistration.setActivationUrl(activationUrl);\n\t\t\tlogger.debug(\"activationUrl: \" + activationUrl);\n\n if (isOrganisationEdit())\n {\n \tlogger.debug(\"new Organisation must now be registered\");\n \tassert(null != newOrganisation);\n \t// Also register the new organisation\n \tlogger.debug(\"New organistation: \" + newOrganisation.getId());\n \tOrganisationRegistration organisationRegistration =\n \t\tnew OrganisationRegistration(newOrganisation);\n\n \tuserRegistration.setOrganisation(newOrganisation);\n \tDccdUserService.getService().handleRegistrationRequest(userRegistration, organisationRegistration);\n\n \tif (!organisationRegistration.isCompleted())\n \t{\n \t\t// something went wrong!\n \tlogger.debug(\"Could not complete organisation registration\");\n for (String stateKey : organisationRegistration.getAccumulatedStateKeys())\n {\n //error(getString(stateKey));\n \t// allow for substitution\n error(getString(stateKey, new Model(organisationRegistration)));\n }\n \t}\n }\n else\n {\n \tuserRegistration.setOrganisation(selectedOrganisation);\n \tuserRegistration = DccdUserService.getService().handleRegistrationRequest(userRegistration);\n }\n\n if (userRegistration.isCompleted())\n {\n disableForm(new String[] {});\n info(getString(\"missionAccomplished\", new Model(appUser)));\n //setResponsePage(new InfoPage(getString(\"registrationpage.header\")));\n // use specific page for the confirmation\n setResponsePage(new RegistrationConfirmPage(appUser));\n }\n else\n {\n \tlogger.debug(\"Could not complete user registration\");\n for (String stateKey : userRegistration.getAccumulatedStateKeys())\n {\n error(getString(stateKey));\n }\n }\n logger.debug(\"End onSubmit: \" + userRegistration.toString());\n }", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "public void RegisterClick(View view) {\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n Toast.makeText(getApplicationContext(), \"Register as a new user\", Toast.LENGTH_SHORT).show();\n }", "private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}", "@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}", "public void registerSuccessful() {\n\t\tnavigateTo(new LoginFragment(), true, null);\n\t}", "public String toRegister() {\r\n\t\treturn \"/admin/register.jsf\";\r\n\t}", "@When(\"^the user opens the registration webpage$\")\r\n\tpublic void the_user_opens_the_registration_webpage() throws Throwable {\n\t r.Reg();\r\n\t}", "public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "public Signup() {\n initComponents();\n }", "@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }", "@Override\n public void setRegisterFragment() {\n setTitle(R.string.register_account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, new RegisterFragment())\n .commit();\n }", "public SignUp() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }", "@RequestMapping(value = \"/register\", method = RequestMethod.GET)\n public ModelAndView displayRegisterForm() {\n return new ModelAndView(\"registerForm\", \"customer\", new Customer());\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString nameS = name.getText().toString();\n\t\t\t\tif (nameS.equals(\"\")) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"用户名不可为空\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString passOne = password.getText().toString();\n\t\t\t\tString passTwo = surePassword.getText().toString();\n\t\t\t\tif (!passOne.equals(passTwo)) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"密码不一致\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMap<String, String> xml = new HashMap<String, String>();\n\t\t\t\txml.put(\"head\", \"register\");\n\t\t\t\txml.put(\"username\", nameS);\n\t\t\t\txml.put(\"password\", passOne);\n\t\t\t\tUserRegister reg = new UserRegister(getApplicationContext(),\n\t\t\t\t\t\thandler);\n\t\t\t\treg.register(xml);\n\t\t\t}", "public RegisterPanel() {\n initComponents();\n }", "@Override\n public void onRegisterClick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n if (fm.findFragmentByTag(TAG_FRG_REG_1) != null)\n ft.hide(fm.findFragmentByTag(TAG_FRG_REG_1));\n ft.add(site.getId(), new ControladorRegistro(),TAG_FRG_REG_12);\n ft.addToBackStack(TAG_FRG_REG_12);\n ft.commit();\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);\n new Register();\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "public void Login_screen_to_Registration() {\n register_ = findViewById(R.id.register_);\n register_.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(Login_screen.this, Registration.class);\n startActivity(intent);\n }\n });\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tFont font = new Font(\"Arial\", Font.PLAIN, 12);\n\t\tdesk = new JDesktopPane();\n\t\tuserTextField = new JTextField();\n\t\tpassTextField = new JPasswordField();\n\n\t\tsetTitle(\"Register\");\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetSize(350, 250);\n\t\tsetAlwaysOnTop(true);\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetLocationRelativeTo(null);\n\t\tsetContentPane(desk);\n\t\tdesk.setBackground(Color.white);\n\n\t\tuserLabel = new JLabel(\"USERNAME\");\n\t\tpassLabel = new JLabel(\"PASSWORD\");\n\n\t\tuserTextField\n\t\t\t\t.setToolTipText(\"The username is limited to 10 characters.\");\n\t\tpassTextField.setToolTipText(\"The password must be 4 characters.\");\n\n\t\tuserLabel.setFont(font);\n\t\tpassLabel.setFont(font);\n\n\t\tregister = new JButton(\"register\");\n\t\tregister.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\tregister.addActionListener(new ActionListener() {\n\t\t\tprivate boolean uniqueUser;\n\t\t\tprivate boolean invalidUserOrPass;\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString userTemp = userTextField.getText();\n\t\t\t\tchar[] passTemp = passTextField.getPassword();\n\n\t\t\t\tuserTextField.setText(null);\n\t\t\t\tpassTextField.setText(null);\n\n\t\t\t\tString username = \"\";\n\t\t\t\tString password = \"\";\n\t\t\t\tint length = userTemp.length();\n\t\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\t\tif (!(userTemp.charAt(i) == ' '))\n\t\t\t\t\t\tusername += userTemp.charAt(i);\n\t\t\t\t}\n\t\t\t\tfor (char i : passTemp) {\n\t\t\t\t\tif (!(i == ' '))\n\t\t\t\t\t\tpassword += Character.valueOf(i);\n\t\t\t\t}\n\t\t\t\tfile = new RegisterManager();\n\t\t\t\ttry {\n\t\t\t\t\tfile.createFile();\n\t\t\t\t\tuniqueUser = file.compare(username, password);\n\t\t\t\t\tif (uniqueUser)\n\t\t\t\t\t\tinvalidUserOrPass = file.writeFile(username, password);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tif (!uniqueUser) {\n\t\t\t\t\tsetAlwaysOnTop(false);\n\t\t\t\t\tint error = JOptionPane.ERROR_MESSAGE;\n\t\t\t\t\tString title = \"Message error\";\n\t\t\t\t\tString message = \"The username already exist.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, title, error);\n\t\t\t\t} else if (!invalidUserOrPass) {\n\t\t\t\t\tsetAlwaysOnTop(false);\n\t\t\t\t\tint error = JOptionPane.ERROR_MESSAGE;\n\t\t\t\t\tString title = \"Invalid username or password.\\n\\n\";\n\t\t\t\t\tString message = \"The username is limited to 10 characters.\\n\"\n\t\t\t\t\t\t\t+ \"The password must be 4 characters.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, title, error);\n\t\t\t\t} else {\n\t\t\t\t\tdispose();\n\t\t\t\t\tString message = \"Player is created.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, \"\",\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\t\t}\n\t\t\t\tsetAlwaysOnTop(true);\n\t\t\t}\n\t\t});\n\n\t\tContainer content = getContentPane();\n\t\tcontent.add(userLabel);\n\t\tcontent.add(passLabel);\n\t\tcontent.add(userTextField);\n\t\tcontent.add(passTextField);\n\t\tcontent.add(register);\n\n\t\tinsets = content.getInsets();\n\t\tuserLabel.setBounds(insets.left + 80, insets.top + 51, 80, 20);\n\t\tpassLabel.setBounds(insets.left + 80, insets.top + 91, 80, 20);\n\t\tuserTextField.setBounds(insets.left + 160, insets.top + 50, 100, 25);\n\t\tpassTextField.setBounds(insets.left + 160, insets.top + 90, 100, 25);\n\t\tregister.setBounds(insets.left + 135, insets.top + 140, 85, 25);\n\n\t}", "public void register(View view) {\n Intent intent = new Intent(this, RegisterScreen.class);\n startActivity(intent);\n }", "public void signUpClicked(View view) {\n setContentView(R.layout.activity_register);\n System.out.println(\"sign up clicked\");\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tattempt_register();\n\t\t\t}", "@Test\r\n\tpublic void TC_01_verifyRegistrationPage() {\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t}", "private void goToRegistrationPage() {\n mAppModel.getErrorBus().removePropertyChangeListener(this);\n mAppModel.removePropertyChangeListener(this);\n mNavigationHandler.goToRegistrationPage();\n }", "public void register(View v)\n {\n\n Intent loginPage = new Intent(RegisterPage.this, Login.class);\n loginPage.putExtra(\"username\",username.getText().toString());\n loginPage.putExtra(\"password\",password.getText().toString());\n loginPage.putExtra(\"firstname\",firstName.getText().toString());\n loginPage.putExtra(\"lastname\",lastName.getText().toString());\n startActivity(loginPage);\n }", "@Override\n public void onSubmit()\n {\n Page page = ((DccdSession)Session.get()).getRedirectPage(RegistrationPage.class);\n if (page != null)\n {\n \tlogger.debug(\"Back to Page class: \" + page.getClass().getSimpleName());\n \tsetResponsePage(page);\n }\n else\n {\n \t// Homepage seems a good fallback\n \tsetResponsePage(HomePage.class);\n }\n }", "@GetMapping(value=\"/\")\n\tpublic String showRegistrationForm(WebRequest request, Model model) {\n\t\tUserDTO userDTO = new UserDTO();\n\t\tmodel.addAttribute(\"user\", userDTO);\n\t\treturn \"security/register\";\n\t}", "public Sign_up() {\n initComponents();\n }", "@Override\n\tpublic void gotoSignUp() {\n\t\tgetFragmentManager().beginTransaction()\n\t\t\t\t.replace(R.id.container, new SignUpFragment(), \"signup\")\n\t\t\t\t.commit();\n\n\t}", "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }", "public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }", "public SignUpGUI() {\n initComponents();\n \n //Text fields for registration credentials\n this.getUsername.setBorder(BorderFactory.createTitledBorder(\"Username\"));\n this.getEmail.setBorder(BorderFactory.createTitledBorder(\"Email\"));\n this.getPhone.setBorder(BorderFactory.createTitledBorder(\"Phone (optional)\"));\n this.getPassword.setBorder(BorderFactory.createTitledBorder(\"Password\"));\n this.getConfirmPassword.setBorder(BorderFactory.createTitledBorder(\"Confirm Password\"));\n \n this.setVisible(true);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}", "public Register() {\n initComponents();\n \n }", "public void register(View view) {\n Intent intent;\n intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n }", "private void userRegister(String n, String e, String phn, String addr, String user, String pass) {\n Connection dbcon = DBConnection.connectDB();\n if(dbcon != null){\n try {\n PreparedStatement st = (PreparedStatement) \n dbcon.prepareStatement(\"INSERT INTO registration (name,email,phone,address,username,password) VALUES(?,?,?,?,?,?)\");\n \n \n \n st.setString(1, n);\n st.setString(2, e);\n st.setString(3, phn);\n st.setString(4, addr);\n st.setString(5, user);\n st.setString(6, pass);\n \n \n int rs = st.executeUpdate();\n \n JOptionPane.showMessageDialog(this, \"Registration Successful.\", \n \"Success\", JOptionPane.INFORMATION_MESSAGE);\n \n name.setText(\"\");\n email.setText(\"\");\n phone.setText(\"\");\n address.setText(\"\");\n username.setText(\"\");\n password.setText(\"\");\n \n\n \n } catch (SQLException ex) {\n Logger.getLogger(Login.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n System.out.println(\"The connection is not available\");\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n nametxt = new javax.swing.JTextField();\n register = new javax.swing.JButton();\n cancel = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n passwordtxt = new javax.swing.JPasswordField();\n cPasswordtxt = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n setPreferredSize(new java.awt.Dimension(800, 600));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 0));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Register\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Name\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Password\");\n\n nametxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n nametxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nametxtActionPerformed(evt);\n }\n });\n\n register.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n register.setText(\"Register\");\n register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerActionPerformed(evt);\n }\n });\n\n cancel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Confirm Password\");\n\n passwordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n cPasswordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(167, 167, 167)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nametxt)\n .addComponent(passwordtxt, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE)\n .addComponent(cPasswordtxt)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addComponent(register, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(146, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(59, 59, 59)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(passwordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(cPasswordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(register)\n .addComponent(cancel))\n .addGap(40, 40, 40))\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void registerUser(View view) {\n this.closeKeyboard();\n this.validator.validate();\n if (this.validator.hasNoErrors()) {\n User user = createUser();\n RealmUser registeredUser = registerUserDetails(user);\n //TODO register on server.\n if (registeredUser != null) {\n new MockUserRegistrationService().registerUser(user.getFirstName(), user.getLastName(), user.getEmail(), user.getInsuranceProvider(), user.getInsurancePlan());\n doOnRegistrationSuccess();\n }\n }\n }", "public Sign_Up() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "private void showRegistrationform(HttpServletResponse response, boolean error) throws IOException {\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tPrintWriter out=response.getWriter();\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<title>Login</title>\");\r\n\t\tout.println(\"</head>\");\r\n\t\tout.println(\"<body>\");\r\n\t\tif(error) {\r\n\t\t\tresponse.sendRedirect(\"Unsuccessful.html\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tout.println(\"<form method=\\\"post\\\">\");\r\n\t\t\tout.println(\"UserName:<input type=\\\"text\\\" name=\\\"Username\\\"><br>\");\r\n\t\t\tout.println(\"Password:<input type=\\\"Password\\\" name=\\\"password\\\"><br>\");\r\n\t\t\tout.println(\"<input type=\\\"submit\\\" value=\\\"login\\\">\");\t\r\n\t\t\tout.println(\"<input type=\\\"reset\\\" value=\\\"cancel\\\">\");\t\r\n\t\t\tout.println(\"</form>\");\r\n\t\t\tout.println(\"</body>\");\r\n\t\t\tout.println(\"</html>\");\r\n\t\t}\r\n\t}", "public View() {\n initComponents();\n this.setTitle(\"Pet Registration\");\n this.setLocationRelativeTo(null);\n this.getRootPane().setDefaultButton(submitButton);\n this.setVisible(true);\n }", "private void registerEmailAddr() {\r\n\t\t\t\tWindow.setTitle(Common.APPNAME);\r\n\t\t\t\tmanualRegisterBtn.setEnabled(false);\r\n\t\t\t\tfinal String emailAddrProvided = emailAddrField.getText();\r\n\t\t\t\tserverResponseLabel.setText(\"\");\r\n\t\t\t\tregisterService.manualRegister(emailAddrProvided,\r\n\t\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\t\t\t\tdialogBox.setText(\"Email Address Registration - Failure\");\r\n\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\t\tif (\"Verified\".equalsIgnoreCase(result)) {\r\n\t\t\t\t\t\t\t\tString registerReturnUri = GWT.getHostPageBaseURL() + REGISTER_RETURN_URI;\r\n\t\t\t\t\t\t\t\tWindow.open(registerReturnUri, \"_self\", \"\"); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\temailAddrField.setText(\"\");\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tWindow.alert(result);\r\n\t\t\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\t\tdialogBox.setAnimationEnabled(true);\r\n\t\t\t\t\t\t\t\tdialogBox.setWidth(\"320px\");\r\n\t\t\t\t\t\t\t\tdialogBox.setText(result);\r\n\t\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tmanualRegisterBtn.setEnabled(true);\r\n\t\t\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n txtPhone = new javax.swing.JTextField();\n txtAddress = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n txtRepassword = new javax.swing.JPasswordField();\n btnRegister = new javax.swing.JButton();\n btnBackLogin = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 0, 51));\n jLabel1.setText(\"Đăng Ký\");\n\n jLabel2.setText(\"Họ Tên\");\n\n jLabel3.setText(\"SĐT\");\n\n jLabel4.setText(\"Địa chỉ\");\n\n jLabel5.setText(\"Mật khẩu\");\n\n jLabel6.setText(\"Nhập lại mật khẩu\");\n\n btnRegister.setText(\"Đăng Ký\");\n btnRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterActionPerformed(evt);\n }\n });\n\n btnBackLogin.setText(\"Trở lại\");\n btnBackLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackLoginActionPerformed(evt);\n }\n });\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 .addGroup(layout.createSequentialGroup()\n .addGap(444, 444, 444)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtName)\n .addComponent(txtPhone)\n .addComponent(txtAddress)\n .addComponent(txtPassword)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel1)))\n .addContainerGap(470, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(104, 104, 104)\n .addComponent(jLabel1)\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel3))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel4))\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(txtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(237, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btNewUser) {\n\t\t\tnew RegistrationFrame();\n\t\t\tthis.dispose();\n\t\t}\n\t\telse if(e.getSource() == btLogin) {\n\t\t\tSystem.out.println(\"you can successfully log in\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"clear\");\n\t\t}\n\t}", "@Override\n public void onSignUpBtnClick() {\n }", "public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n \n try\n {\n con = (Connection) db.establishConnection();\n String q = \"insert into registerUser (register_name, register_email, register_phone, register_pass)\"\n + \"values (?, ?, ?, ?)\";\n \n PreparedStatement prepareState = con.prepareStatement(q);\n \n prepareState.setString(1, reg.getRegisterName());\n prepareState.setString(2, reg.getRegisterEmail());\n prepareState.setString(3, reg.getRegisterPhone());\n prepareState.setString(4, reg.getRegisterPassword());\n \n prepareState.execute();\n con.close();\n \n return \"Successfully Registered..!!\";\n }\n \n catch(Exception ex)\n {\n System.err.println(\"Exception..!!\");\n System.err.println(\"Message: \" + ex.getMessage());\n \n return \"Data Not Registered..!!\";\n }\n \n }", "@Override\n public void onClick(View v) {\n firstNameText = capitalizeFirstLetter(firstNameET.getText().toString());\n lastNameText = capitalizeFirstLetter(lastNameET.getText().toString());\n emailText = (emailET.getText().toString()).toLowerCase();\n passwordText = passwordET.getText().toString();\n reEnterPasswordText = reEnterPasswordET.getText().toString();\n\n // Using the user-inputted information to register the user via this method\n registerUser(firstNameText, lastNameText, emailText, passwordText, reEnterPasswordText);\n }", "@SmallTest\n public void testForOpenRegisterScreen() {\n solo.clickOnButton(solo.getString(R.string.register));\n if (solo.waitForActivity(WelcomeActivity.class)) {\n // select Register button\n solo.clickOnButton(0);\n\n // add user name/password/confirmed password, then create account\n if (solo.waitForActivity(RegisterActivity.class)) {\n solo.enterText(0, \"wchoosilp\");\n solo.enterText(1, \"123\");\n solo.enterText(2, \"123\");\n solo.clickOnButton(1);\n }\n }\n }", "@Override\n public void onClick(View view) {\n registerUser();\n }", "public void register(View view) {\n if(radioGroup.getCheckedRadioButtonId() == -1){\n Snackbar.make(getCurrentFocus(),\"Please select one of the Options: Student or Professor\",Snackbar.LENGTH_LONG).show();\n return;\n }\n if (usn.getText().toString().trim().equals(\"\")){\n usn.setError(\"This field cannot be empty\");\n return;\n } else if (password.getText().toString().trim().equals(\"\")){\n password.setError(\"This field cannot be empty\");\n return;\n } else if(password.getText().toString().trim().length() < 8){\n password.setError(\"Password too short.\");\n return;\n } else if(confirmPassword.getText().toString().trim().equals(\"\")){\n confirmPassword.setError(\"This field cannot be empty\");\n return;\n } else if(!(password.getText().toString().trim()\n .equals(confirmPassword.getText().toString().trim()))){\n password.setError(\"Passwords do not match\");\n confirmPassword.setError(\"Passwords do not match\");\n return;\n }\n progressBar.setVisibility(View.VISIBLE);\n mAuth.signInAnonymously().addOnSuccessListener(authResult -> myRef.child(usn.getText().toString().trim()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n try {\n String username = dataSnapshot.child(\"emailId\").getValue().toString();\n String password = confirmPassword.getText().toString().trim();\n System.out.println(username);\n mAuth.createUserWithEmailAndPassword(username,password)\n .addOnCompleteListener(RegisterActivity.this,task -> {\n Log.d(\"TAG\",\"Created User:\"+task.isSuccessful());\n if(!task.isSuccessful()){\n Toast.makeText(RegisterActivity.this, \"Error occurred.\" +\n \" Could not create user. Please \" +\n \"check your internet connection\", Toast.LENGTH_LONG).show();\n return;\n }\n else {\n startActivity(new Intent(RegisterActivity.this,LoginActivity.class));\n finish();\n }\n });\n\n }catch (NullPointerException e){\n usn.setError(\"Invalid USN. Please check your input or contact\" +\n \" your department for help\");\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n }))\n .addOnFailureListener(e -> {\n progressBar.setVisibility(View.INVISIBLE);\n Snackbar.make(view,\"Something went wrong.Please check if you have an internet connection or that the details\" +\n \"entered are valid\",Snackbar.LENGTH_LONG).show();\n });\n }" ]
[ "0.82409036", "0.7909835", "0.76184964", "0.7462782", "0.7455885", "0.7278761", "0.7078401", "0.70414364", "0.70253325", "0.7024707", "0.6992092", "0.6905386", "0.68681234", "0.6861904", "0.6861046", "0.6839008", "0.682522", "0.6822589", "0.6820091", "0.6772317", "0.67588", "0.6748524", "0.6742653", "0.6730304", "0.67281944", "0.6702067", "0.66929924", "0.6688143", "0.6680633", "0.6669388", "0.6667251", "0.66602015", "0.66489017", "0.6646235", "0.6605288", "0.65801984", "0.65735996", "0.6572123", "0.65588933", "0.6558776", "0.6552128", "0.6544929", "0.6543937", "0.65383065", "0.65339464", "0.6533433", "0.65037996", "0.6498986", "0.648714", "0.64840394", "0.64477617", "0.64310783", "0.64219147", "0.64219147", "0.641719", "0.6410373", "0.6378816", "0.6375134", "0.636759", "0.63467354", "0.6345397", "0.63434374", "0.63414764", "0.6323189", "0.6322668", "0.6310047", "0.62976414", "0.6295359", "0.62942207", "0.62908274", "0.6285182", "0.6281973", "0.62663436", "0.6265526", "0.6256519", "0.62451905", "0.6236791", "0.62354976", "0.6234584", "0.6219969", "0.6209842", "0.62041557", "0.619549", "0.6188021", "0.6179391", "0.6179156", "0.6179156", "0.6179156", "0.6179156", "0.6174929", "0.61747354", "0.6171064", "0.61688715", "0.61590683", "0.61580104", "0.6156693", "0.61512274", "0.61504406", "0.6148197", "0.6147234" ]
0.6999549
10
Returns an interface for randomly accessing the underlying orientation vectors.
public IOrientationImageRandomAccess getRandomAccess();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Vector getFacingVector() {\n double[] rotation = {Math.cos(this.rot), Math.sin(this.rot)};\n Vector v = new Vector(rotation);\n v = VectorUtil.direction(v);\n Vector w = VectorUtil.direction(this.getR());\n v.plus(w);\n return v;\n }", "public abstract double getOrientation();", "public void RandomOrientation(){\n\n\t\tfor (int i=0;i<population.length;i++){\n\t\t\tpopulation[i].RandomOrientation();\n\t\t}\n\n\t}", "public interface Rotateable extends InteractiveEntity {\n Palstance getPalstance();\n double getIntetia();\n}", "org.stu.projector.Orientation getOrientations(int index);", "java.util.List<org.stu.projector.Orientation> \n getOrientationsList();", "public interface Orientation {\n\n int LEFT = 0; //左\n int TOP = 1; //顶\n int RIGHT = 2; //右\n int BOTTOM = 4; //底\n int ALL = 8; //所有方向\n int NONE = 16; //无方向\n\n}", "void orientation(double xOrientation, double yOrientation, double zOrientation);", "public interface Rotatable {\n\tvoid rotate();\n\n}", "Vec3[] getInvRot()\n {\n Vec3[] pvRot = new Vec3[3];\n pvRot[0] = m.<Vec4>getColumn(0).getXYZ();\n pvRot[1] = m.<Vec4>getColumn(1).getXYZ();\n pvRot[2] = m.<Vec4>getColumn(2).getXYZ();\n return pvRot;\n }", "public IOrientation getOrientation();", "VectorType11 getVector();", "public abstract ImmutableVector getImmutableVector();", "public final Vector2D getOrientation() {\n return orientation;\n }", "public interface IOrientableBlock {\n\n /**\n * @return if this block uses metadata to store its rotation.\n */\n boolean usesMetadata();\n\n /**\n * @param world\n * @param x\n * @param y\n * @param z\n * @return a IOrientable if applicable\n */\n IOrientable getOrientable(IBlockAccess world, int x, int y, int z);\n\n}", "public int getOrientation(){ return mOrientation; }", "public double getRotation();", "public java.lang.Object getRobotOrientation() throws CallError, InterruptedException {\n return (java.lang.Object)service.call(\"getRobotOrientation\").get();\n }", "public int getDeviceRotation();", "@Override\n\tpublic void setOrientation(Vector3 orient) {\n\n\t}", "public static void testVecteur(){\n\t\tVecteur u = new Vecteur(1,0);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\t\n\t}", "public Orientation getOrientation(){return this.orientation;}", "@Test\n public void testCondition4()\n {\n Double[] angles = {75.0, 75.0, 71.0};\n _renderable.orientation(angles);\n Double testVal[] = _renderable.orientation();\n assertEquals(\"x angle did not get set,\", angles[0], testVal[0], 2);\n assertEquals(\"y angle did not get set,\", angles[1], testVal[1], 2);\n assertEquals(\"z angle did not get set,\", angles[2], testVal[2], 2);\n }", "public int getRotations();", "public abstract Vector4fc rotate(IQuaternionf quat);", "public Vector3f getRotationVec() {\n\t\treturn m_xforms[NvCameraXformType.MAIN].m_rotate;\n\t}", "@Generated\n @Selector(\"orientation\")\n @NInt\n public native long orientation();", "public abstract double[] getVector(int[] location);", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public void VuforiaOrientator() {\n }", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public float getOrientacion() { return orientacion; }", "public int getCameraSensorRotation();", "default void getRotationVector(FrameVector3DBasics rotationVectorToPack)\n {\n rotationVectorToPack.setReferenceFrame(getReferenceFrame());\n getRotationVector((Vector3DBasics) rotationVectorToPack);\n }", "DQuaternionC getQuaternion ();", "public interface Camera {\n Vector3f getPosition();\n\n float getYaw();\n\n float getPitch();\n\n float getRoll();\n}", "@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}", "DMatrix3C getRotation();", "@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}", "public interface IRole {\n\n\tint lifeScore; \n\tint xAxisPosition;\n\tint yAxisPosition;\n\tString name;\n\n\tpublic int hit();\n\tpublic void walk(int dx, int y);\n\tpublic void sufferHit(int damage);\n\tpublic String getName();\n}", "public int getOrientation()\n {\n return m_orientation;\n }", "@Test\n public void testCondition5()\n {\n Double[] coordinates = null;\n Double before[] = _renderable.orientation();\n _renderable.orientation(coordinates);\n Double after[] = _renderable.orientation();\n assertEquals(\"orientation array changed\", before[0], after[0], 0.01);\n assertEquals(\"orientation array changed\", before[1], after[1], 0.01);\n assertEquals(\"orientation array changed\", before[2], after[2], 0.01);\n }", "double getRotation(Point2D target, boolean pursuit);", "public Vector getRotationVector(Location l, Block main, TurnDirection dir) {\n\t\tLocation n = l.clone().subtract(main.getLocation());\n\t\tint dz = n.getBlockX();\n\t\tint dx = n.getBlockZ();\n\t\t\n\t\tif (dir == TurnDirection.RIGHT)\n\t\t\tdx *= -1;\n\t\telse\n\t\t\tdz *= -1;\n\t\t\n\t\treturn new Vector(dx, n.getBlockY(), dz);\n\t}", "@Override\r\n public Orientation getOrientation() {\r\n return this.route.getOrientation();\r\n }", "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "public interface ILOLRoleVisual {\n String getName();\n\n String getLeftShoe();\n\n String getMedal();\n}", "public interface IGestureMotion {\n\n int[] requiredSensors ();\n}", "private Orientation() {\n }", "public double getRot() {\n return this.rot;\n }", "public static void main( String args[] )\n {\n float phi = 0;\n float chi = 0;\n float omega = 45;\n\n IPNS_SCD_SampleOrientation test = \n new IPNS_SCD_SampleOrientation( phi, chi, omega );\n\n System.out.println( \"phi = \" + phi + \n \", chi = \" + chi + \n \", omega = \" + omega );\n System.out.println( \"Goniometer rotation: .........................\"); \n System.out.println( test.getGoniometerRotation().toString() );\n System.out.println( \"Goniometer rotation inverse: .................\"); \n System.out.println( test.getGoniometerRotationInverse().toString() );\n }", "public T caseOrientation(Orientation object)\n {\n return null;\n }", "@Override\n\tpublic Vec3 getRotationData(IBlockState state) {\n\t\treturn null;\n\t}", "Vector getZeroVector();", "public interface InterfaceSceneRenderer {\n\n\n float [] getCamPos();\n float [] getCamRot();\n List<float[]> getLightsPos ();\n List<glRenderableShape> getRenderableShapes();\n}", "void vectorFromWorld(double px, double py, double pz, DVector3 result);", "@Test\n public void getAngleVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getAngle() == 90);\n }", "public int getOrientation()\n\t{\n\t\treturn orientation;\n\t}", "void getOffsetQuaternion(DQuaternion result);", "@Override\n\tpublic float getOrientation() {\n\t\treturn body.getAngle();\n\t}", "public abstract void rotate();", "public Orientation getOrientation() {\n return this.orientation;\n }", "public interface IDisplayObject\n{\n /**\n * METHOD: set the IDisplayObject position along x,y,z axes\n * @param x double giving the new position along x axis.\n * @param y double giving the new position along y axis.\n * @param z double giving the new position along z axis.\n */\n void position(double x, double y, double z);\n \n /**\n * METHOD: rotate the IDisplayObject about x,y,z axes\n * @param xOrientation double giving the new orientation about x axis.\n * @param yOrientation double giving the new orientation about y axis.\n * @param zOrientation double giving the new orientation about z axis.\n */\n void orientation(double xOrientation, double yOrientation, double zOrientation);\n \n \n}", "public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }", "AxisOrientation getAxisOrientation();", "public int getReflector() {\r\n\t\treturn rotors.getReflector();\r\n\t}", "public abstract Vector2[] getVertices();", "private static OrientationImage createOrientation(int detect, Class imageType) {\n\t\tif( isScaleSpace(detect)) {\n\t\t\tClass integralType = GIntegralImageOps.getIntegralType(imageType);\n\t\t\tOrientationIntegral orientationII = FactoryOrientationAlgs.sliding_ii(null, integralType);\n\t\t\treturn FactoryOrientation.convertImage(orientationII, imageType);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic void setOrientation(Vector o)\n\t{\n\t\tsuper.setOrientation(o);\n\t\tif (position != null && normal != null)\n\t\t{\n\t\t\toX = o.dup().norm();\n\t\t\toY = normal.cross(oX).norm();\n\t\t\toX = oY.cross(normal).norm();\n\t\t}\n\t}", "public PointF getRotationPivot()\n {\n return rotationPivot;\n }", "godot.wire.Wire.Quat getQuatValue();", "public abstract Vector4fc rotateY(float angle);", "public RandomIA() {\n\t\trandom = new Random();\n\t}", "public interface VoxelNoise {\n /*\n * This method returns the voxel type for a location\n */\n public int noise(int xin, int yin, int zin);\n}", "protected void generateVectors(int direction)\n\t{\n\t\tswitch(direction)\n\t\t{\n\t\t\tcase AnimationManager.BACK:\n\t\t\t\tvector_x = 0;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.BACK_LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.BACK_RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = -1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = 0;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = 0;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT:\n\t\t\t\tvector_x = 0;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT_RIGHT:\n\t\t\t\tvector_x = 1;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t\tcase AnimationManager.FRONT_LEFT:\n\t\t\t\tvector_x = -1;\n\t\t\t\tvector_y = 1;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "public abstract Vector4fc rotateAbout(float angle, float x, float y, float z);", "public float getRotation()\n {\n return rotation;\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public interface VectorOperations extends MatrixOperations\n{\n /**\n * \n * Multiplies the vectors in a specific way, not sure of the term\n * \n * @param a\n * @param b\n * @return\n */\n public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }\n \n /**\n * \n * Makes the tensor product of this and a\n * \n * @param a\n * @return\n */\n public Vector tensorProduct( final Vector a);\n \n /**\n * \n * Pretty much like List.sublist\n * \n * @param indexFrom\n * @param indexTo\n * @return\n */\n public Vector get( final int indexFrom, final int indexTo );\n \n /**\n * \n * @return size of the vector\n */\n public int size();\n}", "public java.beans.PropertyDescriptor componentOrientationPropertyDescriptor() {\n\tjava.beans.PropertyDescriptor aDescriptor = null;\n\ttry {\n\t\ttry {\n\t\t\t/* Using methods via getMethod is the faster way to create the componentOrientation property descriptor. */\n\t\t\tjava.lang.reflect.Method aGetMethod = null;\n\t\t\ttry {\n\t\t\t\t/* Attempt to find the method using getMethod with parameter types. */\n\t\t\t\tjava.lang.Class aGetMethodParameterTypes[] = {};\n\t\t\t\taGetMethod = getBeanClass().getMethod(\"getComponentOrientation\", aGetMethodParameterTypes);\n\t\t\t} catch (Throwable exception) {\n\t\t\t\t/* Since getMethod failed, call findMethod. */\n\t\t\t\thandleException(exception);\n\t\t\t\taGetMethod = findMethod(getBeanClass(), \"getComponentOrientation\", 0);\n\t\t\t};\n\t\t\tjava.lang.reflect.Method aSetMethod = null;\n\t\t\ttry {\n\t\t\t\t/* Attempt to find the method using getMethod with parameter types. */\n\t\t\t\tjava.lang.Class aSetMethodParameterTypes[] = {\n\t\t\t\t\tjava.awt.ComponentOrientation.class\n\t\t\t\t};\n\t\t\t\taSetMethod = getBeanClass().getMethod(\"setComponentOrientation\", aSetMethodParameterTypes);\n\t\t\t} catch (Throwable exception) {\n\t\t\t\t/* Since getMethod failed, call findMethod. */\n\t\t\t\thandleException(exception);\n\t\t\t\taSetMethod = findMethod(getBeanClass(), \"setComponentOrientation\", 1);\n\t\t\t};\n\t\t\taDescriptor = new java.beans.PropertyDescriptor(\"componentOrientation\"\n\t\t\t, aGetMethod, aSetMethod);\n\t\t} catch (Throwable exception) {\n\t\t\t/* Since we failed using methods, try creating a default property descriptor. */\n\t\t\thandleException(exception);\n\t\t\taDescriptor = new java.beans.PropertyDescriptor(\"componentOrientation\"\n\t\t\t, getBeanClass());\n\t\t};\n\t\t/* aDescriptor.setBound(false); */\n\t\t/* aDescriptor.setConstrained(false); */\n\t\t/* aDescriptor.setDisplayName(\"componentOrientation\"); */\n\t\t/* aDescriptor.setShortDescription(\"componentOrientation\"); */\n\t\t/* aDescriptor.setExpert(false); */\n\t\t/* aDescriptor.setHidden(false); */\n\t\t/* aDescriptor.setValue(\"preferred\", new Boolean(false)); */\n\t\t/* aDescriptor.setValue(\"ivjDesignTimeProperty\", new Boolean(true)); */\n\t\taDescriptor.setValue(\"enumerationValues\", new Object[] {\n\t\t\t\t\"UNKNOWN\",java.awt.ComponentOrientation.UNKNOWN,\"java.awt.ComponentOrientation.UNKNOWN\",\n\t\t\t\t\"LEFT_TO_RIGHT\",java.awt.ComponentOrientation.LEFT_TO_RIGHT,\"java.awt.ComponentOrientation.LEFT_TO_RIGHT\",\n\t\t\t\t\"RIGHT_TO_LEFT\",java.awt.ComponentOrientation.RIGHT_TO_LEFT,\"java.awt.ComponentOrientation.RIGHT_TO_LEFT\",\n\t\t});\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn aDescriptor;\n}", "public abstract interface View {\r\n public abstract int worldToRealX(double x);\r\n\r\n public abstract int worldToRealY(double y);\r\n\r\n public abstract double realToWorldX(int x);\r\n\r\n public abstract double realToWorldY(int y);\r\n}", "public abstract Vector4fc rotateZ(float angle);", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "public interface IImaeView<T> extends IView<T> {\n\n void getImageRandom(ImageRes imageRes);\n}", "public static String generateOri(){\r\n String Orientation[] = {\"DownLeft\",\"Down\",\"DownRight\",\"UpLeft\",\"Up\",\"UpRight\",\"Left\",\"Right\"};\r\n Random r = new Random();\r\n int n = r.nextInt(8);\r\n return Orientation[n];\r\n }", "public interface OrientationListener {\n\t \n /**\n * On orientation changed.\n *\n * @param azimuth the azimuth\n * @param pitch the pitch\n * @param roll the roll\n */\n public void onOrientationChanged(float azimuth, \n float pitch, float roll);\n \n /**\n * Top side of the phone is up\n * The phone is standing on its bottom side.\n */\n public void onTopUp();\n \n /**\n * Bottom side of the phone is up\n * The phone is standing on its top side.\n */\n public void onBottomUp();\n \n /**\n * Right side of the phone is up\n * The phone is standing on its left side.\n */\n public void onRightUp();\n \n /**\n * Left side of the phone is up\n * The phone is standing on its right side.\n */\n public void onLeftUp();\n \n /**\n * screen down.\n */\n public void onFlipped();\n}", "abstract Truerandomness newInstance();", "@UML(identifier=\"proxy\", obligation=MANDATORY, specification=ISO_19107)\n OrientableSurface[] getProxy();", "public Vector3f getRotationVec(int xform) {\n\t\treturn m_xforms[xform].m_rotate;\n\t}", "public Orientation getOrientation() {\n\t\treturn mOrientation;\n\t}", "Plane getPlane();", "public static android.renderscript.Element createVector(android.renderscript.RenderScript rs, android.renderscript.Element.DataType dt, int size) { throw new RuntimeException(\"Stub!\"); }", "public interface AirboatSensor {\n\n\t// Get 3D raw gyro readings\n\tpublic double[] getGyro();\n}", "void setRotations(Vec2 rotations);", "public interface WB_RandomPoint extends WB_PointGenerator {\n\n\t/**\n\t * Set the seed for the RNG.\n\t *\n\t * @param seed\n\t * @return this\n\t */\n\tpublic WB_RandomPoint setSeed(final long seed);\n\n\t/**\n\t * Get the next random point.\n\t *\n\t * @return\n\t */\n\t@Override\n\tpublic WB_Point nextPoint();\n\n\t/**\n\t * Get the next random vector.\n\t *\n\t * @return\n\t */\n\tpublic WB_Vector nextVector();\n\n\t/**\n\t * Reset the RNG.\n\t */\n\tpublic void reset();\n\n\t/**\n\t * Set point offset.\n\t *\n\t * @param offset\n\t * @return\n\t */\n\tpublic WB_RandomPoint setOffset(WB_Coord offset);\n\n\t/**\n\t * Set point offset.\n\t *\n\t * @param x\n\t * @param y\n\t * @return\n\t */\n\tpublic WB_RandomPoint setOffset(double x, double y);\n\n\t/**\n\t * Set point offset.\n\t *\n\t * @param x\n\t * @param y\n\t * @param z\n\t * @return\n\t */\n\tpublic WB_RandomPoint setOffset(double x, double y, double z);\n\n}", "public static MotorEncoderFixture<Victor> getVictorPair() {\n return new MotorEncoderFixture<Victor>() {\n @Override\n protected Victor giveMotorController() {\n return new Victor(kVictorChannel);\n }\n\n @Override\n protected DigitalInput giveDigitalInputA() {\n return new DigitalInput(2);\n }\n\n @Override\n protected DigitalInput giveDigitalInputB() {\n return new DigitalInput(3);\n }\n\n @Override\n public int getPDPChannel() {\n return kVictorPDPChannel;\n }\n };\n }", "public interface ISVMVector {\n\n\t/**\n\t * Liefert den SVM vector fuer die SVM light zurueck.\n\t *\n\t * @return den SVM vector fuer die SVM light\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tString toSVMString();\n\n\t/**\n\t * Trick: Vektor als CSV Exportieren\n\t * @return .\n\t */\n\tString toCSVString();\n\n\t/**\n\t * Liefer den Label des vectors.\n\t *\n\t * @return Den Label des vectors.\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tLabel getLabel();\n\n\t/**\n\t * Setzt den Label des vectors.\n\t *\n\t * @param label - der label\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tvoid setLabel(Label label);\n\n}", "private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}", "private double[] getRandomVector(int dimension) {\n double[] s = new double[dimension];\n Random gen = new Random();\n for (int i = 0; i < s.length; ++i) {\n s[i] = (2 * gen.nextDouble()) - 1;\n }\n return s;\n }" ]
[ "0.61000615", "0.60938805", "0.60388327", "0.5870709", "0.57940096", "0.56992954", "0.56735957", "0.56536734", "0.5631332", "0.5608031", "0.5589252", "0.5524211", "0.5490602", "0.5456387", "0.5431462", "0.54313767", "0.5423302", "0.54117066", "0.53971237", "0.5396145", "0.53464425", "0.5340568", "0.53390056", "0.53225315", "0.5249272", "0.5248076", "0.52446026", "0.5206707", "0.51999164", "0.51940745", "0.51170075", "0.51033705", "0.51012665", "0.5083119", "0.50763524", "0.5052022", "0.50444204", "0.5031919", "0.50252086", "0.5007099", "0.4997357", "0.49966326", "0.49888423", "0.49881837", "0.4974443", "0.49685526", "0.49678248", "0.49604145", "0.4958664", "0.4953505", "0.494811", "0.49452114", "0.4941356", "0.49394637", "0.49346873", "0.49334514", "0.4923919", "0.49236465", "0.49234456", "0.49205166", "0.49201596", "0.4918178", "0.49086", "0.49052477", "0.4903187", "0.49028912", "0.49005204", "0.49003392", "0.4897238", "0.48918507", "0.48894984", "0.48838443", "0.48820063", "0.48713806", "0.48705196", "0.4869431", "0.48663956", "0.48469347", "0.4817122", "0.4803958", "0.47979334", "0.47974238", "0.47954944", "0.47934672", "0.4790189", "0.47901508", "0.47881258", "0.47879684", "0.47867656", "0.4781863", "0.47810465", "0.47786903", "0.4777095", "0.47767437", "0.4775074", "0.4769848", "0.4766754", "0.47649473", "0.47595444", "0.47592303" ]
0.56301415
9
We want the parent to handle all touch events. There's a lot going on there, and there is no reason to overwrite that functionality. If we do, bad things will happen.
@Override public boolean onTouchEvent(MotionEvent e) { final boolean ret = super.onTouchEvent(e); int action = e.getActionMasked(); if (action == MotionEvent.ACTION_UP) { if (!mWasFlingCalledForGesture) { ((CarLayoutManager) getLayoutManager()).settleScrollForFling(this, 0); } mWasFlingCalledForGesture = false; } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void touch()\n {\n\n }", "@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n return super.onTouchEvent(event);\r\n }", "@Override\r\n\tpublic boolean dispatchTouchEvent( MotionEvent e ) {\n\t\tint action = e.getAction();\r\n\t\tfloat x = e.getRawX();\r\n\t\tfloat y = e.getRawY();\r\n\t\tLog.d(TAG, \"onTouch dev:\" + e.getDeviceId() + \" act:\" + action + \" ind:\" + e.getActionIndex() + \" @ \"+ x + \",\" + y );\r\n\t\tnativeTouch( appPtr, action, x, y );\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\n\t\treturn super.onTouchEvent(event);\n\t}", "@Override\r\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tmGestureDetector.onTouchEvent(ev);\r\n\t\treturn super.dispatchTouchEvent(ev);\r\n\t}", "@Override\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tgetParent().requestDisallowInterceptTouchEvent(true);\n\t\treturn super.dispatchTouchEvent(ev);\n\t}", "@Override\r\n public boolean dispatchTouchEvent(MotionEvent ev) {\n getParent().requestDisallowInterceptTouchEvent(true);\r\n return super.dispatchTouchEvent(ev);\r\n\r\n }", "@Override\r\n\tpublic boolean onTouchEvent(final MotionEvent e) {\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n\t\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\t\ttry {\n\t\t\t\treturn super.dispatchTouchEvent(ev);\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "@Override\r\n\t\tpublic boolean onTouchEvent(MotionEvent event) {\n\r\n\t\t\treturn true;\r\n\t\t}", "@Override\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tLog.i(\"TestEvent\", \"activity->dispatchTouchEvent \" + TouchEventUtil.getTouchAction(ev.getAction()));\n\t\treturn super.dispatchTouchEvent(ev);\n\t}", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n int action = event.getActionMasked(); // event type\n int actionIndex = event.getActionIndex(); // pointer (i.e., finger)\n\n // determine which type of action the given MotionEvent\n // represents, then call the corresponding handling method\n if (action == MotionEvent.ACTION_DOWN ||\n action == MotionEvent.ACTION_POINTER_DOWN)\n {\n touchStarted(event.getX(actionIndex), event.getY(actionIndex),\n event.getPointerId(actionIndex));\n } // end if\n else if (action == MotionEvent.ACTION_UP ||\n action == MotionEvent.ACTION_POINTER_UP)\n {\n touchEnd(event.getPointerId(actionIndex));\n } // end else if\n else\n {\n touchMoved(event);\n } // end else\n\n invalidate(); // redraw\n return true; // consume the touch event\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent ev) {\n\t\tLog.i(\"TestEvent\", \"activity->onTouchEvent \" + TouchEventUtil.getTouchAction(ev.getAction()));\n\t\treturn super.onTouchEvent(ev);\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\t\targ0.getParent().requestDisallowInterceptTouchEvent(true);\n\t\t\t\treturn false;\n\n\t\t\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent ev) {\n return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev);\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n int action = event.getAction();\n tb.tbOnTouch(action);\n return true;\n }", "@Override\n public void onTouch(int index) {\n }", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n public boolean onTouch(View v, MotionEvent event) {\n\treturn mGestureDetector.onTouchEvent(event);\r\n }", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n super.dispatchTouchEvent ( event );\n\n mScaleGestureDetector.onTouchEvent ( event );\n return mScaleGestureDetector.onTouchEvent ( event );\n\n }", "@SuppressLint(\"ClickableViewAccessibility\")\n @Override\n public boolean onTouchEvent(MotionEvent event) {\n return true;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n manager.receiveTouch(event);\n\n return true;\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\tprotected void registerTouch() {\n\t\t\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n gestureDetectorCompat.onTouchEvent(event);\n // Return true to tell android OS that event has been consumed, do not pass it to other event list\n // eners.\n return true;\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n public boolean dispatchTouchEvent(MotionEvent event){\n checkGestureForSwipe(event);\n return super.dispatchTouchEvent(event);\n }", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\r\n\t\treturn this.mGestureDetector.onTouchEvent( event );\r\n\t}", "@Override\n public boolean onTouchEvent( MotionEvent event )\n {\n if ( gesture_detector.onTouchEvent( event ) )\n {\n return true;\n }\n else\n {\n return super.onTouchEvent( event );\n }\n }", "@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n return true;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n // Pass activity on touch event to the gesture detector.\n gestureDetectorCompat.onTouchEvent(event);\n // Return true to tell android OS that event has been consumed, do not pass it to other event listeners.\n return true;\n }", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tthis.mGestureDetector.onTouchEvent( event );\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent me){\n this.detector.onTouchEvent(me);\n return super.dispatchTouchEvent(me);\n }", "void touchEvent(MotionEvent event);", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n // Disallow the touch request for parent scroll on touch of child view\n v.getParent().requestDisallowInterceptTouchEvent(true);\n return false;\n }", "@Override\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tsuper.dispatchTouchEvent(ev);\n\t\treturn gdDetector.onTouchEvent(ev);\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return mHandleView.dispatchTouchEvent(event);\n }", "@Override\r\n public boolean onTouch(View v, MotionEvent event) {\r\n // Disallow the touch request for parent scroll on touch of child view\r\n v.getParent().requestDisallowInterceptTouchEvent(true);\r\n return false;\r\n }", "@Override\r\n public boolean onTouch(View v, MotionEvent event) {\r\n // Disallow the touch request for parent scroll on touch of child view\r\n v.getParent().requestDisallowInterceptTouchEvent(true);\r\n return false;\r\n }", "@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (mGestureDetector != null) {\n return mGestureDetector.onMotionEvent(event);\n }\n return super.onGenericMotionEvent(event);\n }", "@Override\r\n\tpublic boolean dispatchTouchEvent(MotionEvent event) {\n\t\tLog.i(TAG, \"MyLinearLayout() dispatchTouchEvent event = \" + event.getAction());\r\n\t\treturn super.dispatchTouchEvent(event);\r\n\t}", "@Override\n\t\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\t\tif (!canCancelEvents) {\n\t\t\t\trequestDisallowInterceptTouchEvent(true);\n\t\t\t}\n\n\t\t\treturn super.dispatchTouchEvent(ev);\n\t\t}", "@SuppressLint(\"ClickableViewAccessibility\")\n @Override\n public boolean onTouchEvent(MotionEvent event) {\n return gestureHandler.onTouchEvent(event);\n }", "@android.annotation.SuppressLint({\"ClickableViewAccessibility\"})\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTouch(android.view.View r11, android.view.MotionEvent r12) {\n /*\n r10 = this;\n boolean r0 = r10.mZoomEnabled\n r1 = 0\n r2 = 1\n if (r0 == 0) goto L_0x00a1\n r0 = r11\n android.widget.ImageView r0 = (android.widget.ImageView) r0\n boolean r0 = hasDrawable(r0)\n if (r0 == 0) goto L_0x00a1\n android.view.ViewParent r0 = r11.getParent()\n int r3 = r12.getAction()\n r4 = 3\n if (r3 == r4) goto L_0x0033\n switch(r3) {\n case 0: goto L_0x001e;\n case 1: goto L_0x0033;\n default: goto L_0x001d;\n }\n L_0x001d:\n goto L_0x005d\n L_0x001e:\n if (r0 == 0) goto L_0x0024\n r0.requestDisallowInterceptTouchEvent(r2)\n goto L_0x002f\n L_0x0024:\n uk.co.senab.photoview.log.Logger r11 = uk.co.senab.photoview.log.LogManager.getLogger()\n java.lang.String r0 = \"PhotoViewAttacher\"\n java.lang.String r3 = \"onTouch getParent() returned null\"\n r11.i(r0, r3)\n L_0x002f:\n r10.cancelFling()\n goto L_0x005d\n L_0x0033:\n float r0 = r10.getScale()\n float r3 = r10.mMinScale\n int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))\n if (r0 >= 0) goto L_0x005d\n android.graphics.RectF r0 = r10.getDisplayRect()\n if (r0 == 0) goto L_0x005d\n uk.co.senab.photoview.PhotoViewAttacher$AnimatedZoomRunnable r9 = new uk.co.senab.photoview.PhotoViewAttacher$AnimatedZoomRunnable\n float r5 = r10.getScale()\n float r6 = r10.mMinScale\n float r7 = r0.centerX()\n float r8 = r0.centerY()\n r3 = r9\n r4 = r10\n r3.<init>(r5, r6, r7, r8)\n r11.post(r9)\n r11 = 1\n goto L_0x005e\n L_0x005d:\n r11 = 0\n L_0x005e:\n uk.co.senab.photoview.gestures.GestureDetector r0 = r10.mScaleDragDetector\n if (r0 == 0) goto L_0x0095\n boolean r11 = r0.isScaling()\n uk.co.senab.photoview.gestures.GestureDetector r0 = r10.mScaleDragDetector\n boolean r0 = r0.isDragging()\n uk.co.senab.photoview.gestures.GestureDetector r3 = r10.mScaleDragDetector\n boolean r3 = r3.onTouchEvent(r12)\n if (r11 != 0) goto L_0x007e\n uk.co.senab.photoview.gestures.GestureDetector r11 = r10.mScaleDragDetector\n boolean r11 = r11.isScaling()\n if (r11 != 0) goto L_0x007e\n r11 = 1\n goto L_0x007f\n L_0x007e:\n r11 = 0\n L_0x007f:\n if (r0 != 0) goto L_0x008b\n uk.co.senab.photoview.gestures.GestureDetector r0 = r10.mScaleDragDetector\n boolean r0 = r0.isDragging()\n if (r0 != 0) goto L_0x008b\n r0 = 1\n goto L_0x008c\n L_0x008b:\n r0 = 0\n L_0x008c:\n if (r11 == 0) goto L_0x0091\n if (r0 == 0) goto L_0x0091\n r1 = 1\n L_0x0091:\n r10.mBlockParentIntercept = r1\n r1 = r3\n goto L_0x0096\n L_0x0095:\n r1 = r11\n L_0x0096:\n android.view.GestureDetector r11 = r10.mGestureDetector\n if (r11 == 0) goto L_0x00a1\n boolean r11 = r11.onTouchEvent(r12)\n if (r11 == 0) goto L_0x00a1\n r1 = 1\n L_0x00a1:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: uk.co.senab.photoview.PhotoViewAttacher.onTouch(android.view.View, android.view.MotionEvent):boolean\");\n }", "@Override\n public boolean onInterceptTouchEvent(MotionEvent ev) {\n return false;\n }", "@Override\r\n\tpublic void onTouchMove(LTouch e) {\n\t\t\r\n\t}", "@Override\n public boolean onTouchEvent (MotionEvent me){\n detector.onTouchEvent(me);\n return super.onTouchEvent(me);\n }", "@Override\n public boolean onInterceptTouchEvent(MotionEvent event) {\n return false;\n }", "public interface TouchHandler extends View.OnTouchListener {\n public boolean isTouchDown(int pointer);\n public int getTouchX(int pointer);\n public int getTouchY(int pointer);\n public List<Input.TouchEvent> getTouchEvents();\n}", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n return gestureDetector.onTouchEvent(e);\n }", "@Override\n\tpublic boolean onTouch(View view, MotionEvent event) {\n\t\treturn this._gestureDetector.onTouchEvent(event);\n\t}", "@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n return mGestureDetector.onMotionEvent(event)\n || super.onGenericMotionEvent(event);\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n if (MotionEvent.ACTION_OUTSIDE == event.getAction()) {\n return true;\n }\n\n // Delegate everything else to Activity.\n return super.onTouchEvent(event);\n }", "@Override\n public boolean onTouchEvent(MotionEvent event)\n {\n return gestureDetector.onTouchEvent(event);\n }", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n return DefaultApplication.isWaiting() ? false : super.dispatchTouchEvent(ev);\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn gestureScanner.onTouchEvent(event);\n\n\t\t\t}", "public boolean onTouchEvent(MotionEvent event) {\n\tif(state==MAIN_MENU || state==RESUME)\n\t{ags.onTouchEvent(event);}\n\t\n\telse if(state==GAME_SCREEN){\n\t//\tat= new AndroidTouch(ag);\n\t\tag.onTouchEvent(event);\n\t}\n\t\n\t\n\treturn super.onTouchEvent(event);\n\t\n}", "@Override\n public boolean onTouch(View view, MotionEvent me){\n game.onTouch(me);\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n\n boolean spend = needTouch;\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n dx = event.getX();\n dy = event.getY();\n rdx = event.getRawX();\n rdy = event.getRawY();\n spend = touchDown(dx, dy);\n break;\n case MotionEvent.ACTION_MOVE:\n float cx = event.getX();\n float cy = event.getY();\n rcx = event.getRawX();\n rcy = event.getRawY();\n spend = touchMove(cx, cy);\n break;\n case MotionEvent.ACTION_UP:\n rcx = event.getRawX();\n rcy = event.getRawY();\n touchUp();\n break;\n case MotionEvent.ACTION_CANCEL:\n rcx = event.getRawX();\n rcy = event.getRawY();\n touchCancel();\n break;\n }\n if(mOnClickListener != null){\n return super.onTouchEvent(event);\n }\n\n invalidate();\n return spend;\n }", "@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (mGestureDetector != null) {\n return mGestureDetector.onMotionEvent(event);\n }\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent ev) {\n int action = ev.getAction();\n\n switch(action) {\n case MotionEvent.ACTION_MOVE:\n processNewMoveEvent(ev);\n break;\n }\n\n return super.onTouchEvent(ev);\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tint action = event.getAction();\n\t\tswitch (action) {\n\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t//Log.i(\"MainActivity\", \"MainActivity-onTouchEvent action = action down\");\n\t\t\t\tbreak;\n\n\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t//Log.i(\"MainActivity\", \"MainActivity-onTouchEvent action = action up\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn super.onTouchEvent(event);\n\t}", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tLog.i(TAG, \"MyLinearLayout() onTouchEvent event = \" + event.getAction());\r\n\t\treturn super.onTouchEvent(event);\r\n\t}", "@Override\r\n public boolean onTouch(View v, MotionEvent event)\r\n {\n switch(event.getActionIndex())\r\n {\r\n case MotionEvent.ACTION_DOWN:\r\n break;\r\n case MotionEvent.ACTION_UP:\r\n break;\r\n case MotionEvent.ACTION_MOVE:\r\n tapAnswer();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return mPager.dispatchTouchEvent(event);\n }", "@Override\n public boolean dispatchTouchEvent(MotionEvent ev) {\n if (mDetector.onTouchEvent(ev)) {\n ev.setAction(MotionEvent.ACTION_CANCEL);\n }\n\n return super.dispatchTouchEvent(ev);\n }", "public void handleTouchPress(float normalizedX, float normalizedY) {\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return viewPager.dispatchTouchEvent(event);\n }", "@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (this.gestureDetector != null) {\n return this.gestureDetector.onMotionEvent(event);\n }\n return false;\n }", "@Override\n\tpublic boolean dispatchTouchEvent(MotionEvent event) {\n\t\tfloat x = event.getRawX();\n\t\tfloat y = event.getRawY();\n\t\tfloat w = MScore.WinWidthCur; //getWidth();\n\t\tfloat h = MScore.WinHeightCur; //getHeight();\n\n\t\tif (event.getPointerCount() == 2) {\n\t\t\tfloat x0, x1, y0, y1;\n\t\t\tx0 = event.getX(0);\n\t\t\tx1 = event.getX(1);\n\t\t\ty0 = event.getY(0);\n\t\t\ty1 = event.getY(1);\n\n\t\t\tif (x0 < w && x1 < w &&\n\t\t\t\t\ty0 < h && y1 < h)\n\t\t\t{\n\t\t\t\tMScore.dispatchTouchEvent(event);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (x < w && y < h)\n\t\t\t{\n\t\t\t\tMScore.dispatchTouchEvent(event);\n\t\t\t}\n\t\t}\n\n\t\treturn super.dispatchTouchEvent(event);\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n \tthis.count();\n\t\treturn super.onTouchEvent(event);\n\t}", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn DetailTreasureChestActivity.this.detector.onTouchEvent(event);\n\t\t\t}", "public boolean onTouchEvent(MotionEvent event) {\n\n int action = MotionEventCompat.getActionMasked(event);\n\n switch (action) {\n case (MotionEvent.ACTION_DOWN):\n\n return true;\n case (MotionEvent.ACTION_MOVE):\n\n return true;\n case (MotionEvent.ACTION_UP):\n\n return true;\n case (MotionEvent.ACTION_CANCEL):\n\n return true;\n case (MotionEvent.ACTION_OUTSIDE):\n\n return true;\n default:\n return super.onTouchEvent(event);\n }\n }", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tsuper.onTouchEvent(event);\r\n\t\tif (event.getAction() == MotionEvent.ACTION_UP) {\r\n\t\t\ttriggerClick(event.getX(), event.getY());\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic void onTouchUp(LTouch e) {\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent ev) {\n\t\tboolean handled = handleTouch(v, ev);\n\t\tprintMotionEvent(ev, handled);\n\t\treturn handled;\n\t}", "@Override\n public void onUpOrCancelMotionEvent() {\n \n }", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\tULog.i(WordAdapter.this, \"onTouch() \");\n\t\treturn true;\n\t}", "public boolean onTouch(View view, MotionEvent event) {\n if (view.getId() ==R.id.twoactsend) {\n view.getParent().requestDisallowInterceptTouchEvent(true);\n switch (event.getAction()&MotionEvent.ACTION_MASK){\n case MotionEvent.ACTION_UP:\n view.getParent().requestDisallowInterceptTouchEvent(false);\n break;\n }\n }\n return false;\n }", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n\n return false;\n // 这里如果返回true的话,touch事件将被拦截\n // 拦截后 PopupWindow的onTouchEvent不被调用,这样点击外部区域无法dismiss\n }", "@Override\n public boolean dispatchTouchEvent(MotionEvent event)\n {\n \tswitch(event.getAction())\n\t\t{\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tgesture_xa=event.getX();\n\t\t\tgesture_ya=event.getY();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tgesture_xe=event.getX();\n\t\t\tgesture_ye=event.getY();\n\t\t\t//Toast.makeText(SpecialsActivity.this, String.valueOf(gesture_xe-gesture_xa)+\"/\"+String.valueOf(gesture_ye-gesture_ya)+\"/\"+String.valueOf(displayWidth/2)+\"/\"+String.valueOf(displayHeight*0.1), Toast.LENGTH_SHORT).show();\n\t\t\tif(Math.abs(gesture_ye-gesture_ya) < displayHeight*0.1)\n\t\t\t{\n\t\t\t\tif( gesture_xe-gesture_xa > displayWidth/2 )\n\t\t\t\t{\n\t\t\t\t\t// wipe from left to right\n\t\t\t\t\tIntent intent = new Intent(Callbacksplit.getMainActivity(), ConfigActivity.class);\n\t\t\t\t\tfinish();\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse if( -(gesture_xe-gesture_xa) > displayWidth/2 )\n\t\t\t\t{\n\t\t\t\t\t// wipe from right to left\n\t\t\t\t\tfinish();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n \tsuper.dispatchTouchEvent(event);\n \treturn true;\n }", "@Override\r\n\tpublic boolean onInterceptTouchEvent(MotionEvent event) {\n\t\tLog.i(TAG, \"MyLinearLayout() onInterceptTouchEvent event = \" + event.getAction());\r\n\t\treturn super.onInterceptTouchEvent(event);\r\n\t}", "@Override\n\tpublic boolean onInterceptTouchEvent(MotionEvent ev) {\n\t\tint action = ev.getAction();\n\t\tswitch (action) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tmDownX = ev.getX();\n\t\t\tmDownY = ev.getY();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tsuper.onInterceptTouchEvent(ev);\n\t\t\treturn false;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onInterceptTouchEvent(ev);\n\t}", "@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n return mViewModel.getAppUtil().detectObscuredWindow(this, event) || super.dispatchTouchEvent(event);\n }", "@Override public boolean onTouchEvent(MotionEvent event) {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\t\t\trequestUnbufferedDispatch(event);\n\t\t}\n\n\t\tdispatchMotionEvent(event);\n\t\treturn true;\n\t}", "@Override\n\tprotected void unregisterTouch() {\n\t\t\n\t}" ]
[ "0.75378555", "0.7413738", "0.738011", "0.7357488", "0.729136", "0.7260573", "0.71922266", "0.7189694", "0.7078167", "0.7065379", "0.70419693", "0.70347494", "0.701672", "0.70130974", "0.70009977", "0.69531393", "0.69520736", "0.69520736", "0.6951235", "0.69494647", "0.6927529", "0.6913533", "0.69059646", "0.69059646", "0.69059646", "0.69010264", "0.6900108", "0.68915915", "0.68771434", "0.68704736", "0.6860498", "0.68528664", "0.68483424", "0.6846825", "0.6820954", "0.6812722", "0.6812722", "0.6804044", "0.6804044", "0.6797383", "0.6788989", "0.67674595", "0.6755731", "0.6732606", "0.67312825", "0.6726412", "0.67020166", "0.6689153", "0.667811", "0.66577256", "0.66317546", "0.6627438", "0.6627438", "0.66182107", "0.6610284", "0.6582929", "0.65746", "0.65651935", "0.6562494", "0.6550527", "0.6545317", "0.6536293", "0.6520817", "0.6504318", "0.64918107", "0.6491208", "0.648439", "0.6478677", "0.64757645", "0.6424879", "0.6412848", "0.6408299", "0.63946223", "0.6390846", "0.6386595", "0.6378336", "0.6377956", "0.63445807", "0.6324274", "0.6320792", "0.6301836", "0.62917393", "0.629057", "0.6274044", "0.6273859", "0.6250464", "0.6237253", "0.62356025", "0.6207566", "0.61799496", "0.61694986", "0.6159237", "0.61464834", "0.6145547", "0.61382276", "0.61186934", "0.6114079", "0.6104122", "0.61023694", "0.61017823" ]
0.6183708
89
TODO Autogenerated method stub
private static void oddEven(int a) { if(a%2 ==0) { System.out.println("number is even"); } else { System.out.println("number is odd"); } }
{ "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
REMOVED Unused Var KReference s0_ref;
public JJITInstruction run(KFrame frame) throws Exception { KRegister[] regs = null; KLocalThread thread = frame.getThread(); KReference ref; // **REMOVED Unused Var** KFrame nextFrame = null; // *********[14] LDC(59->"char") // **REMOVED Substitution** s0_ref = R59; // *********[15] INVOKEVIRTUAL(jnt.Bench.Bench,parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V) regs = new KRegister[4]; regs[3] = R59; regs[2] = frame.pop(); regs[1] = frame.pop(); ref = frame.popRef(); regs[0] = ref; frame.setProgramCounter(11); // **REMOVED Substitution** nextFrame = thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature("parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V"),regs); return ((JJITInstruction)thread.pushFrame(c_memman.getKClass(ref).getVirtualMethodBySignature("parseError(Ljava/io/StreamTokenizer;Ljava/lang/String;Ljava/lang/String;)V"),regs).getCurrentInstruction()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ref() {\n\n\t}", "private void checkReference()\r\n {\r\n if (myKeyRef.get() == null)\r\n {\r\n myValue = null;\r\n }\r\n }", "public void softReference()\n {\n \t //====NOTE=====>>> RSN how SoftReference is created\n SoftReference<ReferenceExample> ex = new SoftReference<ReferenceExample>(new ReferenceExample(\"SoftRef\"));\n //====NOTE=====>>> RSN SUPER IMP : Note how to get hold of real object, by get() method\n System.out.println(\"Soft refrence :: \" + ex.get().getOrigin());\n \n int counter=0;\n while(counter<5)\n {\n counter++;\n System.gc();\n }\n \n System.out.println(\"SoftReference still Valid after 5 GC:\" + ex.get().getStatus() + \"Orig=\" + ex.get().getOrigin());\n }", "boolean isZeroReference() {\n return refCount == 0;\n }", "Symbol getRef();", "public void setReference(Reference ref)\n {\n this.ref = ref;\n }", "java.lang.String getRef();", "public boolean canBeReferencedByIDREF() {\n/* 171 */ return false;\n/* */ }", "public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }", "public VectorN xref0 ();", "@Override\n public void setCurSharedRef(MPlaceholder arg0)\n {\n \n }", "void setKeyRefer(int entryIndex, OakRReference keyReferBuffer) {\n if (entryIndex == Chunk.NONE) {\n return;\n }\n long keyReference = getKeyReference(entryIndex);\n int[] keyArray = longToInts(keyReference);\n int blockID = keyArray[BLOCK_ID_LENGTH_ARRAY_INDEX] >> KEY_BLOCK_SHIFT;\n int keyPosition = keyArray[POSITION_ARRAY_INDEX];\n int length = keyArray[BLOCK_ID_LENGTH_ARRAY_INDEX] & KEY_LENGTH_MASK;\n keyReferBuffer.setReference(blockID, keyPosition, length);\n }", "@Override\n\tpublic String getReferenceKey() {\n\t\treturn KEY;\n\t}", "Variable getRefers();", "public void weakReference_holdingRealObj()\n {\n int counter=0;\n //====NOTE=====>>> RSN how weak reference is created\n WeakReference<ReferenceExample> ex = new WeakReference<ReferenceExample>(new ReferenceExample(\"WeakRef2\"));\n System.out.println(\"Weak reference before GC...\" + \"Origin=\" + ex.get().getOrigin());\n ReferenceExample realEx = ex.get();\n \n //while(ex.get()!=null)\n while(counter <10)\n {\n counter++;\n System.gc();\n }\n System.out.println(\"Weak reference after:: \" + counter +\" GCs. Value after GC:\" + ex.get());\n }", "public Reference() {\n super();\n }", "public abstract String getRefKey();", "public String getRef() {\n return ref;\n }", "@Override\n public String getReferenceInfo()\n {\n return \"\";\n }", "String getReference();", "String getReference();", "public ReferenceHelper getReferenceHelper();", "boolean hasRef();", "void setRef(java.lang.String ref);", "public String reference(Object obj) {\n return null;\n }", "public SoftReference getReference ()\r\n {\r\n return _reference;\r\n }", "@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}", "public SetOnceRef(Object ref) {\n this(ref, false, true);\n }", "Object visitReference(ReferenceNode node, Object state);", "public String getReference();", "public String getReference();", "VarRef createVarRef();", "void getReference(Configuration c)\n {\n c_ref= c;\n }", "public abstract void setRefKey(String paramString);", "public abstract Value getReferenceValue();", "public void func_70295_k_() {}", "protected LibReference() {\n\t}", "VariableRef createVariableRef();", "public void setSeRef(String seRef) {\n this.seRef = seRef;\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "public SetOnceRef() {\n this(null, false, false);\n }", "private void initSvcInstRef()\n\t{\n\t\tSVC_INST_REF.setType(SVC_INST_NAME);\n\t\tSVC_INST_REF.setValue(SVC_INST_NAME);\n\t}", "protected void removeReference()\n {\n }", "public void hiliteByReference(String ref) {\n\t}", "void unsetRef();", "public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }", "@Override\n protected boolean usesNoRefReads() {\n return true;\n }", "void visitReferenceValue(ReferenceValue referenceValue);", "public abstract byte getReferenceKind();", "public void setRefId (int refId)\n {\n this.refId = refId;\n }", "public void setReference(String reference);", "VarReference createVarReference();", "public void addReference() {\r\n mReferenced = true;\r\n }", "public String getReference() {\n return reference;\n }", "interface ReferenceEntry<K, V> {\n\n\n ValueReference<K, V> getValueReference();\n void setValueReference(ValueReference<K, V> valueReference);\n ReferenceEntry<K, V> getNext();\n int getHash();\n K getKey();\n\n long getAccessTime();\n void setAccessTime(long time);\n\n long getWriteTime();\n void setWriteTime(long time);\n\n ReferenceEntry<K, V> getNextInWriteQueue();\n void setNextInWriteQueue(ReferenceEntry<K, V> next);\n ReferenceEntry<K, V> getPreviousInWriteQueue();\n void setPreviousInWriteQueue(ReferenceEntry<K, V> previous);\n\n ReferenceEntry<K, V> getNextInAccessQueue();\n void setNextInAccessQueue(ReferenceEntry<K, V> next);\n ReferenceEntry<K, V> getPreviousInAccessQueue();\n void setPreviousInAccessQueue(ReferenceEntry<K, V> previous);\n\n abstract class AbstractReferenceEntry<K, V> implements ReferenceEntry<K, V> {\n @Override\n public ValueReference<K, V> getValueReference() {\n return null;\n }\n\n @Override\n public void setValueReference(ValueReference<K, V> valueReference) {\n\n }\n\n @Override\n public ReferenceEntry<K, V> getNext() {\n return null;\n }\n\n @Override\n public int getHash() {\n return 0;\n }\n\n @Override\n public K getKey() {\n return null;\n }\n\n @Override\n public long getAccessTime() {\n return 0;\n }\n\n @Override\n public void setAccessTime(long time) {\n }\n\n @Override\n public long getWriteTime() {\n return 0;\n }\n\n @Override\n public void setWriteTime(long time) {\n\n }\n\n @Override\n public ReferenceEntry<K, V> getNextInWriteQueue() {\n return this;\n }\n\n @Override\n public void setNextInWriteQueue(ReferenceEntry<K, V> next) {\n\n }\n\n @Override\n public ReferenceEntry<K, V> getPreviousInWriteQueue() {\n return this;\n }\n\n @Override\n public void setPreviousInWriteQueue(ReferenceEntry<K, V> previous) {\n\n }\n\n @Override\n public ReferenceEntry<K, V> getNextInAccessQueue() {\n return this;\n }\n\n @Override\n public void setNextInAccessQueue(ReferenceEntry<K, V> next) {\n\n }\n\n @Override\n public ReferenceEntry<K, V> getPreviousInAccessQueue() {\n return this;\n }\n\n @Override\n public void setPreviousInAccessQueue(ReferenceEntry<K, V> previous) {\n\n }\n }\n\n class StrongEntry<K, V> extends AbstractReferenceEntry<K, V> {\n final K key;\n final int hash;\n final ReferenceEntry<K, V> next;\n volatile ValueReference<K, V> valueReference = (ValueReference<K, V>) ValueReference.UNSET;\n\n public StrongEntry(K key, int hash, ReferenceEntry<K, V> next) {\n this.key = key;\n this.hash = hash;\n this.next = next;\n }\n\n @Override\n public K getKey() {\n return key;\n }\n\n @Override\n public ValueReference<K, V> getValueReference() {\n return valueReference;\n }\n\n @Override\n public int getHash() {\n return hash;\n }\n\n @Override\n public ReferenceEntry<K, V> getNext() {\n return next;\n }\n\n @Override\n public void setValueReference(ValueReference<K, V> valueReference) {\n this.valueReference = valueReference;\n }\n }\n\n class StrongAccessEntry<K, V> extends StrongEntry<K, V> {\n volatile long accessTime = Long.MAX_VALUE;\n StrongAccessEntry(K key, int hash, ReferenceEntry<K, V> next) {\n super(key, hash, next);\n }\n\n @Override\n public long getAccessTime() {\n return accessTime;\n }\n\n @Override\n public void setAccessTime(long accessTime) {\n this.accessTime = accessTime;\n }\n\n ReferenceEntry<K, V> nextAccess = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getNextInAccessQueue() {\n return nextAccess;\n }\n\n @Override\n public void setNextInAccessQueue(ReferenceEntry<K, V> next) {\n this.nextAccess = next;\n }\n\n ReferenceEntry<K, V> previousAccess = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getPreviousInAccessQueue() {\n return previousAccess;\n }\n\n @Override\n public void setPreviousInAccessQueue(ReferenceEntry<K, V> previous) {\n this.previousAccess = previous;\n }\n }\n\n final class StrongWriteEntry<K, V> extends StrongEntry<K, V> {\n volatile long writeTime = Long.MAX_VALUE;\n StrongWriteEntry(K key, int hash, ReferenceEntry<K, V> next) {\n super(key, hash, next);\n }\n @Override\n public long getWriteTime() {\n return writeTime;\n }\n\n @Override\n public void setWriteTime(long time) {\n this.writeTime = time;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> nextWrite = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getNextInWriteQueue() {\n return nextWrite;\n }\n\n @Override\n public void setNextInWriteQueue(ReferenceEntry<K, V> next) {\n this.nextWrite = next;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> previousWrite = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getPreviousInWriteQueue() {\n return previousWrite;\n }\n\n @Override\n public void setPreviousInWriteQueue(ReferenceEntry<K, V> previous) {\n this.previousWrite = previous;\n }\n }\n\n final class StrongAccessWriteEntry<K, V> extends StrongEntry<K, V> {\n StrongAccessWriteEntry(K key, int hash, ReferenceEntry<K, V> next) {\n super(key, hash, next);\n }\n\n // The code below is exactly the same for each access entry type.\n\n volatile long accessTime = Long.MAX_VALUE;\n\n @Override\n public long getAccessTime() {\n return accessTime;\n }\n\n @Override\n public void setAccessTime(long time) {\n this.accessTime = time;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> nextAccess = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getNextInAccessQueue() {\n return nextAccess;\n }\n\n @Override\n public void setNextInAccessQueue(ReferenceEntry<K, V> next) {\n this.nextAccess = next;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> previousAccess = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getPreviousInAccessQueue() {\n return previousAccess;\n }\n\n @Override\n public void setPreviousInAccessQueue(ReferenceEntry<K, V> previous) {\n this.previousAccess = previous;\n }\n\n // The code below is exactly the same for each write entry type.\n\n volatile long writeTime = Long.MAX_VALUE;\n\n @Override\n public long getWriteTime() {\n return writeTime;\n }\n\n @Override\n public void setWriteTime(long time) {\n this.writeTime = time;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> nextWrite = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n @Override\n public ReferenceEntry<K, V> getNextInWriteQueue() {\n return nextWrite;\n }\n\n @Override\n public void setNextInWriteQueue(ReferenceEntry<K, V> next) {\n this.nextWrite = next;\n }\n\n // Guarded By Segment.this\n ReferenceEntry<K, V> previousWrite = (ReferenceEntry<K, V>) NullEntry.INTANCE;\n\n @Override\n public ReferenceEntry<K, V> getPreviousInWriteQueue() {\n return previousWrite;\n }\n\n @Override\n public void setPreviousInWriteQueue(ReferenceEntry<K, V> previous) {\n this.previousWrite = previous;\n }\n }\n\n class NullEntry extends AbstractReferenceEntry<Object, Object> {\n static final NullEntry INTANCE = new NullEntry();\n\n private NullEntry() {\n\n }\n }\n}", "public boolean refCountDown() {\n\t\treferenceCounter--;\n\t\treturn (referenceCounter > 0) ? true : false;\n\t}", "public abstract double getReference();", "public abstract double getReference();", "public void setOriginalRef(Reference originalRef) {\n this.originalRef = originalRef;\n }", "int getReferenceKind();", "private Ref handleRef() throws XMLStreamException{\n String name = reader.getAttributeValue(0);\n nextTag();\n nextTag();\n return new Ref(definedGrammar, name);\n }", "protected void releaseReferences() {\r\n\r\n\t}", "public final void deleteIfZeroRefCount() {\n }", "@Override\n public boolean getDefineAlternateReferenceLocationFlag() {\n return false;\n }", "public final String getReference() {\n return reference;\n }", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "public final void addRef() { refCount.incrementAndGet(); }", "boolean isSetRef();", "void resolveRefs(SymbolTable symbolTable)\n {\n \tEnumeration e = defs.elements();\n\twhile (e.hasMoreElements())\n\t{\n\t Definition d=(Definition) e.nextElement();\n d.resolveRefs(symbolTable); \n\t}\n }", "public C6135q(C6060h hVar, C6207k0 k0Var) {\n super(hVar);\n C6888i.m12438e(hVar, \"annotations\");\n C6888i.m12438e(k0Var, \"correspondingProperty\");\n this.f12120g = k0Var;\n }", "private void kk12() {\n\n\t}", "public int s() {\r\n/* 247 */ return this.k;\r\n/* */ }", "boolean hasReference();", "public void setRootRef(Reference rootRef) {\n this.rootRef = rootRef;\n }", "protected abstract String getRefName();", "public void incrRefCounter() {\n\t\tthis.refCounter++;\n\t}", "public native void pythonDecRef();", "public void setSRefNo(String sRefNo) {\n this.sRefNo = sRefNo;\n }", "public java.lang.String getReference1() {\n return reference1;\n }", "boolean hasHadithReferenceNo();", "public SetOnceRef(Object ref, boolean allowNull) {\n this(ref, allowNull, true);\n }", "public final void rule__SelfReference__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2803:1: ( rule__SelfReference__Group__0__Impl rule__SelfReference__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2804:2: rule__SelfReference__Group__0__Impl rule__SelfReference__Group__1\n {\n pushFollow(FOLLOW_rule__SelfReference__Group__0__Impl_in_rule__SelfReference__Group__05522);\n rule__SelfReference__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__SelfReference__Group__1_in_rule__SelfReference__Group__05525);\n rule__SelfReference__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "void incCount() {\n ++refCount;\n }", "public void l0() {\n b bVar = (b) this.c0.get();\n if (bVar != null) {\n bVar.a();\n }\n }", "public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}", "LocalReference createLocalReference();", "public IDReferences()\n {\n idReferences = new Hashtable();\n idValidation = new Hashtable();\n }", "public void testDefaultValue() {\n if(referenceDefault == null) {\n System.out.println(\"Default value of any reference variable is null!\");\n }\n }", "private Sysreferences() {\n\t\tsuper(\"sysreferences\", org.jooq.util.ase.sys.Dbo.DBO);\n\t}", "public final void rule__Reference__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2740:1: ( rule__Reference__Group__0__Impl rule__Reference__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2741:2: rule__Reference__Group__0__Impl rule__Reference__Group__1\n {\n pushFollow(FOLLOW_rule__Reference__Group__0__Impl_in_rule__Reference__Group__05400);\n rule__Reference__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Reference__Group__1_in_rule__Reference__Group__05403);\n rule__Reference__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public static void c0() {\n\t}", "void setReference(String reference);", "public void mo5361b(C0275kc kcVar) {\n throw null;\n }", "public void setReferences(org.purl.dc.elements.x11.SimpleLiteral references)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(REFERENCES$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(REFERENCES$0);\r\n }\r\n target.set(references);\r\n }\r\n }", "public T caseAlgorithmReferences(AlgorithmReferences object)\r\n {\r\n return null;\r\n }", "public void setRefId(Integer refId) {\n this.refId = refId;\n }", "public java.lang.String getReference() {\n return reference;\n }", "@Override\r\n\tpublic int getInt(Ref ref) {\n\t\treturn 0;\r\n\t}" ]
[ "0.65108436", "0.6419445", "0.6210244", "0.61460865", "0.61125726", "0.6010901", "0.59129256", "0.5832765", "0.57659376", "0.57524246", "0.572385", "0.56646", "0.56609994", "0.56392014", "0.5632371", "0.55959314", "0.5574714", "0.55726016", "0.5559134", "0.5497672", "0.5497672", "0.54973996", "0.5479577", "0.5474158", "0.54679877", "0.5462988", "0.54325294", "0.5427801", "0.5423964", "0.53907114", "0.53907114", "0.5370988", "0.5366953", "0.53600717", "0.53552777", "0.5347096", "0.53448576", "0.53402174", "0.533386", "0.5326803", "0.53256196", "0.53214544", "0.53143346", "0.5298739", "0.5296848", "0.5296412", "0.5295893", "0.5286189", "0.5277209", "0.52767336", "0.5274868", "0.5268045", "0.52554035", "0.52460515", "0.5230039", "0.5225707", "0.52237296", "0.52237296", "0.5222925", "0.52180296", "0.5216201", "0.5215362", "0.52149284", "0.5214522", "0.52145165", "0.5203986", "0.5203335", "0.5201261", "0.51987916", "0.5195791", "0.51897454", "0.5187549", "0.5184869", "0.5178784", "0.5170433", "0.51655096", "0.51512814", "0.5147333", "0.5144748", "0.5140636", "0.51338357", "0.51286733", "0.51262665", "0.5125039", "0.5119846", "0.5118444", "0.5115813", "0.511396", "0.5111881", "0.51099753", "0.51099503", "0.51099503", "0.51099503", "0.51099074", "0.51021487", "0.5094052", "0.50862104", "0.5083254", "0.5078779", "0.5073021", "0.50726783" ]
0.0
-1
nome do bem a ser leiloado contrutor
public Leilao (String n, double v) { nome= n; valorMinimo=v; leilaoAberto=true; lanceVencedor= new Lance ("inical",valorMinimo); lancesRecebidos = new ArrayList <Lance>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Banco(String nome) { // essa linha é uma assinatura do metodo\n \tthis.nome = nome;\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void setNome(String nome){\r\n this.nome = nome;\r\n }", "public void setNombreCompleto(String nombreCompleto);", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public void setNome(String nome) {\r\n this.nome = nome;\r\n }", "public void setNome(String nome) {\r\n this.nome = nome;\r\n }", "@Test\r\n\tpublic void CT04ConsultarLivroComNomeEmBranco() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_branco();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}", "Ris(String nome) {\n this.nome = nome;\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public void setNome(String nome) {\n this.nome = nome;\n }", "public String getNome(){\r\n return nome;\r\n }", "public void setNome (String nome) {\r\n\t\tthis.nome=nome;\r\n\t}", "public String getNome(){\n\t\treturn nome;\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public String getNome () { return this.nome; }", "String getNome();", "public void setNomDistrito(String nomDistrito);", "public String getNome(){\r\n return this.nome;\r\n }", "public void setNome(String pNome){\n this.nome = pNome;\n }", "public String getNome() {\r\n return nome;\r\n }", "public String getNome() {\r\n return nome;\r\n }", "public String getNome() {\n return this.nome;\n }", "public String getNome();", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}", "public String getnome()\n {\n return this.nome;\n }", "public MacchinaStatiFiniti(String nome)\r\n\t{\r\n\t\tthis.nome=nome;\r\n\t\tcorrente=null;\r\n\t}", "public Fruitore(String nomeUtente)\r\n\t{\r\n\t\tthis.nomeUtente = nomeUtente;\r\n\t}", "public void setNome(String nome) {\r\n\t\tthis.nome = nome;\r\n\t}", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public String getNome() {\n return nome;\n }", "public String getNome() {\n return nome;\n }", "public String getNome() {\n return nome;\n }", "public String getNome() {\n return nome;\n }", "public String getNome() {\n return nome;\n }", "public String getNome() {\n return nome;\n }", "public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }", "public String getNome(){\n return this.nome;\n }", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "public void setNome(String nome) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.nome = nome;\r\n\t}", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}", "public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}", "public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}", "public void setNome(String nome) {\n\t\tthis.nome = nome;\n\t}", "public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getUsername());\n txt_nombre_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getNombre() + \" \" + GestorAdministrativo.getInstance().getAdministrativo().getApellido());\n //borrar hasta aca\n }", "@Test\r\n\tpublic void CT04CadastrarUsuarioComNomeEmBranco() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = new Usuario();\r\n\t\t\r\n\r\n\t\ttry {\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNomeEmBranco();\r\n\t\t\tfail(\"deveria lançar uma exceção\");\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome invalido\", e.getMessage());\r\n\t\t}\r\n\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "public String getNome()\n {\n return this.nome;\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "String getPrimeiroNome();", "public void setNomeUtente(String nomeUtente)\r\n\t{\r\n\t\tthis.nomeUtente = nomeUtente; \r\n\t}", "public Cgg_res_oficial_seguimiento_usuario(){}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public String getNombreCompleto();", "private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServico.criandoNome(this, nome, \"text\");\n servidor.adicionarJogador(nome);\n servidor.atualizarLugares();\n } else {\n JanelaAlerta.janelaAlerta(null, \"Este nome já existe/inválido!\", null);\n enviarRequisicaoPerguntarNome();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "String getUltimoNome();", "@Override\n\tpublic String damePatente() {\n\t\treturn \"TJH 123\";\n\t}", "public String getNombreLibro()\n {\n return nombre;\n }", "@Override\n\tpublic Contato buscaContatoNome(String nome) {\n\t\treturn null;\n\t}", "public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "private ControleurAcceuil(){ }", "public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }", "void setNome(String nome);", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void setNomor(String nomor) {\n this.nomor = nomor;\n }", "public String getContrasena() {return contrasena;}", "@Override\n public String IDTipoHabitacion() {\n // TODO Auto-generated method stub\n return \"Habitacion Privada\";\n }", "void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }", "public String getNombre() {return nombre;}", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public void setNombreClase(String nombreClase) { this.nombreClase = nombreClase; }", "public void insere (String nome)\n {\n //TODO\n }", "public String getNombreCompleto() {\r\n return nombreCompleto;\r\n }", "public Modul buscarModul(String nomModul) throws ExceptionBuscar;", "public String nome() {\n\t\treturn this.nome;\n\t}", "public String getNome() {\r\n\t\treturn nome;\r\n\t}", "public String getNome() {\r\n\t\treturn nome;\r\n\t}", "public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;", "public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }", "private UsineJoueur() {}", "public String getNomor() {\n return this.nomor;\n }", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "@AutoEscape\n\tpublic String getNomDistrito();", "public String getNome() {\n\t\treturn nome;\n\t}", "public String getNome() {\n\t\treturn nome;\n\t}" ]
[ "0.66749", "0.6560293", "0.6555446", "0.6550012", "0.6549288", "0.6509624", "0.6432754", "0.642816", "0.642816", "0.641696", "0.6416531", "0.6402258", "0.6398971", "0.6398971", "0.6398971", "0.6373344", "0.6360623", "0.63162255", "0.6311027", "0.6292786", "0.6257365", "0.6255683", "0.6227537", "0.62202233", "0.6212283", "0.6212283", "0.62097275", "0.620472", "0.61966217", "0.61966217", "0.6185806", "0.6184021", "0.6182417", "0.61806554", "0.617581", "0.61741394", "0.6169968", "0.6169968", "0.6169968", "0.6169968", "0.6169968", "0.6169968", "0.61605185", "0.6159832", "0.6151762", "0.61499065", "0.6139087", "0.6131408", "0.6131408", "0.6131408", "0.6131408", "0.61252266", "0.61026", "0.6099148", "0.6098896", "0.6088227", "0.6087557", "0.60856175", "0.60854274", "0.60838795", "0.60779965", "0.6063235", "0.60445064", "0.60395056", "0.6035597", "0.60284686", "0.6027822", "0.6022723", "0.6012546", "0.6003338", "0.5989438", "0.59849375", "0.5979185", "0.5969838", "0.5963006", "0.5949166", "0.59339166", "0.5931226", "0.59297734", "0.59259176", "0.59251994", "0.59212995", "0.59179914", "0.5911598", "0.59107155", "0.59091", "0.5899631", "0.5896142", "0.5896142", "0.58922523", "0.5886536", "0.5882448", "0.58774817", "0.5875372", "0.5872046", "0.58562666", "0.58503425", "0.5849151", "0.5848833", "0.58459437", "0.58459437" ]
0.0
-1
Implementation note: existing loaders will send only one temp index at a time, i.e. recordCount==1. So there is no reason to implement batched message send.
private void processMetadataFromLoader() { int recordCount = mdi.readInt(); long currentTime = System.currentTimeMillis(); synchronized (entities) { clearOldTempIndexes(currentTime); for (int i = 0; i < recordCount; i++) { int tempIndex = mdi.readInt(); assert DirectProtocol.isValidTempIndex(tempIndex); String symbol = mdi.readCharSequence().toString().intern(); ConstantIdentityKey key; int entityIndex = entities.get(symbol, NOT_FOUND_VALUE); if (entityIndex == NOT_FOUND_VALUE) { entityIndex = entities.size(); key = new ConstantIdentityKey(symbol); entities.put(key, entityIndex); } else { key = entities.getKeyObject(symbol); } // Note: key is guarantied to be same object as in "entities" field tempIndexes.put(tempIndex, key); sendMetadata(symbol, entityIndex); } if (recordCount > 0) { lastTempIndexAdded = currentTime; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n\n try {\n\n final ByteArrayOutputStream baseStream = new ByteArrayOutputStream();\n OutputStream os = baseStream;\n final String contentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (contentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n os.close();\n\n } else if (contentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n os.close();\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n configureDME2();\n\n this.wait(5);\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n String dmeResponse = sender.sendAndWait(5000L);\n\n logTime(startMs, dmeResponse);\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result =\n postAuth(new PostAuthDataObject().setPath(httpurl).setData(baseStream.toByteArray())\n .setContentType(contentType).setAuthKey(authKey).setAuthDate(authDate)\n .setUsername(username).setPassword(password).setProtocolFlag(protocolFlag));\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = post(httpurl, baseStream.toByteArray(), contentType, username, password,\n protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = postNoAuth(httpurl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n }\n return false;\n }", "protected void emitBatch(){\n synchronized(this){\n\n revokeSendBatch();\n\n int viewn = getCurrentViewNumber();\n long seqn = getStateLog().getNextPrePrepareSEQ();\n\n PBFTRequestInfo rinfo = getRequestInfo();\n if(!rinfo.hasSomeWaiting()){\n return;\n }\n /* creates a new pre-prepare message */\n PBFTPrePrepare pp = null;\n\n int size = 0;\n\n /* while has not achieved the batch size and there is digests in queue */\n String digest = null;\n while(size < getBatchSize() && (digest = rinfo.getFirtRequestDigestWaiting())!= null){\n if(pp == null){\n pp = new PBFTPrePrepare(viewn, seqn, getLocalServerID());\n }\n pp.getDigests().add(digest);\n rinfo.assign(digest, RequestState.PREPREPARED);\n size += 1;//rinfo.getRequestSize(digest);\n }\n\n if(pp == null){\n return;\n }\n \n /* emits pre-prepare */\n emitPrePrepare(pp);\n //emit(pp, getLocalGroup().minus(getLocalProcess()));\n\n /* update log current pre-prepare */\n handle(pp);\n\n /* if there is digest then it will schedule a send batch */\n if(rinfo.hasSomeWaiting()){\n batch();\n }//end if digest queue is no empty\n\n }//end synchronized(this)\n }", "private void sendToNodes(Sm.RetrieveChunkResponse chunkResponse, ArrayList<Sm.StorageNode> toSend) {\n\n System.out.println(\"Nodes to send to: \" + toSend);\n\n if (toSend.size() != 0) {\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n PatrolMessagePipeline pipeline = new PatrolMessagePipeline();\n Bootstrap bootstrap = new Bootstrap()\n .group(workerGroup)\n .channel(NioSocketChannel.class)\n .option(ChannelOption.SO_KEEPALIVE, true)\n .handler(pipeline);\n\n// for (Sm.StorageNode node: toSend) {\n\n //create StoreChunkRequest\n Sm.StoreChunk chunk = Sm.StoreChunk.newBuilder()\n .setFileName(chunkResponse.getFilename())\n .setChunkId(chunkResponse.getChunkId())\n .setChunkSize(chunkResponse.getChunkSize())\n .setData(chunkResponse.getData())\n .setChunkName(chunkResponse.getChunkName())\n .build();\n\n Sm.StorageNodes nodes = Sm.StorageNodes.newBuilder()\n .addAllNodeList(toSend)\n .build();\n\n Sm.StorageNode primary = toSend.get(0);\n System.out.println(\"Primary: \" + primary.getIp());\n System.out.println(\"Primary: \" + primary.getPort());\n\n //Connect to the first replica\n ChannelFuture cf = bootstrap.connect(primary.getIp(), primary.getPort());\n cf.syncUninterruptibly();\n\n //Prepare Request & Wrap\n Sm.StoreChunkRequest request = Sm.StoreChunkRequest.newBuilder()\n .setChunk(chunk)\n .setNodes(nodes)\n .build();\n\n Sm.StorageMessageWrapper msgWrapper = Sm.StorageMessageWrapper.newBuilder()\n .setScRequest(request)\n .build();\n\n //Send\n Channel chan = cf.channel();\n PatrolInboundHandler handler = chan.pipeline().get(PatrolInboundHandler.class);\n Sm.StorageMessageWrapper response = handler.request(msgWrapper);\n\n if (response.getScResponse().getSuccess()) {\n System.out.println(\"StoreChunk successful?: \" + response.getScResponse().getSuccess());\n Controller.getInstance().updateReplicasAndChunkNames(toSend, chunk.getChunkName());\n }\n\n workerGroup.shutdownGracefully();\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Get a list of pairs. The pair will be a chunkname with a chunkserver \r\n\t\t/*for(Pair<String, String> p: EventFactory.hostToFiles.getChunkLocations(message.getContent())){\r\n\t\t\tSystem.out.println(\"The location is: \" + p.getKey() + \" and the chunkname is: \" + p.getValue());\r\n\t\t\t\r\n\t\t\t//actual code will contact chunk servers and tell them to read and forward the file to the client\r\n\t\t\tMessage forwardToClient = new Message(\"ForwardChunkToClient\");\r\n\t\t\t//chunkname, servername, port\r\n\t\t\tforwardToClient.setContent(p.getKey());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tTCPSender sender = new TCPSender(new Socket(p.getValue().split(\" \")[0], Integer.parseInt(p.getValue().split(\" \")[1])));\r\n\t\t\t\tsender.sendData(forwardToClient);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (UnknownHostException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}*/\r\n\t\t//Send the list to the client so it can request the chunks from chunkServers\r\n\t\t//Any other way seems like it would be beyond a pain. \r\n\t\tLinkedList<String> fileAndHosts = new LinkedList<String>();\r\n\t\tfor(PairStrings p: EventFactory.hostToFiles.getChunkLocations(message.getContent())) {\r\n\t\t\tString fileAndHost = p.getValue() + \" \" + p.getKey();\r\n\t\t\tfileAndHosts.add(fileAndHost);\r\n\t\t}\r\n\t\t\r\n\t\tMessage getFromChunkServers = new Message(\"RequestChunksFromServers\");\r\n\t\t\r\n\t\t//If the list is empy, the no file was found, report invalid.\r\n\t\tif(fileAndHosts.size() == 0) {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"invalid\" + \" \" + message.getContent());\r\n\t\t} else {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"valid\" + \" \" + message.getContent());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tTCPSender sender = new TCPSender(new Socket(message.getSenderHostName(), message.getSenderPort()));\r\n\t\t\tsender.sendData(getFromChunkServers);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "void sendChunkRequest(int chunkX, int chunkY);", "boolean sendBatch() throws IOException;", "protected void enqueue(StdPeerMessage message)\n {\n// if (DEBUG) {\n// if (message.type == StdPeerMessage.REQUEST) {\n// System.out.println(System.nanoTime() + \" [stdpc] enqueue: req \" + message.index + \" \" + (message.begin >> 14));\n// } else {\n// System.out.println(\"[stdpc] enqueue: \" + message.type);\n// }\n// }\n\n if (message.type == StdPeerMessage.CHOKE)\n {\n // remove reply messages with piece (block) data\n // from the send queue (due to spec)\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if (pm.type == StdPeerMessage.PIECE) {\n sendQueue.remove(i);\n TorrentStorage.Block block = (TorrentStorage.Block) message.params;\n block.release();\n pmCache.release(pm);\n }\n }\n // set choke status\n choke = true;\n // send choke asap\n sendQueue.add(0, message);\n }\n else if (message.type == StdPeerMessage.CANCEL)\n {\n // remove the linked request if it's still in the queue\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if ((pm.type == StdPeerMessage.REQUEST)\n && (pm.index == message.index)\n && (pm.begin == message.begin)\n && (pm.length == message.length)) // this check is redundant as length is fixed\n {\n sendQueue.remove(i);\n pmCache.release(pm);\n // don't really enqueue CANCEL as the linked request\n // has been found and removed\n pmCache.release(message);\n return;\n }\n }\n // send asap\n sendQueue.add(0, message);\n }\n else {\n if (message.type == StdPeerMessage.INTERESTED) {\n interested = true;\n }\n else if (message.type == StdPeerMessage.NOT_INTERESTED) {\n interested = false;\n }\n else if (message.type == StdPeerMessage.UNCHOKE) {\n choke = false;\n }\n\n // enqueue message\n sendQueue.add(message);\n }\n\n// sendQueue.forEach(pm -> System.out.println(\" -x> \" + System.identityHashCode(pm) + pm.type + \" ,\" + pm.index +\",\" + pm.begin +\",\" + pm.length) );\n\n }", "@Override\n public void stepPartial(VLongWritable vertexIndex,\n VLongArrayListWritable msg) throws HyracksDataException {\n \n }", "public void sendGetRequest() {\r\n\t\tString[] requests = this.input.substring(4, this.input.length()).split(\" \"); \r\n\t\t\r\n\t\tif(requests.length <= 1 || !(MyMiddleware.readSharded)){\r\n\t\t\tnumOfRecipients = 1;\r\n\t\t\trecipient = servers.get(loadBalance());\r\n\r\n\t\t\trecipient.send(this, input);\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\t\r\n\t\t\tif(requests.length <= 1) {\r\n\t\t\t\tnumOfGets++;\r\n\t\t\t\ttype= \"10\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumOfMultiGets++;\r\n\t\t\t\ttype = requests.length+\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString reply = recipient.receive();\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\t\r\n\t\t\tint hit = 0;\r\n\t\t\thit += reply.split(\"VALUE\").length - 1;\r\n\t\t\tmiss += requests.length-hit;\r\n\r\n\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsendBack(currentJob.getClient(), reply);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumOfMultiGets++;\r\n\t\t\ttype = requests.length+\"\";\r\n\t\t\tnumOfRecipients = servers.size();\r\n\t\t\trequestsPerServer = requests.length / servers.size();\r\n\t\t\tremainingRequests = requests.length % servers.size() ;\r\n\t\t\t\r\n\t\t\t//The worker thread sends a number of requests to each server equal to requestsPerServer \r\n\t\t\t//and at most requestsPerServer + remainingRequests\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < servers.size(); i++) {\r\n\t\t\t\tmessage = requestType;\r\n\t\t\t\tfor(int j = 0; j < requestsPerServer; j++){\r\n\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\tmessage += requests[requestsPerServer*i+j];\r\n\t\t\t\t\tif(i < remainingRequests) {\r\n\t\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\t\tmessage += requests[requests.length - remainingRequests + i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tservers.get(i).send(this, message);\r\n\t\t\t}\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\tint hit = 0;\r\n\t\t\tfor(ServerHandler s : servers) {\r\n\t\t\t\tString ricevuto = s.receive();\r\n\t\t\t\thit += ricevuto.split(\"VALUE\").length - 1;\r\n\t\t\t\treplies.add(ricevuto);\r\n\t\t\t}\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\r\n\t\t\tmiss += requests.length-hit;\r\n\t\t\t\r\n\t\t\tfinalReply = \"\";\r\n\t\t\tfor(String reply : replies) {\r\n\t\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\t\treplies.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treply = reply.substring(0, reply.length() - 3);\r\n\t\t\t\t\tfinalReply += reply;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalReply += \"END\";\r\n\t\t\tsendBack(currentJob.getClient(), finalReply);\r\n\t\t\treplies.clear();\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "protected abstract void sendMessage(UUID[] players, BaseComponent[][] messages, IntConsumer response);", "public void run() {\n\n do {\n\n ByteBuffer byteBuffer = (ByteBuffer) slist[0];\n slist = (Object[]) slist[1];\n if (0 == bufsize) {\n if (null == slist) {\n buffer = byteBuffer;\n break;//optimization\n }\n linkedList = new LinkedList<ByteBuffer>();\n }\n bufsize += byteBuffer.limit();\n linkedList.addFirst(byteBuffer);\n\n } while (null != slist);\n\n if (null == buffer) {\n buffer = ByteBuffer.allocateDirect(bufsize);\n\n for (ByteBuffer netBuffer : linkedList) {\n buffer.put(netBuffer);\n }\n }\n\n buffer.rewind();\n System.err.println(\"MsgSize: \" + buffer.limit());\n int i = ENDL.length - 1;\n byte b1 = ENDL[i];\n do {\n ByteBuffer b = buffer.slice();\n while (b.hasRemaining() && b.get() != b1);\n b.flip();\n Integer integer = Integer.valueOf(UTF8.decode(b).toString().trim(), 0x10);\n System.err.println(\"RecordSize: \" + integer);\n buffer = ((ByteBuffer) buffer.position(b.limit())).slice();\n ByteBuffer handoff = (ByteBuffer) buffer.slice().limit(integer);\n final String trim = UTF8.decode(handoff).toString().trim();\n // System.err.println(\"RecordId: \" + trim);\n final LinkedHashMap couchChange = CouchDriver.GSON.fromJson(trim, LinkedHashMap.class);\n\n EXECUTOR_SERVICE.submit(getDocUpdateHandler(couchChange));\n buffer.position(handoff.limit() + ENDL.length);\n buffer = buffer.slice();\n } while (buffer.hasRemaining());\n }", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tInetSocketAddress clientAddr = new InetSocketAddress(\"localhost\", 1111);\r\n\t\tSocketChannel client = SocketChannel.open(clientAddr);\r\n \r\n\t\tlog(\"Connecting to Server on port 1111...\");\r\n \r\n\t\tArrayList<String> staticStrings = new ArrayList<String>();\r\n \r\n\t\t// create a ArrayList with myStaticString list\r\n\t\t/*staticStrings.add(\"Guess Me\");\r\n\t\tstaticStrings.add(\"Who am I\");\r\n\t\tstaticStrings.add(\"Hello Out there!!!\");\r\n\t\tstaticStrings.add(\"Am I Guessing.....????????\");\r\n\t\tstaticStrings.add(\"Testing Done!\");\r\n\t\t*/\r\n\t\t\r\n\t\tblock = BlockService1.getBlockChain();\r\n\t\t//block=new ArrayList<Block1>();\r\n\t\t\r\n\t\tblock.add(BlockService1.getFirstBlock());\r\n\t\t\r\n\t\tblock.add(BlockService1.generateNextBlock(\"Hello Out There!!!\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(Block1 b:block) {\r\n\t\t\tSystem.out.println( b.getIndex());\r\n\t\t\tSystem.out.println(b.getPreviousHash());\r\n\t\t\tSystem.out.println(b.getTimestamp());\r\n\t\t\tSystem.out.println(b.getData());\r\n\t\t\tSystem.out.println(b.getHash());\r\n\t\t\tSystem.out.println(\"\\n\");\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t ObjectMapper mapper = new ObjectMapper();\r\n\t try {\r\n\t String json = mapper.writeValueAsString(b);\r\n\t\t DBwrite dw=new DBwrite();\r\n DBObject dbObject = (DBObject)JSON.parse(json);\r\n dw.collection.insert(dbObject);\r\n \r\n // collection.insert(dbObject);\r\n \r\n \r\n DBCursor cursorDocJSON = dw.collection.find();\r\n while (cursorDocJSON.hasNext()) {\r\n System.out.println( cursorDocJSON.next());\r\n }\r\n \r\n\t\t/*//for (String myStaticString : staticStrings) {\r\n\t\tfor(Block1 b:block)\r\n\t\t{\r\n\t\t\tbyte[] message = new String(b.getIndex() + b.getPreviousHash() + b.getTimestamp() + b.getData() + b.getHash()).getBytes();\r\n\t\t\tByteBuffer buffer = ByteBuffer.wrap(message);\r\n\t\t\tclient.write(buffer);\r\n \r\n\t\t\tlog(\"sending: \" + message.toString()\r\n\t\t\t);\r\n\t\t\tbuffer.clear();\r\n \r\n\t\t\t// wait for 2 seconds before sending next message\r\n\t\t\tThread.sleep(2000);*/\r\n\t\t\r\n\t } catch (JsonProcessingException e) {\r\n e.printStackTrace();\r\n }}\r\n\t\tclient.close();\r\n\t}", "@Test\n public void largeMessageVolumeTest_buffered() {\n int batches = 15;\n int batchSize = 5_000;\n List<Long> sendReceiveTimings = new ArrayList<>();\n List<Long> sendTimings = new ArrayList<>();\n for(int i = 0; i< batches; i++) {\n List<String> messages = messages(batchSize, 100);\n long startTime = System.currentTimeMillis();\n for (String message : messages) {\n publisher.publishBuffered(topic, message.getBytes());\n }\n publisher.flushBatchers();\n sendTimings.add(System.currentTimeMillis()-startTime);\n List<NSQMessage> nsqMessages = handler1.drainMessagesOrTimeOut(batchSize);\n sendReceiveTimings.add(System.currentTimeMillis()-startTime);\n\n validateReceivedAllMessages(messages,nsqMessages,true);\n LOGGER.info(\"published batch {} of {}\",i,batches);\n }\n\n double sendAverageMillis = sendTimings.stream().mapToLong(e -> e).average().getAsDouble();\n double throughput = batchSize/sendAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, sendAverageMillis, throughput);\n\n double totalAverageMillis = sendReceiveTimings.stream().mapToLong(e -> e).average().getAsDouble();\n throughput = batchSize/totalAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, totalAverageMillis, throughput);\n }", "public void MultiSend(KeyPair kp) {\n Socket sock;\n PrintStream toServer;\n try {\n for (int i = 0; i < numProcesses; i++) {\n sock = new Socket(serverName, Ports.KeyServerPortBase + i);\n toServer = new PrintStream(sock.getOutputStream()); \n toServer.println(kp.getPublic()); //sending our Public key to every process\n toServer.flush();\n sock.close();\n }\n \n Thread.sleep(1000); //wait for keys to settle\n long current_time = System.currentTimeMillis(); //current time for Timestamp field\n File f = new File(\"BlockInput\" + Blockchain.PID + \".txt\");\n FileReader fr = new FileReader(f);\n BufferedReader br = new BufferedReader(fr);\n \n //read each line into input and place it into a block\n String realBlockA = System.currentTimeMillis() + \" \" + br.readLine(); \n String realBlockB = System.currentTimeMillis() + \" \" + br.readLine();\n String realBlockC = System.currentTimeMillis() + \" \" + br.readLine();\n String realBlockD = System.currentTimeMillis() + \" \" + br.readLine();\n String toConvertA = realBlockA;\n BlockRecord A = new BlockRecord();\n BlockRecord B = new BlockRecord();\n BlockRecord C = new BlockRecord();\n BlockRecord D = new BlockRecord();\n //converting each String read in from input into a Block\n A = BlockProcessing.toXML(realBlockA, Blockchain.PID);\n B = BlockProcessing.toXML(realBlockB, Blockchain.PID);\n C = BlockProcessing.toXML(realBlockC, Blockchain.PID);\n D = BlockProcessing.toXML(realBlockD, Blockchain.PID);\n \n for (int i = 0; i < numProcesses; i++) { //send block A to each process\n sock = new Socket(serverName, Ports.UnverifiedBlockServerPortBase + i);\n toServer = new PrintStream(sock.getOutputStream());\n toServer.println(realBlockA);\n toServer.flush();\n sock.close();\n }\n \n for (int i = 0; i < numProcesses; i++) { //send block B to each process\n sock = new Socket(serverName, Ports.UnverifiedBlockServerPortBase + i);\n toServer = new PrintStream(sock.getOutputStream());\n toServer.println(realBlockB);\n toServer.flush();\n sock.close();\n }\n \n for (int i = 0; i < numProcesses; i++) { //send block C to each process\n sock = new Socket(serverName, Ports.UnverifiedBlockServerPortBase + i);\n toServer = new PrintStream(sock.getOutputStream());\n toServer.println(realBlockC);\n toServer.flush();\n sock.close();\n }\n \n for (int i = 0; i < numProcesses; i++) { //send block D to each process\n sock = new Socket(serverName, Ports.UnverifiedBlockServerPortBase + i);\n toServer = new PrintStream(sock.getOutputStream());\n toServer.println(realBlockD);\n toServer.flush();\n sock.close();\n }\n \n } \n catch (Exception x) {\n x.printStackTrace();\n }\n }", "private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }", "@Override\n public void finishMessageSending() {\n for (int i = 0; i < fragNum; ++i) {\n long bytesWriten = cacheOut[i].bytesWriten();\n cacheOut[i].finishSetting();\n cacheOut[i].writeLong(0, bytesWriten - SIZE_OF_LONG);\n\n if (bytesWriten == SIZE_OF_LONG) {\n logger.debug(\n \"[Finish msg] sending skip msg from {} -> {}, since msg size: {}\",\n fragId,\n i,\n bytesWriten);\n continue;\n }\n if (i == fragId) {\n nextIncomingMessageStore.digest(cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] digest msg to self of size: {}\",\n fragId,\n bytesWriten);\n } else {\n grapeMessager.sendToFragment(i, cacheOut[i].getVector());\n logger.info(\n \"In final step, Frag [{}] send msg to [{}] of size: {}\",\n fragId,\n i,\n bytesWriten);\n }\n }\n // if (maxSuperStep > 0) {\n // grapeMessager.ForceContinue();\n // maxSuperStep -= 1;\n // }\n\n // logger.debug(\"[Unused res] {}\", unused);\n // logger.debug(\"adaptor hasNext {}, grape hasNext{}\", adaptorHasNext, grapeHasNext);\n // logger.debug(\"adaptor next {}, grape next {}\", adaptorNext, grapeNext);\n // logger.debug(\"adaptor neighbor {}, grape neighbor {}\", adaptorNeighbor,\n // grapeNeighbor);\n }", "@Override\n void enqueuePiece(ByteBuffer buffer, int index, int position, int length, Object params)\n {\n// if (DEBUG) System.out.println(\"[stdpc] enqueuePiece:\" + index + \",\" + position + \",\" + length + \" buf:\" + buffer.remaining());\n// sendQueue.forEach(pm ->\n// System.out.println(\" -s> \" + System.identityHashCode(pm) + \" \" +pm.type + \" ,\" + pm.index +\",\" + pm.begin + \",\" + pm.length)\n// );\n// peerBlockRequests.forEach(pm -> {\n// System.out.println(\" -p> \" + pm.type + \" ,\" + pm.index +\",\" + pm.begin + \",\" + pm.length);\n// });\n\n\n boolean found = false;\n\n // check for the active linked peer request and remove it\n for (int i = 0; i < peerBlockRequests.size(); i++) {\n StdPeerMessage pm = peerBlockRequests.get(i);\n if ((pm.index == index)\n && (pm.begin == position)\n && (pm.length == length))\n {\n peerBlockRequests.remove(i);\n pmCache.release(pm);\n found = true;\n break;\n }\n }\n if (!found && DEBUG) {\n if (DEBUG) System.out.println(\"[stdpc] pBR not found\");\n }\n\n enqueue(pmCache.piece(index, position, length, buffer, params));\n }", "public void run() {\n\n try{\n\n // random block number\n int blockNo = new Random().nextInt(100);\n\n while (true){\n\n Thread.sleep(500);\n writer.reset();\n\n // upload image blocks in a round robin fashion\n if (blockNo < 99)\n blockNo++;\n else\n blockNo = 0;\n\n writer.writeObject(new Message(\"\", \"\", \"SEND_IMG_BLOCK\", blockNo, labels[blockNo].getIcon(), null));\n System.out.println(\"Send to IP: \" + s.getLocalAddress().getHostAddress() + \" Port: \" + s.getPort() + \" Block: \" + (blockNo));\n writer.flush();\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "protected abstract void sendMessage(UUID[] players, String[] messages, IntConsumer response);", "void process(ToSend m) {\n ByteBuffer requestBuffer = buildMsg(m.state.ordinal(), m.leader, m.zxid, m.electionEpoch, m.peerEpoch, m.configData);\n\n manager.toSend(m.sid, requestBuffer);\n\n }", "public synchronized MRPublisherResponse sendBatchWithResponse() {\n if (fPending.isEmpty()) {\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_BAD_REQUEST));\n pubResponse.setResponseMessage(\"No Messages to send\");\n return pubResponse;\n }\n\n final long nowMs = Clock.now();\n\n host = this.fHostSelector.selectBaseHost();\n\n final String httpUrl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n OutputStream os = null;\n try (ByteArrayOutputStream baseStream = new ByteArrayOutputStream()) {\n os = baseStream;\n final String propsContentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (propsContentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n } else if (propsContentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n } else if (propsContentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (propsContentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (propsContentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n try {\n configureDME2();\n\n this.wait(5);\n\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n\n String dmeResponse = sender.sendAndWait(5000L);\n\n pubResponse = createMRPublisherResponse(dmeResponse, pubResponse);\n\n if (Integer.parseInt(pubResponse.getResponseCode()) < 200\n || Integer.parseInt(pubResponse.getResponseCode()) > 299) {\n\n return pubResponse;\n }\n final String logLine = String.valueOf((Clock.now() - startMs)) + dmeResponse.toString();\n getLog().info(logLine);\n fPending.clear();\n\n } catch (DME2Exception x) {\n getLog().warn(x.getMessage(), x);\n pubResponse.setResponseCode(x.getErrorCode());\n pubResponse.setResponseMessage(x.getErrorMessage());\n } catch (URISyntaxException x) {\n\n getLog().warn(x.getMessage(), x);\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_BAD_REQUEST));\n pubResponse.setResponseMessage(x.getMessage());\n } catch (InterruptedException e) {\n throw e;\n } catch (Exception x) {\n\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR));\n pubResponse.setResponseMessage(x.getMessage());\n logger.error(\"exception: \", x);\n\n }\n\n return pubResponse;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpUrl, nowMs - fPending.peek().timestamp);\n }\n final String result = postAuthwithResponse(httpUrl, baseStream.toByteArray(), contentType, authKey,\n authDate, username, password, protocolFlag);\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n\n pubResponse = createMRPublisherResponse(result, pubResponse);\n\n if (Integer.parseInt(pubResponse.getResponseCode()) < 200\n || Integer.parseInt(pubResponse.getResponseCode()) > 299) {\n\n return pubResponse;\n }\n\n logTime(startMs, result);\n fPending.clear();\n return pubResponse;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpUrl, nowMs - fPending.peek().timestamp);\n }\n final String result = postWithResponse(httpUrl, baseStream.toByteArray(), contentType, username,\n password, protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n pubResponse = createMRPublisherResponse(result, pubResponse);\n\n if (Integer.parseInt(pubResponse.getResponseCode()) < 200\n || Integer.parseInt(pubResponse.getResponseCode()) > 299) {\n\n return pubResponse;\n }\n\n final String logLine = String.valueOf((Clock.now() - startMs));\n getLog().info(logLine);\n fPending.clear();\n return pubResponse;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpUrl, nowMs - fPending.peek().timestamp);\n }\n final String result = postNoAuthWithResponse(httpUrl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n pubResponse = createMRPublisherResponse(result, pubResponse);\n\n if (Integer.parseInt(pubResponse.getResponseCode()) < 200\n || Integer.parseInt(pubResponse.getResponseCode()) > 299) {\n\n return pubResponse;\n }\n\n final String logLine = String.valueOf((Clock.now() - startMs));\n getLog().info(logLine);\n fPending.clear();\n return pubResponse;\n }\n } catch (IllegalArgumentException | HttpException x) {\n getLog().warn(x.getMessage(), x);\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_BAD_REQUEST));\n pubResponse.setResponseMessage(x.getMessage());\n\n } catch (IOException x) {\n getLog().warn(x.getMessage(), x);\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR));\n pubResponse.setResponseMessage(x.getMessage());\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR));\n pubResponse.setResponseMessage(x.getMessage());\n\n } finally {\n if (!fPending.isEmpty()) {\n getLog().warn(\"Send failed, \" + fPending.size() + \" message to send.\");\n pubResponse.setPendingMsgs(fPending.size());\n }\n if (os != null) {\n try {\n os.close();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR));\n pubResponse.setResponseMessage(\"Error in closing Output Stream\");\n }\n }\n }\n\n return pubResponse;\n }", "public void sendAsync() {\n\t\tstartTime = System.currentTimeMillis();\n\t\t\n\t\tif(logMINOR) Logger.minor(this, \"Starting async send on \"+this);\n\t\tincRunningBlockTransmits();\n\t\t\n\t\ttry {\n\t\t\tsynchronized(_prb) {\n\t\t\t\t_unsent = _prb.addListener(myListener = new PartiallyReceivedBlock.PacketReceivedListener() {;\n\n\t\t\t\t\tpublic void packetReceived(int packetNo) {\n\t\t\t\t\t\tsynchronized(_senderThread) {\n\t\t\t\t\t\t\tif(_unsent.contains(packetNo)) {\n\t\t\t\t\t\t\t\tLogger.error(this, \"Already in unsent: \"+packetNo+\" for \"+this+\" unsent is \"+_unsent, new Exception(\"error\"));\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(_sentPackets.bitAt(packetNo)) {\n\t\t\t\t\t\t\t\tLogger.error(this, \"Already sent packet in packetReceived: \"+packetNo+\" for \"+this+\" unsent is \"+_unsent+\" sent is \"+_sentPackets, new Exception(\"error\"));\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_unsent.addLast(packetNo);\n\t\t\t\t\t\t\ttimeAllSent = -1;\n\t\t\t\t\t\t\t_senderThread.schedule();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void receiveAborted(int reason, String description) {\n\t\t\t\t\t\tonAborted(reason, description);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t_senderThread.schedule();\n\t\t\t\n\t\t\tmfAllReceived = MessageFilter.create().setType(DMT.allReceived).setField(DMT.UID, _uid).setSource(_destination).setNoTimeout();\n\t\t\tmfSendAborted = MessageFilter.create().setType(DMT.sendAborted).setField(DMT.UID, _uid).setSource(_destination).setNoTimeout();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t_usm.addAsyncFilter(mfAllReceived, cbAllReceived, _ctr);\n\t\t\t\t_usm.addAsyncFilter(mfSendAborted, cbSendAborted, _ctr);\n\t\t\t} catch (DisconnectedException e) {\n\t\t\t\tonDisconnect();\n\t\t\t}\n\t\t\t\n\t\t} catch (AbortedException e) {\n\t\t\tonAborted(_prb._abortReason, _prb._abortDescription);\n\t\t}\n\t}", "private ByteChunker nextChunker() {\n\t\tif(curChunker != null)\n\t\t\tcurChunker.dispose();\n\t\treturn curChunker = sendQ.poll();\n\t}", "public void send(Message message) {\n\t\tthis.clockSer.addTS(this.localName);\n\t\t((TimeStampedMessage)message).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\n\t\ttry {\n\t\t\tparseConfig();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessage.set_source(localName);\n\t\tmessage.set_seqNum(currSeqNum++);\n\t\t\t\t\n\t\tRule rule = null;\n\t\tif((rule = matchRule(message, RuleType.SEND)) != null) {\n\t\t\tif(rule.getAction().equals(\"drop\")) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"duplicate\")) {\n\t\t\t\tMessage dupMsg = message.makeCopy();\n\t\t\t\tdupMsg.set_duplicate(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Send 'message' and 'dupMsg' */\n\t\t\t\tdoSend(message);\n\t\t\t\t/* update the timestamp */\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t((TimeStampedMessage)dupMsg).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\t\t\t\tdoSend(dupMsg);\n\t\t\t\t\n\t\t\t\t/* We need to send delayed messages after new message.\n\t\t\t\t * This was clarified in Live session by Professor.\n\t\t\t\t */\n\t\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\t\tdoSend(m);\n\t\t\t\t}\n\t\t\t\tdelaySendQueue.clear();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"delay\")) {\n\t\t\t\tdelaySendQueue.add(message);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"We get a wierd message here!\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdoSend(message);\n\t\t\t\n\t\t\t/* We need to send delayed messages after new message.\n\t\t\t * This was clarified in Live session by Professor.\n\t\t\t */\n\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\tdoSend(m);\n\t\t\t}\n\t\t\tdelaySendQueue.clear();\n\t\t}\n\t\t\n\t}", "@Override\n public void send(Message message) {\n\n expensiveResource.addToResourcesQueue(message);\n expensiveResource.processNextMessage();\n\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - pollTime;\r\n\t\t\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\tString ricevuto = s.receive();\r\n\t\t\treplies.add(ricevuto);\r\n\t\t}\r\n\t\treceiveTime = System.nanoTime();\r\n\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\r\n\t\t\r\n\t\tfor(String reply : replies) {\r\n\t\t\tif(!(\"STORED\".equals(reply))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treplies.clear();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsendBack(currentJob.getClient(), \"STORED\");\r\n\t\treplies.clear();\r\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "@Benchmark\n @BenchmarkMode(Mode.Throughput)\n public void send()\n {\n _sender1.send(_account);\n }", "protected abstract void sendInternal(ByteBuffer outputBuffer) throws IOException;", "private void postMessages() {\n List<models.MessageProbe> probes = new Model.Finder(String.class, models.MessageProbe.class).where().ne(\"curr_status\", 1).findList();\n for (models.MessageProbe currProbe : probes) {\n if ((currProbe.curr_status == models.MessageProbe.STATUS.WITH_ERROR) || (currProbe.curr_status == models.MessageProbe.STATUS.NEW)) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToPost());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.POSTED;\n currProbe.curr_error = null;\n postCounter++;\n }\n currProbe.update();\n }\n }\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.DELETED) {\n currProbe.delete();\n } else if (currProbe.curr_status == models.MessageProbe.STATUS.EDITED) {\n String contextErr = MiniGate.gate.sendCommandWithCheck(\"RIBBON_NCTL_ACCESS_CONTEXT:{\" + currProbe.author + \"}\");\n if (contextErr != null) {\n synchronized (dataLock) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = contextErr;\n currProbe.update();\n errCounter++;\n }\n } else {\n String postErr = MiniGate.gate.sendCommandWithCheck(currProbe.getCsvToModify());\n synchronized (dataLock) {\n if (postErr != null) {\n currProbe.curr_status = models.MessageProbe.STATUS.WITH_ERROR;\n currProbe.curr_error = postErr;\n errCounter++;\n } else {\n currProbe.curr_status = models.MessageProbe.STATUS.WAIT_CONFIRM;\n currProbe.curr_error = null;\n editCounter++;\n }\n currProbe.update();\n }\n }\n }\n }\n }", "void sendMessage(int cycleCount, int index, int offset, long time)\n {\n Message msg = handler.obtainMessage(state, index, offset); //pos.offset);\n handler.sendMessage(msg);\n }", "private void prepareSending(final String idx) {\n mSettings = Settings.get(m_context);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n// new WorkingThread(idx).start();\n ApnUtils.initDefaultApns(m_context, new ApnUtils.OnApnFinishedListener() {\n @Override\n public void onFinished() {\n mSettings = Settings.get(m_context, true);\n com.klinker.android.send_message.Settings sendSettings = new com.klinker.android.send_message.Settings();\n sendSettings.setMmsc(mSettings.getMmsc());\n sendSettings.setProxy(mSettings.getMmsProxy());\n sendSettings.setPort(mSettings.getMmsPort());\n sendSettings.setUseSystemSending(true);\n\n mSendTransaction = new Transaction(m_context, sendSettings);\n\n new WorkingThread(idx).start();\n }\n });\n }", "private void sendMessages(Queue<Message<M>> sendQueue) {\n while (!sendQueue.isEmpty()) {\n context.sendMessage(sendQueue.poll());\n numMessageSent++;\n }\n }", "void onEnqueue(boolean success, long rowCount);", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "public void run() {\n xmitsInProgress++;\n try {\n Socket s = new Socket();\n s.connect(curTarget, READ_TIMEOUT);\n s.setSoTimeout(READ_TIMEOUT);\n DataOutputStream out = new DataOutputStream(new BufferedOutputStream(s.getOutputStream()));\n try {\n long filelen = data.getLength(b);\n DataInputStream in = new DataInputStream(new BufferedInputStream(data.getBlockData(b)));\n try {\n //\n // Header info\n //\n out.write(OP_WRITE_BLOCK);\n out.writeBoolean(true);\n b.write(out);\n out.writeInt(targets.length);\n for (int i = 0; i < targets.length; i++) {\n targets[i].write(out);\n }\n out.write(RUNLENGTH_ENCODING);\n out.writeLong(filelen);\n\n //\n // Write the data\n //\n while (filelen > 0) {\n int bytesRead = in.read(buf, 0, (int) Math.min(filelen, buf.length));\n out.write(buf, 0, bytesRead);\n filelen -= bytesRead;\n }\n } finally {\n in.close();\n }\n } finally {\n out.close();\n }\n LOG.info(\"Transmitted block \" + b + \" to \" + curTarget);\n } catch (IOException ie) {\n LOG.warn(\"Failed to transfer \"+b+\" to \"+curTarget, ie);\n } finally {\n xmitsInProgress--;\n }\n }", "private void sendEndOfSequences() throws ClassCastException {\n for (int newThreadNo = 1; newThreadNo < PCJ.threadCount(); ++newThreadNo) {\n while (true) {\n if (writeIndex[newThreadNo] != readIndex[newThreadNo]) {\n break;\n } else {\n PCJ.waitFor(InputFileReader.Shared.readIndex);\n }\n }\n\n PCJ.put(null, newThreadNo, SequencesReceiverAndParser.Shared.values, writeIndex[newThreadNo]);\n }\n }", "protected abstract boolean sendNextRequests();", "public void send() {\n\t}", "private int sendAll( \n Hashtable<Object,Vector<Message>> my_message_table,\n Hashtable<Object,Vector<IReceiveMessage>> my_receiver_table ) \n {\n // get all messages from the message table\n // in an array, and sort based on time\n int num_messages = 0;\n Enumeration<Vector<Message>> lists = my_message_table.elements();\n Vector<Message> list;\n while ( lists.hasMoreElements() )\n {\n list = lists.nextElement();\n num_messages += list.size();\n }\n\n Message messages[] = new Message[ num_messages ];\n lists = my_message_table.elements();\n int index = 0;\n while ( lists.hasMoreElements() )\n {\n list = lists.nextElement();\n for ( int i = 0; i < list.size(); i++ )\n {\n messages[index] = list.elementAt(i);\n index++;\n }\n }\n\n Arrays.sort( messages, new MessageComparator() );\n\n // now route the ordered messages\n // to the receivers, and increment\n // the number of messages sent, if\n // there were any receivers.\n int num_true = 0;\n for ( int i = 0; i < messages.length; i++ )\n if ( sendMessage( messages[i], my_receiver_table ) )\n num_true++;\n // Send the MESSAGES_PROCESSED \n // message, if sending some\n // messages returned true\n if ( num_true > 0 || always_notify )\n sendMessage( MESSAGES_PROCESSED, my_receiver_table );\n\n return num_true;\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile (evictionThread.get() == this) {\n\t\t\t\tStoreRequest r = null;\n\t\t\t\ttry {\n\t\t\t\t\twhile (requestsBeingSending.get() >= getMaxSenderThreads()) {\n\t\t\t\t\t\tsynchronized(this) {\n\t\t\t\t\t\t\tif (requestsBeingSending.get() >= getMaxSenderThreads()) {\n\t\t\t\t\t\t\t\tthis.waiting = true;\n\t\t\t\t\t\t\t\tthis.wait(100);\n\t\t\t\t\t\t\t\tthis.waiting = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tr = writeQueue.poll(3, TimeUnit.SECONDS);\n\t\t\t\t\t\n\t\t\t\t\tif (r == null) {\n\t\t\t\t\t\tif (writeQueue.isEmpty() && requestsBeingSending.get() == 0 && writeQueue.isEmpty()) {\n\t\t\t\t\t\t\t// Preparing this thread to stop and stating a new one should be started\n\t\t\t\t\t\t\tevictionThread.compareAndSet(this, null);\n\t\t\t\t\t\t\tif (!writeQueue.isEmpty() || requestsBeingSending.get() != 0)\n\t\t\t\t\t\t\t\tevictionThread.compareAndSet(null, this);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t\t// Requests in preparation of sending are marked twice so that a \"0\" is\n\t\t\t\t\t\t// a bit less likely to be a false 0\n\t\t\t\t\t\trequestsBeingSending.incrementAndGet();\n\t\t\t\t\t\tr.send(this.sender, false);\n\t\t\t\t\t\trequestsBeingSending.decrementAndGet();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\tif (r == null) {\n\t\t\t\t\t\tlogger.log(Level.WARNING, \"Problem waiting for request out of write cache: \" + e.getMessage(), e);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.log(Level.SEVERE, \"Problem while sending request out of write cache ; request \" + r + \" lost: \" + e.getMessage(), e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Stopping\n\t\t\tthis.running = false;\n\t\t\tthis.sender.shutdown();\n\t\t\ttry {\n\t\t\t\tthis.sender.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Problem while shutting down n-orm write retention cache: \" + e.getMessage(), e);\n\t\t\t}\n\t\t}", "private void sendNewPackets() {\n\t\twhile(alive && (sendQueue.size() != 0)) {\n\t\t\tNetPacket send = sendQueue.peek();\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"(NetAPI) Sending a \" + send.getClass().getName() + \" packet\");\n\t\t\t\toos.writeObject(send);\n\t\t\t\toos.flush();\n\t\t\t\tsendQueue.poll();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"(NetAPI) Could not send packet: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "protected void deliverMessages()\n {\n Set<Envelope> envelopes = messengerDao.getEnvelopes();\n\n Map<String, Set<Envelope>> peerEnvelopesMap = Maps.newHashMap();\n int maxTimeToLive = 0;\n //distribute envelops to peers\n for ( Envelope envelope : envelopes )\n {\n if ( envelope.getTimeToLive() > maxTimeToLive )\n {\n maxTimeToLive = envelope.getTimeToLive();\n }\n Set<Envelope> peerEnvelopes = peerEnvelopesMap.get( envelope.getTargetPeerId() );\n if ( peerEnvelopes == null )\n {\n //sort by createDate asc once more\n peerEnvelopes = new TreeSet<>( new Comparator<Envelope>()\n {\n @Override\n public int compare( final Envelope o1, final Envelope o2 )\n {\n return o1.getCreateDate().compareTo( o2.getCreateDate() );\n }\n } );\n peerEnvelopesMap.put( envelope.getTargetPeerId(), peerEnvelopes );\n }\n\n peerEnvelopes.add( envelope );\n }\n\n\n //try to send messages in parallel - one thread per peer\n try\n {\n for ( Map.Entry<String, Set<Envelope>> envelopsPerPeer : peerEnvelopesMap.entrySet() )\n {\n Peer targetPeer = messenger.getPeerManager().getPeer( envelopsPerPeer.getKey() );\n if ( targetPeer.isLocal() )\n {\n completer.submit(\n new LocalPeerMessageSender( messenger, messengerDao, envelopsPerPeer.getValue() ) );\n }\n else\n {\n completer.submit(\n new RemotePeerMessageSender( messengerDao, targetPeer, envelopsPerPeer.getValue() ) );\n }\n }\n\n //wait for completion\n try\n {\n for ( int i = 0; i < peerEnvelopesMap.size(); i++ )\n {\n Future<Boolean> future = completer.take();\n future.get();\n }\n }\n catch ( InterruptedException | ExecutionException e )\n {\n LOG.warn( \"ignore\", e );\n }\n }\n catch ( PeerException e )\n {\n LOG.error( e.getMessage(), e );\n }\n }", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public int itemsToSend() {\n return itemsToSend;\n }", "public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }", "public static void sendCoordinatorMsg() {\n int numberOfRequestsNotSent = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if ( key != ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n\n try {\n MessageTransfer.sendServer(\n ServerMessage.getCoordinator( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent leader ID to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n numberOfRequestsNotSent += 1;\n System.out.println(\"WARN : Server s\"+destServer.getServerID()+\n \" has failed, it will not receive the leader\");\n }\n }\n }\n if( numberOfRequestsNotSent == ServerState.getInstance().getServers().size()-1 ) {\n // add self clients and chat rooms to leader state\n List<String> selfClients = ServerState.getInstance().getClientIdList();\n List<List<String>> selfRooms = ServerState.getInstance().getChatRoomList();\n\n for( String clientID : selfClients ) {\n LeaderState.getInstance().addClientLeaderUpdate( clientID );\n }\n\n for( List<String> chatRoom : selfRooms ) {\n LeaderState.getInstance().addApprovedRoom( chatRoom.get( 0 ),\n chatRoom.get( 1 ), Integer.parseInt(chatRoom.get( 2 )) );\n }\n\n leaderUpdateComplete = true;\n }\n }", "public void sendBack(SelectionKey key, String message) {\r\n\t\tsocketChannel = (SocketChannel) key.channel(); \r\n\t\tmessage += \"\\r\\n\";\r\n\t\tbuffer = CharBuffer.wrap(message);\r\n\t\twhile (buffer.hasRemaining()) {\r\n\t\t\ttry {\r\n\t\t\t\tsocketChannel.write(Charset.defaultCharset().encode(buffer));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong x = System.nanoTime();\r\n\t\tserviceTime = x - pollTime;\r\n\t\tresponseTime = x - currentJob.queueEntranceTime;\r\n\t\ttimeInSystem = x - currentJob.timeOfArrival;\r\n\t\t\r\n\t\ttimes.add(myNumber + \"\\t\" + type + \"\\t\" + queueTime + \"\\t\" + workerTime +\"\\t\" + processingTime +\"\\t\" + serviceTime +\"\\t\" + responseTime +\"\\t\" + timeInSystem );\r\n\t\tnumOfRequests.incrementAndGet();\r\n\t\tmyNumOfRequests++;\r\n\t}", "@Override\n protected void process(List<String> chunks) {\n\n logger.debug(LOG_TAG + \".process()\");\n\n logger.info(chunks.get(chunks.size() - 1));\n\n if (newConnection) {\n // save email address for distributing communication message\n emailAddress = chunks.get(chunks.size() - 1);\n // send email address and remote address to server\n server.newConnection(chunks.get(chunks.size() - 1),\n socket.getRemoteSocketAddress().toString());\n\n // send 'welcome' message to client\n sendMessage(\"@welcome\");\n\n newConnection = false;\n\n return;\n }\n\n if (chunks.get(chunks.size() - 1).equals(\"@disconnect\")) {\n // send message to server\n server.removeConnection(clientId);\n\n // send 'goodbye' message to client\n sendMessage(\"@goodbye\");\n\n newConnection = true;\n\n return;\n }\n\n // communication message from client, distribute message\n // to all clients\n server.distributeMessage(emailAddress + \">\" + chunks.get(chunks.size() - 1));\n\n }", "@Override\n public void sendMessage(Message<M> message) {\n long vertexId = message.getReceiver();\n Queue<Message<M>> sendQueue = sendQueues.get(vertexId);\n if (sendQueue == null) {\n sendQueue = new LinkedList<>();\n sendQueues.put(vertexId, sendQueue);\n }\n\n Message<M> initial = sendQueue.peek();\n if (combiner != null && initial != null) {\n initial = sendQueue.poll();\n M value = combiner.combine(initial.getValue(), message.getValue());\n message.setValue(value);\n }\n sendQueue.offer(message);\n\n if (sendQueue.size() > sendThreshold) {\n sendMessages(sendQueue);\n }\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t// the overall number of items to send\n\t\tfinal int telemetryItemCount = Integer.MAX_VALUE;\n\n\t\t// how many items to send each second\n\t\tfinal int telemetryItemsPerSecond = StringUtils.isNoneBlank(args[0]) ? Integer.parseInt(args[0]) : 100;\n\n\t\t// the size (in items) of a batch\n\t\t// if the concept of a batch is not applicable, set to 1\n\t\tfinal int batchSizeInTelemetryItems = 1;\n\n\t\tSystem.out.println(String.format(\"sending %s items in batches of %s at a rate of %s items per second...\" ,\n\t\t\t\ttelemetryItemCount, batchSizeInTelemetryItems, telemetryItemsPerSecond));\n\n\t\tCompletableFuture.supplyAsync(() -> {\n\t\t\tlong lastUpdate = TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS);\n\t\t\tint lastBatch = 0;\n\t\t\twhile (true) {\n\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\n\t\t\t\t\tint localCurrentBatch = currentBatch;\n\t\t\t\t\tlong localNow = TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS);\n\t\t\t\t\tdouble timeElapsedSinceLastUpdate = localNow - lastUpdate;\n\n\t\t\t\t\tif (timeElapsedSinceLastUpdate > 0) {\n\n\t\t\t\t\t\tdouble var1 = (((localCurrentBatch - lastBatch) * batchSizeInTelemetryItems) / (timeElapsedSinceLastUpdate));\n\t\t\t\t\t\tdouble var2 = (currentBatch * batchSizeInTelemetryItems);\n\t\t\t\t\t\tSystem.out.println(String.format(\"Time elapsed %s, Items per second %s, Items sent %s\", timeElapsedSinceLastUpdate,\n\t\t\t\t\t\t\t\tvar1,\n\t\t\t\t\t\t\t\tvar2));\n\t\t\t\t\t}\n\n\t\t\t\t\tlastUpdate = localNow;\n\t\t\t\t\tlastBatch = localCurrentBatch;\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\t// overall batches to send\n\t\tint numBatches = (int)Math.floor((double)telemetryItemCount / batchSizeInTelemetryItems);\n\n\t\tlong expectedTimeToSendEverything = TimeUnit.SECONDS.toSeconds(numBatches * batchSizeInTelemetryItems / telemetryItemsPerSecond);\n\n\t\tstartTime = System.currentTimeMillis();\n\n\t\tlong estimatedEndTime = TimeUnit.SECONDS.convert(startTime, TimeUnit.MILLISECONDS) + expectedTimeToSendEverything;\n\n\t\tfor (currentBatch = 0; currentBatch < numBatches; ++currentBatch) {\n\n\t\t\t// pause if we're ahead of schedule\n\t\t\tint telemetryItemsLeft = (numBatches - currentBatch) * batchSizeInTelemetryItems;\n\n\t\t\tlong estimatedTimeLeftBasedOnOriginalSchedule = estimatedEndTime - TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS);\n\n\t\t\tlong estimatedTimeLeftBasedOnProgressSoFar = TimeUnit.SECONDS.toSeconds(telemetryItemsLeft / telemetryItemsPerSecond);\n\n\t\t\t// if we are ahead of the schedule, slow down\n\t\t\t// if we are behind the schedule, proceed forward at full speed\n\t\t\t// note that if the schedule is impossible to keep up with we'll just do our best, but not skip any items\n\n\t\t\tif (estimatedTimeLeftBasedOnProgressSoFar < estimatedTimeLeftBasedOnOriginalSchedule) {\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(estimatedTimeLeftBasedOnOriginalSchedule - estimatedTimeLeftBasedOnProgressSoFar);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t//send items here\n\t\t\tRandom random = new Random();\n\t\t\tint id = random.nextInt();\n\t\t\tMap<String, String> customDimensions = new HashMap<>();\n\t\t\tcustomDimensions.put(\"dimension\", String.valueOf(id));\n\n\t\t\tclient.trackTrace(\"sent a trace with id \" + id, SeverityLevel.Error);\n\t\t}\n\t}", "public void sendWaitingDatas()\n\t{\n\t\tProcessExecuterModule processExecuterModule = new ProcessExecuterModule();\n\t\t\n\t\tString sendResultByEmail = (settings.getBoolean(\"sendResultByEmail\", false)) ? \"0\" : \"1\";\n\t\t\n\t\tint numberOfWaitingDatas = settings.getInt(\"numberOfWaitingDatas\", 0);\n\t\t\n\t\twhile (numberOfWaitingDatas > 0)\n\t\t{\n\t\t\tprocessExecuterModule.runSendTestData(MainActivity.this,settings.getString(\"fileTitle\"+numberOfWaitingDatas, \"\"),\n\t\t\t\t\tsettings.getString(\"testData\"+numberOfWaitingDatas, \"\"),sendResultByEmail,\n\t\t\t\t\tsettings.getString(\"fileTitle2\"+numberOfWaitingDatas, \"\"), settings.getString(\"xmlResults\"+numberOfWaitingDatas, \"\"));\n\t\t\t\n\t\t\tnumberOfWaitingDatas--; \n\t\t}\n\t\t\n\t\teditor.putInt(\"numberOfWaitingDatas\", 0);\n\t\teditor.putBoolean(\"dataToSend\", false);\n\t\t\n\t\teditor.commit(); \n\t}", "private void startQueuedItemsSender() {\n if (ctrlSenderTimerRunning)\n return;\n\n ctrlSenderTimer = new Timer(true);\n ctrlSenderTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n JSONObject item = dataSource.getNextTxClient2Server();\n Log.i(TAG, \"Client2Server sender executed, assembling JSON and sending to Server...\");\n\n try {\n // no more? stop timer\n if (!item.has(\"moreInQueue\") || !item.getBoolean(\"moreInQueue\")) {\n stopQueuedItemsSender();\n }\n\n if (!item.getBoolean(\"fetched\")) {\n Log.w(TAG, \" ...warning, nothing fetched from BD!\");\n stopQueuedItemsSender();\n return;\n }\n\n CtrlMessage msg = new CtrlMessage(item.getString(\"jsonPackage\"));\n msg.setTXsender(item.getInt(\"TXclient\"));\n\n sendSocket(msg.buildMessage());\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, 15, 85);\n ctrlSenderTimerRunning = true;\n }", "private void sendInternal(Payload payload) {\n synchronized (internalLock) {\n outBuffer.addLast(payload);\n pendingMessages = true;\n internalLock.notify();\n }\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n protected void customSync() {\n Exchanger<Void>[] exchangers = (Exchanger<Void>[]) new Exchanger<?>[PRODUCERS_COUNT];\n\n for (int i = 0; i < PRODUCERS_COUNT; i++) {\n exchangers[i] = new Exchanger<>();\n new Producer(params.dataResults, params.postResult, exchangers[i]).start();\n }\n\n new Consumer(params.postFinish, exchangers).start();\n }", "private Mono<IndexBatchResponse> sendBatch(\n List<com.azure.search.documents.implementation.models.IndexAction> actions,\n List<TryTrackingIndexAction<T>> batchActions,\n Context context) {\n LOGGER.verbose(\"Sending a batch of size {}.\", batchActions.size());\n\n if (onActionSentConsumer != null) {\n batchActions.forEach(action -> onActionSentConsumer.accept(new OnActionSentOptions<>(action.getAction())));\n }\n\n Mono<Response<IndexDocumentsResult>> batchCall = Utility.indexDocumentsWithResponseAsync(restClient, actions, true,\n context, LOGGER);\n\n if (!currentRetryDelay.isZero() && !currentRetryDelay.isNegative()) {\n batchCall = batchCall.delaySubscription(currentRetryDelay);\n }\n\n return batchCall.map(response -> new IndexBatchResponse(response.getStatusCode(),\n response.getValue().getResults(), actions.size(), false))\n .doOnCancel(() -> {\n LOGGER.warning(\"Request was cancelled before response, adding all in-flight documents back to queue.\");\n inFlightActions.addAll(batchActions);\n })\n // Handles mixed success responses.\n .onErrorResume(IndexBatchException.class, exception -> Mono.just(\n new IndexBatchResponse(207, exception.getIndexingResults(), actions.size(), true)))\n .onErrorResume(HttpResponseException.class, exception -> {\n /*\n * If we received an error response where the payload was too large split it into two smaller payloads\n * and attempt to index again. If the number of index actions was one raise the error as we cannot split\n * that any further.\n */\n int statusCode = exception.getResponse().getStatusCode();\n if (statusCode == HttpURLConnection.HTTP_ENTITY_TOO_LARGE) {\n /*\n * Pass both the sent batch size and the configured batch size. This covers that case where the\n * sent batch size was smaller than the configured batch size and a 413 was trigger.\n *\n * For example, by default the configured batch size defaults to 512 but a batch of 200 may be sent\n * and trigger 413, if we only halved 512 we'd send the same batch again and 413 a second time.\n * Instead in this scenario we should halve 200 to 100.\n */\n int previousBatchSize = Math.min(batchActionCount, actions.size());\n this.batchActionCount = Math.max(1, scaleDownFunction.apply(previousBatchSize));\n\n LOGGER.verbose(BATCH_SIZE_SCALED_DOWN, System.lineSeparator(), previousBatchSize, batchActionCount);\n\n int actionCount = actions.size();\n if (actionCount == 1) {\n return Mono.just(new IndexBatchResponse(statusCode, null, actionCount, true));\n }\n\n int splitOffset = Math.min(actions.size(), batchActionCount);\n List<TryTrackingIndexAction<T>> batchActionsToRemove = batchActions.subList(splitOffset,\n batchActions.size());\n reinsertFailedActions(batchActionsToRemove);\n batchActionsToRemove.clear();\n\n return sendBatch(actions.subList(0, splitOffset), batchActions, context);\n }\n\n return Mono.just(new IndexBatchResponse(statusCode, null, actions.size(), true));\n })\n // General catch all to allow operation to continue.\n .onErrorResume(Exception.class, ignored ->\n Mono.just(new IndexBatchResponse(0, null, actions.size(), true)));\n }", "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\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// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}", "public void send(byte[] m, BFT.util.Role role, int index);", "void onRequest(int index, int begin, int length)\n {\n if (DEBUG) System.out.println(\"[stdpc] onRequest:\" + index + \",\" + begin + \",\" + length);\n\n// sendQueue.forEach(pm -> System.out.println(\"[stdpc] onRequest -b>\" + System.identityHashCode(pm) +\n// \" \" +pm.type + \" ,\" + pm.index +\",\" + pm.begin + \",\" + pm.length) );\n\n // validate common block parameters\n boolean correct = torrent.validateBlock(index, begin, length);\n if (!correct) {\n // just ignore such requests\n statistics.blocksRequestedIncorrect++;\n return;\n }\n\n // this could be moved to send(), but doesn't really matter\n statistics.blocksSent++;\n\n // track active requests\n StdPeerMessage pm = pmCache.request(index, begin, length);\n peerBlockRequests.add(pm);\n\n // notify torrent to read and enqueue block\n torrent.onRequest(this, index, begin, length);\n\n// sendQueue.forEach(x -> System.out.println(\"[stdpc] onRequest -a<\" + System.identityHashCode(x) +\n// \" \" +x.type + \" ,\" + x.index +\",\" + x.begin + \",\" + x.length) );\n\n }", "public void sendChunk(String fileName,ObjectOutputStream out)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n byte[] byteToSend = new byte[chunkSize];\n try\n {\n fInput = new FileInputStream(fileName);\n bufInput = new BufferedInputStream(fInput);\n int b;\n int i=0;\n b = bufInput.read(byteToSend,0,chunkSize);\n out.write(byteToSend,0,chunkSize);\n out.flush();\n bufInput.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File Chunk Not found Exception: Some chunk missing.\");\n }\n catch(IOException ex)\n {\n System.out.println(\"IOException while reading from the chunk file.\");\n }\n }", "@Override\r\n\tpublic void send() throws Exception {\n\t\t\r\n\t}", "@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void sendmessage(int new_offset[], int[] port_list) {\n\t\ttry {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t * port_list has the port of all processes. Message will be sent to\n\t\t\t * all process.\n\t\t\t * \n\t\t\t */\n\n\t\t\tfor (int i = 0; i < port_list.length; i++) {\n\t\t\t\tSocket processClient = new Socket(\"localhost\", port_list[i]);\n\t\t\t\tprocessClient.setReuseAddress(true);\n\t\t\t\tOutputStream processStream = processClient.getOutputStream();\n\t\t\t\tBufferedWriter processWriter = new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(processStream));\n\n\t\t\t\tprocessWriter.write(\"Master: Offset =\" + new_offset[i]);\n\n\t\t\t\t// System.out.println(\"Sending data from Master to other process running on \"\n\t\t\t\t// + port_list[i]);\n\n\t\t\t\tprocessWriter.flush();\n\t\t\t\t// processWriter.close();\n\t\t\t\tprocessClient.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void incrementSent() {\n\t\tmessagesSent.incrementAndGet();\n\t}", "public void sendRemainData();", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage-\"+System.currentTimeMillis();\n\t\t\tclient.writeProtocolMessage(msg,this);\n\t\t}\n\t}", "private void processStoreRequest(boolean initiatorPeer, Message request, ConcurrentHashMap<Integer, ChunkInfo> hashMap) {\n if (hashMap.get(request.getHeader().getChunkNo()) == null)\n return;\n\n ConcurrentHashMap<Integer, CopyOnWriteArrayList<Integer>> storesReceivedHash = peer.getFileSystem().getStoresReceived().get(request.getHeader().getFileId());\n\n if (storesReceivedHash == null) {\n storesReceivedHash = new ConcurrentHashMap<>();\n storesReceivedHash.put(request.getHeader().getSenderId(), new CopyOnWriteArrayList<>());\n }\n\n CopyOnWriteArrayList<Integer> listOfReceivedChunkOfThatSender = storesReceivedHash.get(request.getHeader().getSenderId());\n\n if (listOfReceivedChunkOfThatSender == null) {\n CopyOnWriteArrayList<Integer> newList = new CopyOnWriteArrayList<>();\n storesReceivedHash.put(request.getHeader().getSenderId(), newList);\n listOfReceivedChunkOfThatSender = newList;\n }\n\n\n if (listOfReceivedChunkOfThatSender.contains(request.getHeader().getChunkNo()))\n return;\n\n //Add the chunk No to the record\n listOfReceivedChunkOfThatSender.add(request.getHeader().getChunkNo());\n\n ChunkInfo chunkInfo = hashMap.get(request.getHeader().getChunkNo());\n\n chunkInfo.incrementReplicationLevel();\n\n hashMap.put(request.getHeader().getChunkNo(), chunkInfo);\n\n try {\n if (initiatorPeer) {\n peer.getFileSystem().writeInternalFileMetadataToDisk();\n } else {\n peer.getFileSystem().writeExternalFileChunksMetadataToDisk();\n }\n } catch (IOException e){\n log.error(\"Error while registering an increment of the perceivedReplication\");\n }\n }", "private synchronized void flush() {\r\n\t\tif (!buffer.isEmpty()) {\r\n\t\t\tfor (final LoggingRecord record : buffer) {\r\n\t\t\t\thandler.handle(record);\r\n\t\t\t}\r\n\t\t\tbuffer.clear();\r\n\t\t}\r\n\t}", "public static void customTest() throws IOException, NotBoundException, MessageNotFoundException {\n Client c = new Client();\n String fileName = \"file1\";\n\n char[] ss = \"[INITIAL DATA!]\".toCharArray(); // len = 15\n byte[] data = new byte[ss.length];\n for (int i = 0; i < ss.length; i++) {\n data[i] = (byte) ss[i];\n }\n\n c.write(fileName, data);\n\n c = new Client();\n ss = \"File 1 test test END\".toCharArray(); // len = 20\n data = new byte[ss.length];\n for (int i = 0; i < ss.length; i++) {\n data[i] = (byte) ss[i];\n }\n\n byte[] chunk = new byte[Configurations.CHUNK_SIZE];\n\n int seqN = data.length / Configurations.CHUNK_SIZE;\n int lastChunkLen = Configurations.CHUNK_SIZE;\n\n if (data.length % Configurations.CHUNK_SIZE > 0) {\n lastChunkLen = data.length % Configurations.CHUNK_SIZE;\n seqN++;\n }\n\n WriteAck ackMsg = c.masterStub.write(fileName);\n ReplicaServerClientInterface stub = (ReplicaServerClientInterface) registry.lookup(\"ReplicaClient\" + ackMsg.getLoc().getId());\n\n FileContent fileContent;\n @SuppressWarnings(\"unused\")\n ChunkAck chunkAck;\n //\t\tfor (int i = 0; i < seqN; i++) {\n System.arraycopy(data, 0 * Configurations.CHUNK_SIZE, chunk, 0, Configurations.CHUNK_SIZE);\n fileContent = new FileContent(fileName, chunk);\n chunkAck = stub.write(ackMsg.getTransactionId(), 0, fileContent);\n\n System.arraycopy(data, 1 * Configurations.CHUNK_SIZE, chunk, 0, Configurations.CHUNK_SIZE);\n fileContent = new FileContent(fileName, chunk);\n chunkAck = stub.write(ackMsg.getTransactionId(), 1, fileContent);\n\n // read here \n List<ReplicaLoc> locations = c.masterStub.read(fileName);\n System.err.println(\"[@CustomTest] Read1 started \");\n\n // TODO fetch from all and verify \n ReplicaLoc replicaLoc = locations.get(0);\n ReplicaServerClientInterface replicaStub = (ReplicaServerClientInterface) registry.lookup(\"ReplicaClient\" + replicaLoc.getId());\n fileContent = replicaStub.read(fileName);\n System.err.println(\"[@CustomTest] data:\");\n System.err.println(new String(fileContent.getData()));\n\n // continue write \n for (int i = 2; i < seqN - 1; i++) {\n System.arraycopy(data, i * Configurations.CHUNK_SIZE, chunk, 0, Configurations.CHUNK_SIZE);\n fileContent = new FileContent(fileName, chunk);\n chunkAck = stub.write(ackMsg.getTransactionId(), i, fileContent);\n }\n // copy the last chuck that might be < CHUNK_SIZE\n System.arraycopy(data, (seqN - 1) * Configurations.CHUNK_SIZE, chunk, 0, lastChunkLen);\n fileContent = new FileContent(fileName, chunk);\n chunkAck = stub.write(ackMsg.getTransactionId(), seqN - 1, fileContent);\n\n //commit\n ReplicaLoc primaryLoc = c.masterStub.locatePrimaryReplica(fileName);\n ReplicaServerClientInterface primaryStub = (ReplicaServerClientInterface) registry.lookup(\"ReplicaClient\" + primaryLoc.getId());\n primaryStub.commit(ackMsg.getTransactionId(), seqN);\n\n // read\n locations = c.masterStub.read(fileName);\n System.err.println(\"[@CustomTest] Read3 started \");\n\n replicaLoc = locations.get(0);\n replicaStub = (ReplicaServerClientInterface) registry.lookup(\"ReplicaClient\" + replicaLoc.getId());\n fileContent = replicaStub.read(fileName);\n System.err.println(\"[@CustomTest] data:\");\n System.err.println(new String(fileContent.getData()));\n\n }", "@Test\n\tpublic void testFastHaveAllMessage() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"00000\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (true);\n\t\twhen(peerSetContext.requestManager.allocateRequests (any (ManageablePeer.class), anyInt(), eq (false))).thenReturn (new ArrayList<BlockDescriptor>());\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveAllMessage());\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveNoneMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.interestedMessage());\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\t\tassertEquals (5, handler.getRemoteBitField().cardinality());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "@Override\n\tpublic void invoke() {\n\t\t\n\t\tIBuffer b = Buffer.getBuffer();\n\t\tint r = b.getRemainingCapacity();\n\t\t\n\t\t// the buffer is empty - this means that invoke was called after a grid was removed\n\t\t// and we need to fill it up to prevent starvation. Ideally the only way this could\n\t\t// happen is if the buffer size was 1\n\t\tif (r == 0) {\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (r < b.getCapacity())\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\n\t\tif (r > 0)\n\t\t\tPublisher.getInstance().send(new ConsumeMessage());\n\t\t\n\t}", "public void sendDataToAMQ(){\n\t\t\r\n\t\tList<String> msg = new ArrayList<>();\r\n\t\tif(offsetfollower < (prototype.followerDrivingInfo.meetingLocation - 500)) {\r\n\t\t\toffsetleader += prototype.leaderDrivingInfo.speed;\r\n\t\t\toffsetfollower += prototype.followerDrivingInfo.speed;\r\n\t\t\tmsg.add(\"<carName TestCar carName> <segmentPosX -4 segmentPosX> <segmentPosY \"+ (+offsetleader) +\" segmentPosY> <carSpeed \" + (prototype.leaderDrivingInfo.speed)+\" carSpeed>\");\r\n\t\t\tmsg.add(\"<carName Camcar carName> <segmentPosX -4 segmentPosX> <segmentPosY \"+ (offsetfollower) +\" segmentPosY> <carSpeed \" + (prototype.followerDrivingInfo.speed)+\" carSpeed>\");\t\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\toffsetleader += prototype.leaderDrivingInfo.speed;\r\n\t\t\toffsetfollower += prototype.leaderDrivingInfo.speed ;\r\n\t\t\tmsg.add(\"<carName TestCar carName> <segmentPosX -4 segmentPosX> <segmentPosY \"+ (+offsetleader) +\" segmentPosY> <carSpeed \" + (prototype.leaderDrivingInfo.speed)+\" carSpeed>\");\t\r\n\t\t\tmsg.add(\"<carName Camcar carName> <segmentPosX -4 segmentPosX> <segmentPosY \"+ (offsetfollower) +\" segmentPosY> <carSpeed \" + (prototype.leaderDrivingInfo.speed)+\" carSpeed>\");\r\n\r\n\t\t}\r\n for(int i = 0; i < msg.size();i++)\r\n {\r\n \tamqp.sendMessage(msg.get(i));\r\n }\r\n// \t}\r\n }", "public void sendList(String msg, int count) {\n\t\t\toutput.println((count + 1) + \". \" + msg);\n\t\t}", "void sendMessage(long[] queueIds, byte[] content, int prio) throws IOException, MlmqException;", "@Override\r\n\tpublic void send(JT808ProtocalPack message) throws Exception {\n\r\n\t}", "@Override\n public void completed(Integer result, AsynchronousSocketChannel channel ) {\n\n //ipaddress\n String ipAdr = \"\";\n try{\n\n //Print IPAdress\n ipAdr = channel.getRemoteAddress().toString();\n System.out.println(ipAdr);\n }catch(IOException e) {\n e.printStackTrace();\n }\n\n //if client is close ,return\n buf.flip();\n if (buf.limit() == 0) return;\n\n //Print Message\n String msg = getString(buf);\n\n //time\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Taipei\"));\n System.out.println(sdf.format(new Date()) + \" \" + buf.limit() + \" client: \"+ ipAdr + \" \" + msg);\n\n //\n order ord = null;\n try{\n ord = ParseOrder(sdf.format(new Date()), msg, ipAdr);\n }catch(Exception ex){\n startRead( channel );\n return;\n }\n //2021/05/23 15:55:14.763,TXF,B,10000.0,1,127.0.0.1\n //2021/05/23 15:55:14.763,TXF,S,10000.0,1,127.0.0.1\n\n if (ord.BS.equals(\"B\")) {\n limit(ord, bid);\n }\n if (ord.BS.equals(\"S\")) {\n limit(ord, ask);\n }\n if (trade(bid, ask, match) == true){\n startWrite(clientChannel, \"Mat:\" + match.get(match.size()-1).sysTime + \",\" + match.get(match.size()-1).stockNo+\",\"+\n match.get(match.size()-1).BS+\",\"+match.get(match.size()-1).qty+\",\"+match.get(match.size()-1).price+\"\\n\");\n }\n\n //send to all \n startWrite(clientChannel, \"Ord:\" + getAllOrder(bid, ask)+\"\\n\");\n \n //bid size and ask size\n System.out.println(\"Blist:\" + bid.size() + \" Alist:\" + ask.size());\n\n // echo the message\n//------------------> //startWrite( channel, buf );\n \n //start to read next message again\n startRead( channel );\n }", "public void sendRequest(byte[] request) {\n // send request\n try {\n //get file id and chunk number\n String[] req = new String(request).split(\" \",5);\n String fileID = req[3] , chunkNo = req[4];\n\n //create socket\n MulticastSocket socket = new MulticastSocket(this.mcastPort);\n\n socket.setTimeToLive(1);\n socket.joinGroup(InetAddress.getByName(mscastAdress));\n\n int time = new Random().nextInt(400);\n socket.setSoTimeout(time); //max time it will listen to\n\n //listen for x time\n long oldTime = System.currentTimeMillis();\n byte[] b = new byte[65000];\n\n DatagramPacket receive = new DatagramPacket(b,b.length);\n while(System.currentTimeMillis()-oldTime < time){\n\n try {\n socket.receive(receive);\n }catch (IOException e)\n {\n System.out.println(\"\\nReached time out - no one has sent PUTCHUNK!\");\n break;\n }\n\n String[] ms = new String(receive.getData()).split(\" \",6);\n\n if(ms[1]==\"PUTCHUNK\" && ms[3]==fileID && ms[4]==chunkNo){\n System.out.println(\"Someone already sent it!\");\n socket.close();\n return;//exit\n }\n }\n\n //sending request\n DatagramPacket replyPacket = new DatagramPacket(request, request.length, InetAddress.getByName(mscastAdress), mcastPort);\n socket.send(replyPacket);\n\n System.out.println(\"In PUTCHUNK - Sent packet, no one has sent it\");\n socket.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void run() {\n\t\tkafkaProducer.send(record);\n\t\tkafkaProducer.close();\n\t}", "@Override\n\tpublic void msgPartsLow() {\n\t\t\n\t}", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "protected abstract void transfer(UUID[] players, String server, IntConsumer response);", "public void sendUSBList(List<Map<String, String>> values, String table_name){\n int n = values.size();\n int max_jsons = 1+(int)Math.ceil(n/LOCAL_SENDING_AMOUNT);\n\n //Send to Server - CUT INTO SMALLER PIECES TOO\n List<Map<String, String>> temp = new ArrayList<Map<String, String>>();\n //List too long: break in smaller chunks\n int sent = 0;\n for (int i = 0; i < n && sent < max_jsons-1; i++) {\n Map<String, String> val = values.get(i);\n val.put(\"table_name\", table_name);\n temp.add(val);\n if ((i + 1) % LOCAL_SENDING_AMOUNT == 0) {\n //System.out.println(\"Save temp\");\n\n //SEND RIGHT HERE\n sendUSBmessage(IITServerConnector.convertToJSON(temp));\n\n //result[sent] = IITServerConnector.convertToJSON(temp);\n sent++;\n temp = new ArrayList<Map<String, String>>();\n //System.out.println(\"Saved\");\n }\n }\n //SEND RIGHT HERE\n if (temp != null && !temp.isEmpty()) {\n sendUSBmessage(IITServerConnector.convertToJSON(temp));\n\n }else{\n //DO NOTHING\n }\n\n //Remaining\n //result[sent]= IITServerConnector.convertToJSON(temp);\n }", "public void run() {\n\t\t\tBundle b = null;\n\t\t\tint i = 0, j;\n\t\t\ttry {\n\t\t\t\tfor (i = 0; i < t.length; i++) {\n\t\t\t\t\tString timestamp = \"\";\n\t\t\t\t\twhile (t[i].noOfBundles == 0)\n\t\t\t\t\t\t;\n\t\t\t\t\tfor (j = seq; j < t[i].noOfBundles; j++) {\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t// System.out.println(\"SEQ ACK : \" +\n\t\t\t\t\t\t\t// t[i].noOfBundles);\n\t\t\t\t\t\t\tbyte[] buffer = (byte[]) ois.readObject();\n\t\t\t\t\t\t\tb = new Bundle();\n\t\t\t\t\t\t\tb.parse(buffer);\n\t\t\t\t\t\t\tif (b.bundleNumber == b.noOfBundles - 1)\n\t\t\t\t\t\t\t\ttimestamp = new String(b.data);\n\t\t\t\t\t\t\t// System.out.println(\"ACK WAITING : \" + j);\n\t\t\t\t\t\t\t// System.out.println(\"ACK RECEIVED : \"\n\t\t\t\t\t\t\t// + b.bundleNumber);\n\t\t\t\t\t\t\t// System.out.println(t[i].transactionId + \" \"\n\t\t\t\t\t\t\t// + t[i].noOfBundles + \" \" + j);\n\t\t\t\t\t\t} while (!b.isAcknowledgement(t[i].transactionId,\n\t\t\t\t\t\t\t\tt[i].noOfBundles, j));\n\t\t\t\t\t}\n\t\t\t\t\t// System.out.println(\"TIMESTAMP RECEIVED IS :\" +\n\t\t\t\t\t// timestamp);\n\t\t\t\t\tlong ts = Long.parseLong(timestamp);\n\t\t\t\t\tdh.setSynced(ts, t[i].records);\n\t\t\t\t\tseq = 0;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tObjectOutputStream fout;\n\t\t\t\ttry {\n\t\t\t\t\tfout = new ObjectOutputStream(new FileOutputStream(\n\t\t\t\t\t\t\tnew File(storagePath + \"/push\")));\n\t\t\t\t\tfout.writeObject(t);\n\t\t\t\t\t// System.out\n\t\t\t\t\t// .println(\"-----------------------------------------------------\");\n\t\t\t\t\t// System.out.println(\"Written broken transaction!!!\");\n\t\t\t\t\t// System.out\n\t\t\t\t\t// .println(\"-----------------------------------------------------\");\n\t\t\t\t\tfout.close();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.println(\"ACK ENDED\");\n\t\t}", "public void testSenderOrderWithMultipleSiteMasters() throws Exception {\n MyReceiver<Object> rx=new MyReceiver<>().rawMsgs(true).verbose(true),\n ry=new MyReceiver<>().rawMsgs(true).verbose(true), rz=new MyReceiver<>().rawMsgs(true).verbose(true);\n final int NUM=512;\n final String sm_picker_impl=SiteMasterPickerImpl.class.getName();\n a=createNode(LON, \"A\", LON_CLUSTER, 2, sm_picker_impl, null);\n b=createNode(LON, \"B\", LON_CLUSTER, 2, sm_picker_impl, null);\n c=createNode(LON, \"C\", LON_CLUSTER, 2, sm_picker_impl, null);\n Util.waitUntilAllChannelsHaveSameView(10000, 1000, a,b,c);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, 2, sm_picker_impl, rx);\n y=createNode(SFO, \"Y\", SFO_CLUSTER, 2, sm_picker_impl, ry);\n z=createNode(SFO, \"Z\", SFO_CLUSTER, 2, sm_picker_impl, rz);\n Util.waitUntilAllChannelsHaveSameView(10000, 1000, x,y,z);\n\n waitForBridgeView(4, 10000, 1000, a,b,x,y);\n\n // C in LON sends messages to the site master of SFO (via either SM A or B); everyone in SFO (x,y,z)\n // must receive them in correct order\n SiteMaster target_sm=new SiteMaster(SFO);\n System.out.printf(\"%s: sending %d messages to %s:\\n\", c.getAddress(), NUM, target_sm);\n for(int i=1; i <= NUM; i++) {\n Message msg=new BytesMessage(target_sm, i); // the seqno is in the payload of the message\n c.send(msg);\n }\n\n boolean running=true;\n for(int i=0; running && i < 10; i++) {\n for(MyReceiver<Object> r: Arrays.asList(rx,ry,rz)) {\n if(r.size() >= NUM) {\n running=false;\n break;\n }\n }\n Util.sleep(1000);\n }\n\n System.out.printf(\"X: size=%d\\nY: size=%d\\nZ: size=%d\\n\", rx.size(), ry.size(), rz.size());\n assert rx.size() == NUM || ry.size() == NUM;\n assert rz.size() == 0;\n }", "@Override\n\tpublic void visit(Request r) {\n\t\tif (!ph.getPeerChoked()) {\n\t\t\tSystem.out.println(\"requete rećue\");\n\t\t\tbyte[] body = r.getBody();\n\t\t\tbyte[] indexB = new byte[4], beginB = new byte[4], lengthB = new byte[4];\n\t\t\tTorrent torrent = ph.getTorrent();\n\t\t\tint index = 0, begin = 0, length = 0;\n\n\t\t\tindexB = Arrays.copyOfRange(body, 0, 4);\n\t\t\tindex = byteArrayToInt(indexB);\n\n\t\t\tbeginB = Arrays.copyOfRange(body, 4, 8);\n\t\t\tbegin = byteArrayToInt(beginB);\n\n\t\t\tlengthB = Arrays.copyOfRange(body, 8, body.length);\n\t\t\tlength = byteArrayToInt(lengthB);\n\n\t\t\tPiece piece = torrent.getPieces().get(index);\n\t\t\tif (index <= torrent.getPieces().size()) {\n\t\t\t\tbyte[] block = new byte[length];\n\t\t\t\tbyte[] pieceByte = piece.getData();\n\t\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\t\tblock[i] = pieceByte[begin + i];\n\t\t\t\t}\n\t\t\t\tsb = new SendBlock(index, begin, block);\n\t\t\t\tthis.ph.addMessageQueue(sb);\n\t\t\t\tSystem.out.println(\"sendBlock envoyé\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Index trop grand\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic int fileTransferSend(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, ByteBuffer buffer, int size) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "private ChannelFuture write(ClientMessagePacker packer) throws IgniteClientConnectionException {\n var buf = packer.getBuffer();\n\n return sock.send(buf);\n }", "protected void aOutput(Message message)\r\n {\r\n \t//rdt_send(data)\r\n \tcount_original_packets_transmitted_by_A++;\r\n \tSystem.out.println(\"|aOutput| : message received from above.\");\r\n \tmessageCongestionBuffer.add(message);\r\n \tSystem.out.println(\"|aOutput| : messageCongestionBuffer add new message, buffer size now is: \"+Integer.toString(messageCongestionBuffer.size()));\r\n \tif(next_seq_num<window_base+WindowSize)\r\n \t{\r\n \t\t/*\r\n \t\tif(messageCongestionBuffer.size()>0) //something has already been in the buffer\r\n \t\t{\r\n \t\t\tSystem.out.println(\"something has already been in the buffer\");\r\n \t\t\tmessageCongestionBuffer.add(message);\r\n \t\t\tmessage = messageCongestionBuffer.get(0);\r\n \t\t\tmessageCongestionBuffer.remove(0);\r\n \t\t}\r\n \t\t*/\r\n \t\tString data = messageCongestionBuffer.get(0).getData();\r\n \t\tmessageCongestionBuffer.remove(0);\r\n \t\t\r\n \t\t//public Packet(int seq, int ack, int check, String newPayload)\r\n \t\t\r\n \t\tint seq = next_seq_num % LimitSeqNo;\r\n \t\tint ack = ACK_NOT_USED;\r\n \t\tint check = makeCheckSum(seq,ack,data);\r\n \t\tpacketBufferAry[next_seq_num % LimitSeqNo] = new Packet(seq,ack,check,data);\r\n \t\tSystem.out.println(\"|aOutput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is made\");\r\n \t\ttoLayer3(0,packetBufferAry[next_seq_num % LimitSeqNo]); //udt_send\r\n \t\tSystem.out.println(\"|aOutput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is sent\");\r\n \t\t\r\n \t\tif(next_seq_num==window_base) \r\n \t\t{\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"|aOutput| : timer is started\");\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\tnext_seq_num = (next_seq_num+1) % LimitSeqNo;\t\r\n \t\tSystem.out.println(\"|aOutput| : next_seq_num now becomes: \"+next_seq_num+\".\");\r\n \t\t\r\n \t}\r\n \telse\r\n \t{\r\n \t\tSystem.out.println(\"|aOutput| : windows is full, it is saved in a buffer.\");\r\n \t\tSystem.out.println(\"|aOutput| : messageCongestionBuffer size now is: \"+Integer.toString(messageCongestionBuffer.size()));\r\n\r\n \t}\r\n \t\r\n //\tpublic Packet(int seq, int ack, int check,int[] sackAry)\r\n \t/*\r\n \t\tif(state_sender == STATE_WAIT_FOR_CALL_0_FROM_ABOVE)\r\n \t\t{\r\n \t\t\t\r\n \t\t\tint seq = 0; //seq = 0\r\n \t\t\tint ack = ACK_NOT_USED; //0 for not using\r\n \t\t\tString dataStr = message.getData();\r\n \t\t\tint check;\r\n \t\t\tcheck = makeCheckSum(seq,ack,dataStr); //checksum\r\n \t\t\tPacket p = new Packet(seq,ack,check,message.getData()); //make_pkt\r\n \t\t\t\r\n \t\t\tpacketBuffer = p; //save packets for resend\r\n \t\t\t\r\n \t\t\ttoLayer3(0,p); //udt_send\r\n \t\t\tstate_sender = STATE_WAIT_FOR_ACK_OR_NAK_0;\r\n \t\t\tSystem.out.println(\"aOutput: packet0 successfully send.\");\r\n \t\t\t\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aOutput: start timer\");\r\n \t\t\t\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t\telse if (state_sender == STATE_WAIT_FOR_CALL_1_FROM_ABOVE)\r\n \t\t{\r\n \t\t\tint seq = 1; //seq = 0\r\n \t\t\tint ack = ACK_NOT_USED; //0 for not using\r\n \t\t\tString dataStr = message.getData();\r\n \t\t\tint check;\r\n \t\t\tcheck = makeCheckSum(seq,ack,dataStr); //checksum\r\n \t\t\tPacket p = new Packet(seq,ack,check,message.getData()); //make_pkt\r\n \t\t\t\r\n \t\t\tpacketBuffer = p; //save packets for resend\r\n \t\t\t\r\n \t\t\ttoLayer3(0,p); //udt_send\r\n \t\t\tstate_sender = STATE_WAIT_FOR_ACK_OR_NAK_1;\r\n \t\t\tSystem.out.println(\"aOutput: packet1 successfully send.\");\t\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aOutput: start sender timer\");\r\n \t\t}\r\n \t\t*/\r\n }", "void sendProgressMessage(int bytesWritten, int bytesTotal);", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "private void requestSent(boolean afterFlush, long lastTransactionBeforeSending) {\n\t\t\tlong rbs = requestsBeingSending.decrementAndGet();\n\t\t\tif (captureHitRatio)\n\t\t\t\trequestsOut.increment();\n\t\t\tassert this.lastSentTransaction == lastTransactionBeforeSending;\n\t\t\tassert this.sending;\n\t\t\tthis.sendLock.writeLock().lock();\n\t\t\ttry {\n\t\t\t\tthis.sending = false;\n\n\t\t\t\t// No update can happen when executing this section\n\t\t\t\tif (this.transactionDistributor.get() > this.lastSentTransaction) {\n\t\t\t\t\t// This request is THE only request for its row\n\t\t\t\t\tassert this == writesByRows.get(this.row);\n\t\t\t\t\t\n\t\t\t\t\tif (!afterFlush) {\n\t\t\t\t\t\t// A transaction happened while sending ; re-planning\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.plan();\n\t\t\t\t\t\t\tlogger.fine(this.toString() + \" sent on \" + new Date(System.currentTimeMillis()) + \" replanned for \" + new Date(this.outDateMs.get()));\n\t\t\t\t\t\t} catch (RequestIsOutException x) {\n\t\t\t\t\t\t\t// We are the only process authorized to try to plan at this point\n\t\t\t\t\t\t\t// (indeed, this store request is still indexed by writesByRows)\n\t\t\t\t\t\t\tassert false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// No transaction happened ; killing this object and releasing memory\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\tthis.sendLock.writeLock().unlock();\n\t\t\t\tEvictionThread et = evictionThread.get();\n\t\t\t\tif (et != null && et.waiting && rbs < getMaxSenderThreads())\n\t\t\t\t\tsynchronized(et) {\n\t\t\t\t\t\tif (et.waiting && rbs < getMaxSenderThreads())\n\t\t\t\t\t\t\tet.notify();\n\t\t\t\t\t}\n\t\t\t}\n\t\t}", "private void sendWriteChunkRequest(File file, InputStream is,\n ConnectionUtilities connections, int numberOfChunks)\n throws NumberFormatException, IOException {\n byte[] message = new byte[ Constants.CHUNK_SIZE ];\n\n ProgressBar progress = new ProgressBar( file.getName() );\n\n WriteChunkRequest request = new WriteChunkRequest( file.getAbsolutePath(),\n 0, null, file.lastModified(), 1, null );\n\n int sequence = 0, length = 0;\n while ( ( length = is.read( message ) ) != -1 )\n {\n // Only send to the first connection, whom will forward the rest\n String[] initialConnection = routes[ sequence ][ 0 ].split( \":\" );\n TCPConnection connection =\n connections.cacheConnection( node, initialConnection, false );\n // Pad elements b[k] through b[b.length-1] with zeros\n Arrays.fill( message, length, Constants.CHUNK_SIZE, ( byte ) 0 );\n byte[][] messageToSend = new byte[][] { message };\n if ( Properties.SYSTEM_DESIGN_SCHEMA\n .equals( Constants.SYSTEM_TYPE_ERASURE ) )\n {\n messageToSend = ReedSolomonUtilities.encode( message );\n }\n request.setMessage( messageToSend );\n request.setRoutes( routes[ sequence ] );\n request.setSequence( sequence );\n connection.getTCPSender().sendData( request.getBytes() );\n\n progress.update( sequence, numberOfChunks );\n ++sequence;\n }\n }", "@Override\r\n\tprotected void process(List<String> chunks) {\r\n\t\tfor (String data: chunks) {\r\n\t\t\thandleData(data);\r\n\t\t}\r\n\t}", "@Test\n public void multipleProducerScenarioTest() throws InterruptedException, JsonProcessingException, ExecutionException {\n\n //Create list of chunk for producer 1\n ObjectMapper objectMapper = new ObjectMapper();\n List<Chunk> chunkList1 = new ArrayList<>();\n Chunk chunk = new Chunk();\n chunk.setData(Arrays.asList(objectMapper.readValue(\"{\\\"id\\\":\\\"1\\\", \\\"asOf\\\":\\\"2021-09-07T21:26:57.202898400\\\", \\\"payload\\\":{\\\"Price\\\":20.139961889377744}}\", Record.class),\n objectMapper.readValue(\"{\\\"id\\\":\\\"2\\\", \\\"asOf\\\":\\\"2021-09-07T09:26:57.265399700\\\", \\\"payload\\\":{\\\"Price\\\":70.14384608537513}}\", Record.class)));\n chunkList1.add(chunk);\n ExecutorService executorService = Executors.newFixedThreadPool(2);\n ProducerThread producerThread1 = new ProducerThread(\"Producer1\", chunkList1, 10, new ApplicationService());\n\n Future<String> producerResult = executorService.submit(producerThread1);\n while (true) {\n if (producerResult.isDone())\n break;\n }\n\n //Once the producer 1 is done with the batch run, producer 2 starts the batch run\n if (ProducerConstants.BATCH_COMPLETION_MESSAGE.equals(producerResult.get())) {\n List<Chunk> chunkList2 = new ArrayList<>();\n chunk.setData(Arrays.asList(objectMapper.readValue(\"{\\\"id\\\":\\\"1\\\", \\\"asOf\\\":\\\"2021-09-07T21:55:57.265399700\\\", \\\"payload\\\":{\\\"Price\\\":98.12933222921298}}\", Record.class),\n objectMapper.readValue(\"{\\\"id\\\":\\\"2\\\", \\\"asOf\\\":\\\"2021-09-06T10:26:57.265399700\\\", \\\"payload\\\":{\\\"Price\\\":31.54355122981366}}\", Record.class)));\n chunkList2.add(chunk);\n ProducerThread producerThread2 = new ProducerThread(\"Producer2\", chunkList2, 10, new ApplicationService());\n\n producerResult = executorService.submit(producerThread2);\n while (true) {\n if (producerResult.isDone())\n break;\n }\n\n //Once producer 2 is also done with the batch , then start 2 consumer threads to access the instrument id value.\n if (ProducerConstants.BATCH_COMPLETION_MESSAGE.equals(producerResult.get())) {\n Future<String> priceFromConsumer1 = executorService.submit(new ConsumerThread(\"Consumer1\", 1, new ApplicationService()));\n Future<String> priceFromConsumer2 = executorService.submit(new ConsumerThread(\"Consumer2\", 2, new ApplicationService()));\n\n assertEquals(\"98.12933222921298\", priceFromConsumer1.get());\n assertEquals(\"70.14384608537513\", priceFromConsumer2.get());\n }\n }\n\n executorService.shutdown();\n\n }", "@Override\n public void send(String name, String value, long timestamp) throws IOException {\n metrics.add(new MetricTuple(sanitize(name), timestamp, sanitize(value)));\n\n if (metrics.size() >= batchSize) {\n writeMetrics();\n }\n }", "private void fireChunkSent(final int chunkSize) {\n utils.logMonitorChunkSent(monitor, chunkSize);\n try {\n monitor.chunkSent(chunkSize);\n } catch (final Throwable cause) {\n utils.logMonitorError(monitor, cause);\n }\n }", "public void sendUpdates() {\n\t\tif (this.dirtyBlocks.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tWorld world = this.cube.getWorld();\n\t\t\n\t\t// how many?\n\t\tif (this.dirtyBlocks.size() == 1) {\n\t\t\t// get the block coords\n\t\t\tint address = this.dirtyBlocks.first();\n\t\t\t\n\t\t\tBlockPos pos = addressToBlockPos(address);\n\t\t\t\n\t\t\t// send single block updates\n\t\t\tsendPacketToAllPlayers(new PacketBlockChange(world, pos));\n\t\t\tif (world.getBlockEntityAt(pos) != null) {\n\t\t\t\tsendBlockEntityToAllPlayers(world.getBlockEntityAt(pos));\n\t\t\t}\n\t\t} else if (this.dirtyBlocks.size() == MaxBlocksPerUpdate) {\n\t\t\t// send whole cube (wrapped in a column view)\n\t\t\tColumnView view = new ColumnView(this.cube.getColumn());\n\t\t\tview.addCubeToView(this.cube);\n\t\t\tsendPacketToAllPlayers(new PacketChunkData(view, false, 0));\n\t\t\tfor (BlockEntity blockEntity : this.cube.getBlockEntities()) {\n\t\t\t\tsendBlockEntityToAllPlayers(blockEntity);\n\t\t\t}\n\t\t} else {\n\t\t\t// encode the update coords\n\t\t\tshort[] coords = new short[this.dirtyBlocks.size()];\n\t\t\tint i = 0;\n\t\t\tfor (int address : this.dirtyBlocks) {\n\t\t\t\tint localX = unpackLocalX(address);\n\t\t\t\tint localY = unpackLocalY(address);\n\t\t\t\tint localZ = unpackLocalZ(address);\n\t\t\t\tint blockY = Coords.localToBlock(this.cube.getY(), localY);\n\t\t\t\tcoords[i++] = (short) ( (localX & 0xf) << 12 | (localZ & 0xf) << 8 | (blockY & 0xff));\n\t\t\t}\n\t\t\t\n\t\t\t// send multi-block updates\n\t\t\tsendPacketToAllPlayers(new PacketMultiBlockChange(coords.length, coords, this.cube.getColumn()));\n\t\t\tfor (int address : this.dirtyBlocks) {\n\t\t\t\tint localX = unpackLocalX(address);\n\t\t\t\tint localY = unpackLocalY(address);\n\t\t\t\tint localZ = unpackLocalZ(address);\n\t\t\t\tint blockX = Coords.localToBlock(this.cube.getX(), localX);\n\t\t\t\tint blockY = Coords.localToBlock(this.cube.getY(), localY);\n\t\t\t\tint blockZ = Coords.localToBlock(this.cube.getZ(), localZ);\n\t\t\t\t\n\t\t\t\tBlockPos pos = new BlockPos(blockX, blockY, blockZ);\n\t\t\t\tsendBlockEntityToAllPlayers(this.cube.getBlockEntity(pos, ChunkEntityCreationType.QUEUED));\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.dirtyBlocks.clear();\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }" ]
[ "0.6227037", "0.61616373", "0.6147652", "0.5938534", "0.58981246", "0.58790255", "0.5797131", "0.5734052", "0.57291836", "0.5724295", "0.57238114", "0.57165647", "0.5715648", "0.56744766", "0.56629306", "0.56389725", "0.5621014", "0.5620513", "0.5620017", "0.56179285", "0.55926985", "0.55692315", "0.55646574", "0.5556667", "0.554344", "0.54981905", "0.54757977", "0.54711056", "0.5468384", "0.54596776", "0.54580337", "0.5449829", "0.544974", "0.5444038", "0.5423057", "0.5414445", "0.53750634", "0.5366554", "0.5363384", "0.5358661", "0.5353259", "0.535041", "0.5323183", "0.5319711", "0.5315816", "0.530709", "0.53044", "0.5289377", "0.5285014", "0.52704936", "0.5264866", "0.52611005", "0.5246376", "0.5238721", "0.52368706", "0.5236527", "0.5235412", "0.52114797", "0.5205812", "0.5196765", "0.5195832", "0.5195492", "0.51896816", "0.5170215", "0.5155481", "0.5153755", "0.5146486", "0.5140748", "0.51338005", "0.51305145", "0.51285654", "0.51252997", "0.5121977", "0.51193976", "0.5118231", "0.5111703", "0.51044005", "0.5101211", "0.50912166", "0.50832355", "0.5079792", "0.506846", "0.50575083", "0.50568867", "0.5052412", "0.50523555", "0.50504994", "0.5046041", "0.5044505", "0.5044053", "0.50383395", "0.5033387", "0.5031091", "0.502719", "0.5026761", "0.50253296", "0.5024383", "0.50235134", "0.50232214", "0.50154483", "0.5010291" ]
0.0
-1
This Runnable should be executed whenever there are new data in any of Loader's streams OR Loader was disconnected.
public Runnable getLoaderDataAvailabilityCallback() { return loaderDataAvailabilityCallback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n DownloadListener.getListener().execute();\n }", "@Override\n public void run() {\n load_remote_data();\n }", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "@Override\n public void run() {\n refreshData();\n }", "void onLoaderFinished();", "@Override\n\tpublic void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n\t\tswitch (loader.getId()) {\n\t\t\tcase LOADER_ID:\n\t\t\t\t// The asynchronous load is complete and the data\n\t\t\t\t// is now available for use. Only now can we associate\n\t\t\t\t// the queried Cursor with the SimpleCursorAdapter.\n\t\t\t\tmAdapter.swapCursor(cursor);\n\t\t\t\tmCursor = mAdapter.getCursor();\n\t\t\t\tbreak;\n\t\t}\n\t\t// The listview now displays the queried data.\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLooper.prepare();\n\t\t\t\tif (syncArticleContent()) {\n\t\t\t\t\thandler.sendEmptyMessage(OFFLINE_DOWNLOAD);\n\t\t\t\t}\n\t\t\t}", "@Override public void onLoaderReset(Loader<Cursor> loader) {\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\trefreshListView.stopLoad();\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tGPSLogData saved = GPSLogData.loadFile(mCarData.sel_vehicleid);\n\t\t\t\tif (saved != null) {\n\t\t\t\t\tLog.v(TAG, \"GPSLogData loaded for \" + mCarData.sel_vehicleid);\n\t\t\t\t\tlogData = saved;\n\t\t\t\t\tdataSetChanged();\n\t\t\t\t}\n\t\t\t\thideProgressOverlay();\n\t\t\t}", "public void doLazyDataFetch()\n {\n if (m_fetchedRowCount == rowCount)\n m_fetchedRowCount = 0;\n else\n m_fetchedRowCount++;\n \n for (Enumeration e = m_dataDirectorListeners.elements(); e.hasMoreElements(); )\n {\n DataDirectorListener listener = (DataDirectorListener)e.nextElement();\n listener.waitDataAvailable(new WaitDataAvailableEvent(this));\n }\n }", "@Override\n public void run() {\n adapterOverView.notifyDataSetChanged();\n\n // hide progress bar\n progressBarInOverViewWait.setVisibility(View.GONE);\n\n // change var for false if end getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = false;\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\ttry {\n\t\t\t\t// TODO 载入文件\n\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\titemAdd(\"hehe\" + i, \"hehe\");\n\t\t\t\t}\n\t\t\t\thandler.sendEmptyMessage(0);\n\t\t\t\t// mSimpleAdapter.notifyDataSetChanged();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.i(\"错误显示\", e.getMessage());\n\t\t\t}\n\t\t}", "@Override\n protected void onStopLoading() {\n cancelLoad();\n\n // Note that we leave the observer as is. Loaders in a stopped state\n // should still monitor the data source for changes so that the Loader\n // will know to force a new load if it is ever started again.\n }", "private void initDataLoader() {\n\t}", "@Override\n public void run() {\n loadItems();\n notifyDataSetChanged();\n }", "void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "void onFetchDataStarted();", "public void run() {\n long num = numEvents.get();\n long lastnum = lastNumEvents.get();\n long evps = (num-lastnum)/App.METRICS_PER_SECOND;\n lastNumEvents.set(num);\n System.out.println(\"Consumer[\"+\n nnaammee+\"]: cursorRestarts=\"+cursorRestarts.get()\n +\" numEvents=\"+num\n +\" events/second=\"+evps\n +\" totalNumEvents=\"+totalNumEvents.get());\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tcount=pagerlistener.setpage();\n//\t\t\t\t initNewDatas(count);//得到新数据\n\t\t\t\tfightermessageadapter.notifyDataSetChanged();//刷新ListView;\n\t\t\t\ttopNewsMoreLV.loadCompleted();\n\t\t\t}", "@Override\n public void onLoaderReset(Loader<List<Link>> loader) {\n }", "protected void updateLoading()\n {\n scheduled = false;\n\n if (!valid)\n return;\n\n while (loading.size() < numConnections) {\n updateActiveStats();\n\n final TileInfo tile;\n synchronized (toLoad) {\n if (toLoad.isEmpty())\n break;\n tile = toLoad.last();\n if (tile != null) {\n toLoad.remove(tile);\n }\n }\n if (tile == null) {\n break;\n }\n\n tile.state = TileInfoState.Loading;\n synchronized (loading) {\n if (!loading.add(tile)) {\n Log.w(\"RemoteTileFetcher\", \"Tile already loading: \" + tile.toString());\n }\n }\n\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Starting load of request: \" + tile.fetchInfo.urlReq);\n\n // Set up the fetching task\n tile.task = client.newCall(tile.fetchInfo.urlReq);\n\n if (tile.isLocal) {\n // Try reading the data in the background\n new CacheTask(this,tile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,(Void)null);\n } else {\n startFetch(tile);\n }\n }\n\n updateActiveStats();\n }", "public void onLoadComplete(){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.onLoadComplete();\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\n\t}", "@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n // Update the data that the adapter uses to create ViewHolders\n mAdapter.swapCursor(data);\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n\n\n }", "public void run()\n {\n parentProvider.getConnection()\n .removeAsyncStanzaListener(this);\n\n // init ssList\n ssContactList.init(contactChangesListener);\n\n // as we have dispatched the contact list and Roster is ready\n // lets start the jingle nodes discovery\n parentProvider.startJingleNodesDiscovery();\n }", "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\t new GetDataTask().execute();\n\t\t\t}", "@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }", "public void refreshDataPacket(Runnable runnable) {\n PacketWriterUtils.writeCallbackPacket(getFreshFullDataPacket(), buf -> {\n setFullDataPacket(buf);\n runnable.run();\n });\n }", "@Override\n protected void onStartLoading() {\n if (mCursor != null) {\n // Deliver any previously loaded data immediately.\n deliverResult(mCursor);\n }\n if (takeContentChanged() || mCursor == null) {\n // When the observer detects a change, it should call onContentChanged()\n // on the Loader, which will cause the next call to takeContentChanged()\n // to return true. If this is ever the case (or if the current data is\n // null), we force a new load.\n forceLoad();\n }\n }", "@Override\n public void onLoaderReset(Loader<Cursor> cursorLoader) {\n // Nothing to do here\n }", "@Override\r\n\tpublic void onLoaderReset(Loader<Cursor> mLoader) {\n\t\t\r\n\t}", "@Override\n public void onDrainComplete()\n {\n }", "void onLoaderLoading();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tresults.addAll(resultDataList);\n\t\t\t\tresultAdapter.notifyDataSetChanged();\n\t\t\t\tswingBottomInAnimationAdapter.notifyDataSetChanged();\n\t\t\t}", "@Override\r\n\tpublic void onLoadFinished(Loader<Cursor> mLoader, Cursor mCursor) {\n\t\t\r\n\t}", "@Override\n public void run() {\n ArticleHeaders.loadData(getApplicationContext());\n CustomerHeaders.loadData(getApplicationContext());\n OrderReasons.loadData(getApplicationContext());\n }", "@Override\n\t\tpublic void run() {\n\t\t\tforcastDao = new ForecastDAO();\n\t\t\tforecasts = forcastDao.loadAll(woeid);\n\t\t\tforcastDao = null;\n\t\t\tdaoCallHandler.sendMessage(daoCallHandler.obtainMessage());\n\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t// 获取当前要更新的数据\r\n\t\t\t\tList<Data> updateDataList = createUpdateData(currentPage,\r\n\t\t\t\t\t\tpageSize);\r\n\t\t\t\t// 需要更新的数据加入当前数据集合\r\n\t\t\t\tonLoadComplete.onLoadComplete(updateDataList);\r\n\r\n\t\t\t}", "@Override\n\tpublic void onReset() {\n\t\tonStopLoading();\n\n\t\t// At this point we can release the resources associated with 'mData'.\n\t\tif (mData != null) {\n\t\t\tonReleaseResources(mData);\n\t\t\tmData = null;\n\t\t}\n\t\t// The Loader is being reset so we need to unregister Observer\n\t\tunregisterObserver();\n\t}", "@Override\n\tpublic void onDataChanged()\n\t{\n\t\tfor (DataChangedCallbacks listener : this.dataChangedListeners)\n\t\t{\n\t\t\tlistener.onDataChanged();\n\t\t}\n\t}", "@Override\n public void onLoaderReset(Loader<ArrayList<Movie>> loader) {\n }", "@Override\r\n public void onLoaderReset(Loader<Cursor> loader) {\n\r\n }", "@Override\n public void run()\n {\n if(miningInfoLookup.isEmpty() || new Date().getTime() - (5 * 60 * 1000) > lastUpdate.getTime())\n {\n miningInfoLookup.clear();\n try\n {\n lastUpdate = new Date();\n for(String networkServerUrl : ObserverProperties.getNetworkServerUrls())\n {\n GetMiningInfoTask getMiningInfoTask = beanFactory.getBean(GetMiningInfoTask.class, networkServerUrl);\n taskExecutor.execute(getMiningInfoTask);\n }\n }\n catch(Exception e)\n {\n LOG.error(\"Failed receiving Network data.\");\n }\n }\n }", "public void lastReaderAdded(){\r\n\t\tdoneAddingReaders = true;\r\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tReadKnownDLLs();\n\t\t} catch (RegistryException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttablemodels.fireTableDataChanged();\n\t}", "@Override\n\tpublic void run() {\n\n\t\tURLConnection connection = null;\n\t\ttry {\n\t\t\tIterator<String> iterator = targetSensor.iterator();\n\t\t\tfor (int i = 0; i < targetSensor.size(); i++) {\n\t\t\t\tString sensorName = iterator.next();\n\n\t\t\t\tURL oracle = new URL(\"http://localhost:8081/fakeDataSource/sensors/\" + sensorName + \"/data\");\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(oracle.openStream()));\n\t\t\t\tString inputLine;\n\n\t\t\t\tString res = \"\";\n\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n//System.out.println(\"Received\" + inputLine);\n\t\t\t\t\tres += inputLine;\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Thread [%s] - Tracking sensor %s and received %s\\n\", this.getName(), sensorName, res);\n\n\t\t\t\tin.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void runOnAvailableCallback() {\n onAvailableCallback.run();\n }", "public interface DataLoaderListener {\n\n /**\n * Invoked when the AsyncTask has completed its execution.\n *\n * @param //results The resulting object from the AsyncTask.\n */\n void onDataLoaded(int requestId, Object data);\n}", "@Override\n\tpublic void onLoaderReset(Loader<List<NewsEntry>> arg0)\n\t{\n\t\t\n\t}", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n\n }", "public void run() {\n\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// initialize tooltip for a new folder\r\n\t\t\t\t_photoGalleryTooltip.reset(true);\r\n\r\n\t\t\t\tfinal double galleryPosition = getCachedGalleryPosition();\r\n\r\n\t\t\t\t_galleryMT20.setupItems(0, galleryPosition, _restoredSelection);\r\n\r\n\t\t\t\t_restoredSelection = null;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * update status info\r\n\t\t\t\t */\r\n\t\t\t\tfinal long timeDiff = System.currentTimeMillis() - _workerStart;\r\n\t\t\t\tfinal String timeDiffText = NLS.bind(\r\n\t\t\t\t\t\tMessages.Pic_Dir_Status_Loaded,\r\n\t\t\t\t\t\tnew Object[] { Long.toString(timeDiff), Integer.toString(_allPhotos.length) });\r\n\r\n\t\t\t\tsetStatusMessage(timeDiffText);\r\n\t\t\t}", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }", "@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n mAdapter.swapCursor(data);\n if(mPosition==RecyclerView.NO_POSITION){\n mPosition=0;\n }\n mRecyclerView.smoothScrollToPosition(mPosition);\n // Log.v(\"getcount\",String.valueOf(data.getCount()));\n if(data.getCount()!=0){\n showWeatherDataView();\n }\n\n }", "@Override // androidx.lifecycle.Observer\n public void onChanged(Runnable runnable) {\n Runnable runnable2 = runnable;\n if (runnable2 != null) {\n LoadingOverlay.DefaultImpls.showLoadingProblem$default(this.a.b, null, 1, null);\n this.a.b.setOnRefreshListener(new e(runnable2));\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tLogCollateWorker worker = new LogCollateWorker(logDAO);\r\n\t\tworker.mergeOneBatch();\r\n\t}", "@Override\n public void run() {\n synchronized (this) {\n status = Status.PLAYING;\n }\n //every iteration pulls a new frame from the media reader\n while (true) {\n try {\n synchronized (this) {\n checkForStatusChanges();\n }\n } catch (Exception ex) {\n logger.error(Thread.currentThread().getName() + \" exception while updating media reader\", ex);\n cleanup();\n return;\n }\n try {\n if (frameIterator != null) {\n dataReader.readData(frameIterator, frameStorage);\n }\n } catch (InterruptedException ex) {\n logger.debug(Thread.currentThread().getName() + \" processor interrupted while reading data\", ex);\n cleanup();\n return;\n } catch (Exception ex) {\n logger.error(Thread.currentThread().getName() + \" exception while reading data\", ex);\n }\n if (Thread.currentThread().isInterrupted()) {\n cleanup();\n return;\n }\n }\n }", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}", "@Override\n public void onLoaderReset(@NonNull Loader<Cursor> loader) {\n\n }", "public void notifyListeners() {\n Logger logger = LogX;\n logger.d(\"notifyListeners: \" + this.mListeners.size(), false);\n List<IWalletCardBaseInfo> tmpCardInfo = getCardInfo();\n Iterator<OnDataReadyListener> it = this.mListeners.iterator();\n while (it.hasNext()) {\n it.next().refreshData(tmpCardInfo);\n }\n }", "@Override\n public void run() {\n mPresenter.loadCameras();\n Log.d(\"Handlers\", \"Refresh lists\");\n // Repeat this the same runnable code block again another 2 seconds\n handler.postDelayed(runnableCode, 5000);\n }", "@Override\n\tpublic void load() {\n\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopLoad();\n\t\t\t}\n\t\t}, 2000);\n\t}", "@Override\n public void run() {\n refreshLayout.finishLoadMore(true);\n }", "private void onDataLoaded() {\n if (userLoc.getLoadingState() != LoadingState.DATA\n || randomNumberLoc1.getLoadingState() != LoadingState.DATA\n || randomNumberLoc2.getLoadingState() != LoadingState.DATA) {\n return;\n }\n\n // Let's pretend that adapting is expensive and takes a while\n try {\n Thread.sleep(ADAPT_DELAY_MS);\n } catch (InterruptedException e) {\n // can't catch a break!\n }\n\n UserService.User user = userLoc.getUser();\n assert user != null; // based on LoadingState check\n DateFormat dateTimeInstance =\n SimpleDateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);\n\n loadingState = LoadingState.DATA;\n text1 = user.getId() + \": \" + user.getName() + \" (\" + randomNumberLoc1.getRandomNumber() + \")\";\n text2 = dateTimeInstance.format(user.getLastUpdate()) + \" (\" + randomNumberLoc2.getRandomNumber() + \")\";\n notifyPropertyChanged(BR.loadingState);\n notifyPropertyChanged(BR.text1);\n notifyPropertyChanged(BR.text2);\n }", "@Override\n\tpublic void onStopLoading() {\n\t\tcancelLoad();\n\t\t// It's important that the Observers are active because in this state\n\t\t// the monitoring for changes is still active but it won't notify \n\t\t// changes until in the started state again \n\t}", "public void run() {\n\t\tthis.checkConnectedList();\n\t}", "@Override\n public void onRefresh() {\n new LoadScholsTask(this).execute();\n }", "public void run(){\n\t\tFileFeeder fileFeeder = new FileFeeder(mySQLConnection,logWindow, fileIssueList, true);\n\t\tThread feederThread = new Thread(fileFeeder);\n\t\tfeederThread.start();\n\t\twhile (moreFilesComing || !fileList.isEmpty()){ //if more data still to process or more data coming\n\t\t\tDataFile dataFile;\n\t\t\tif ((dataFile = fileList.poll()) != null){ //something to actually write\n\t\t\t\tsynchronized(fileList){\n\t\t\t\t\tfileList.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlogWindow.println(\"Processing data from file: \"+dataFile.fileName+\"...\");\n\t\t\t\t\n\t\t\t\tBufferedReader inputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputStream = new BufferedReader(new FileReader(dataFile.file));\n\t\n\t\t\t\t\tString fileDateFormat = getFileInfo(dataFile,inputStream);\n\t\t\t\t\t\n\t\t\t\t\tif (dataFile.frequency!=0 && !dataFile.meterSerial.equals(\"\")){ //if got valid info\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tString fileExistsSQL = \"SELECT * FROM files WHERE site_id = \"+dataFile.siteID+\" AND source_id = \"+dataFile.sourceID+\" AND file_name = '\"+dataFile.fileName+\"' AND meter_sn = '\"+dataFile.meterSerial+\"' AND frequency = \"+dataFile.frequency;\n\t\t\t\t\t\t\tResultSet fileExistsQuery = dbConn.createStatement().executeQuery(fileExistsSQL);\n\t\t\t\t\t\t\tif (fileExistsQuery.next()==false){ //if no files with same site,source,filename,meterserial and frequency exist\n\n\t\t\t\t\t\t\t\tgetValidData(dataFile,fileDateFormat,inputStream);\n\n\t\t\t\t\t\t\t\tif (dataFile.dataList.size()>0){\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Processing of data complete.\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t/*try{\n\t\t\t\t\t\t\t\t\t\tString fetchRangeLimitsSQL = \"SELECT min,max FROM ranges WHERE source_id = \"+dataFile.sourceID+\" AND site_id = \"+dataFile.siteID;\n\t\t\t\t\t\t\t\t\t\tResultSet fetchRangeLimitsRS = dbConn.createStatement().executeQuery(fetchRangeLimitsSQL);\n\n\t\t\t\t\t\t\t\t\t\tif (fetchRangeLimitsRS.next()){\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = fetchRangeLimitsRS.getDouble(\"min\");\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = fetchRangeLimitsRS.getDouble(\"max\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"No range limits found for \"+dataFile.sourceID+\" or site \"+dataFile.siteID+\". Adding defaults now...\");\t\n\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMin = Source.getRangeMin(dataFile.sourceType,dataFile.measurementType);\n\t\t\t\t\t\t\t\t\t\t\tdataFile.rangeMax = Source.getRangeMax(dataFile.sourceType,dataFile.measurementType,dataFile.frequency);\n\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\tString setRangeLimitsSQL = \"INSERT INTO ranges (site_id,source_id,min,max) VALUES(\"+dataFile.siteID+\",\"+dataFile.sourceID+\",\"+dataFile.rangeMin+\",\"+dataFile.rangeMax+\")\";\n\t\t\t\t\t\t\t\t\t\t\t\tdbConn.createStatement().executeUpdate(setRangeLimitsSQL);\n\t\t\t\t\t\t\t\t\t\t\t}catch(SQLException sE){ //NON FATAL\n\t\t\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\tlogWindow.println(\"Warning: could not write range limits to database for file \"+dataFile.fileName+\".\");\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\t\t\t\t\tdateFormatter.setTimeZone(TimeZone.getTimeZone(\"GMT+10\"));\n\t\t\t\t\t\t\t\t\t\tdataFile.startDate = dateFormatter.format(dataFile.dataList.get(0).dateTime);\n\t\t\t\t\t\t\t\t\t\tdataFile.endDate = dateFormatter.format(dataFile.dataList.get(dataFile.dataList.size()-1).dateTime);*/\n\n\t\t\t\t\t\t\t\t\t\tfileFeeder.addFile(dataFile); //Send file to feeder\n\n\t\t\t\t\t\t\t\t\t/*} catch (SQLException sE){\n\t\t\t\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". No Data found in file.\");\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". This file already exists for source \"+dataFile.sourceID+\" at site \"+dataFile.siteID+\".\");\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch(SQLException sE){\n\t\t\t\t\t\t\t//TODO need error here\n\t\t\t\t\t\t\tsE.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tlogWindow.println(dataFile.frequency+\" \"+dataFile.meterSerial);\n\t\t\t\t\t\tlogWindow.println(\"Ignored file \"+dataFile.fileName+\". Could not determine essential file information.\");\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t} catch (IOException err){\n\t\t\t\t\tdataFile.dataList.clear();\n\t\t\t\t\tlogWindow.println(\"Unable to read from file: \"+dataFile.fileName+\"\\r\\nNo data will be written from this file.\");\n\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\n\t\t\t\t} finally {\n\t\t\t\t\tif (inputStream != null){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinputStream.close();\n\t\t\t\t\t\t} catch (IOException err) {\n\t\t\t\t\t\t\tSystem.err.println(\"IOException: \"+err.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tsynchronized(fileList){ //waiter\n\t\t\t\t\twhile (moreFilesComing && fileList.isEmpty()){\n\t\t\t\t\t\tfileList.notify(); //notify adder just in case things got stuck\n\t\t\t\t\t\tfileList.wait(); //wait for a file to be added to file List.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsynchronized(fileFeeder.fileList){\n\t\t\tfileFeeder.moreFilesComing = false;\n\t\t\tfileFeeder.fileList.notify();\n\t\t}\n\t\ttry {\n\t\t\tfeederThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Date endTime = new Date();\n\t\t//logWindow.println(\"Finished sending file(s) to writer for source: \"+sourceID);\n\t\t//logWindow.println(\"Time taken: \"+getTimeString(endTime.getTime()-startTime.getTime()));\n\t}", "@Override\n public void deliverResult(LogbookEntry data) {\n if (isReset()) {\n // The Loader has been reset; ignore the result and invalidate the data.\n releaseResources(data);\n return;\n }\n\n // Hold a reference to the old data so it doesn't get garbage collected.\n // We must protect it until the new data has been delivered.\n LogbookEntry oldData = mData;\n mData = data;\n\n if (isStarted()) {\n // If the Loader is in a started state, deliver the results to the\n // client. The superclass method does this for us.\n super.deliverResult(data);\n }\n\n // Invalidate the old data as we don't need it any more.\n if (oldData != null && oldData != data) {\n releaseResources(oldData);\n }\n }", "void onLocationChanged()\n\t{\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmAdapter.notifyDataSetChanged(mDataArrays);\n\t\t\t\t\tmListView.setSelection(mListView.getCount() - 1);\n\t\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (OnlineObjectsContainer.this.onlineObjects) {\n\t\t\t\t\tIterator<OnlineObject> iterator = OnlineObjectsContainer.this.recentlyAddedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\titerator = OnlineObjectsContainer.this.recentlyRemovedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void startListener() {\r\n initializationMapOfLastDistance();\r\n runnable = new Runnable() {\r\n public void run() {\r\n doInBackgroundHandler();\r\n handler.postDelayed(this, 9000);\r\n }\r\n };\r\n handler.post(runnable);\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataProgress(Object result) {\n\n\t\t\t\t\t\t\t}", "@Override\n public void run() {\n postGetRoom();\n updateLocsHandler.postDelayed(mStatusChecker, updateLocsInterval);\n }", "@Override\n protected void onStartLoading() {\n if (mData != null) {\n // If we currently have a result available, deliver it\n // immediately.\n deliverResult(mData);\n }\n registerObserver();\n if (takeContentChanged() || mData == null || isConfigChanged()) {\n // If the data has changed since the last time it was loaded\n // or is not currently available, start a load.\n forceLoad();\n }\n }", "@Override\n\t\tpublic void run() {\n if (mRemovedListener != null) {\n // Timed out waiting for device UUID that indicates device removal happened.\n mRemovedListener.onDeviceRemoved(mRemovedDeviceId, false);\n mRemovedListener = null;\n mRemovedUuidHash = 0;\n mRemovedDeviceId = 0;\n mService.setDeviceDiscoveryFilterEnabled(false);\n }\n\t\t}", "@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }", "@Override\n public void run() {\n handler.postDelayed(runnableCode, apiCallFrequency);\n\n //Initiates reload of forceLoad() in TickerLoader\n reload();\n }", "@Override\n\t\tpublic void run() {\n\t\t\tbm = getBitmap(url);\n\t\t\tdownLoaderListenner.onDownLoadSuccess(bm,url);\n\t\t}", "public void onDataAvailable(List<Hero> data, DownloadStatus status) {\n Log.d(TAG, \"onDataAvailable: starts...\");\n\n if (status == DownloadStatus.OK) {\n heroAdapter.loadNewData(data);\n } else {\n //download or processing failed\n Log.e(TAG, \"onDownloadComplete failed with status \" + status);\n }\n\n Log.d(TAG, \"onDataAvailable: ends...\");\n\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tViewData.refreshSongListViewFromData(MainActivity.this, getSongListTask.list, songlistview, radiogroup);\r\n\t\t\t\t\t}", "@Override\n public void onLoadFinished(Loader<List<VehiclesTotalRunningCosts>> loader, List<VehiclesTotalRunningCosts> data) {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n\n if (data == null || data.size() == 0) {\n showEmptyView();\n } else {\n showDashboardListView();\n }\n /* Update the adapters data with the new one */\n invalidateData();\n mDashboardListAdapter.setDashboardData(data);\n\n if (mRecyclerState != null) {\n mDashboardList.getLayoutManager().onRestoreInstanceState(mRecyclerState);\n mRecyclerState = null;\n }\n }", "@Override\n public void run() {\n int queueSize = dataQueue.size();\n List<IData> allDataList = new ArrayList<>(queueSize);\n dataQueue.drainTo(allDataList, queueSize);\n\n // each data list\n List<MarketData> marketDatas = new ArrayList<>(queueSize);\n List<Order> orders = new ArrayList<>();\n List<Position> positions = new ArrayList<>();\n List<IndicatorInformation> indicatorInformations = new ArrayList<>();\n List<ModelInformation> modelInformations = new ArrayList<>();\n List<PLInformation> plInformations = new ArrayList<>();\n List<OptimizedExecution> executionInformations = new ArrayList<>();\n List<SystemInformation> systemInformations = new ArrayList<>();\n List<TimerInformation> timerInformations = new ArrayList<>();\n\n try {\n // Create List\n for (IData data : allDataList) {\n if (data instanceof MarketData) {\n marketDatas.add((MarketData) data);\n\n } else if (data instanceof Order) {\n orders.add((Order) data);\n\n } else if (data instanceof Position) {\n positions.add((Position) data);\n\n } else if (data instanceof IndicatorInformation) {\n indicatorInformations.add((IndicatorInformation) data);\n\n } else if (data instanceof ModelInformation) {\n modelInformations.add((ModelInformation) data);\n\n } else if (data instanceof PLInformation) {\n plInformations.add((PLInformation) data);\n\n } else if (data instanceof OptimizedExecution) {\n executionInformations.add((OptimizedExecution) data);\n\n } else if (data instanceof SystemInformation) {\n systemInformations.add((SystemInformation) data);\n\n } else if (data instanceof TimerInformation) {\n timerInformations.add((TimerInformation) data);\n\n } else {\n throw new UnExpectedDataException(data.getClass());\n }\n }\n\n // insert\n if (!marketDatas.isEmpty()) {\n // logger.debug(\"Insert List : MarketData - size = \" + marketDatas.size());\n eventDao.insert(MarketData.class, marketDatas);\n }\n if (!orders.isEmpty()) {\n // logger.debug(\"Insert List : Order - size = \" + orders.size());\n eventDao.insert(Order.class, orders);\n }\n if (!positions.isEmpty()) {\n // logger.debug(\"Insert List : Position - size = \" + positions.size());\n eventDao.insert(Position.class, positions);\n }\n if (!indicatorInformations.isEmpty()) {\n // logger.debug(\"Insert List : IndicatorInformation - size = \" + indicatorInformations.size());\n eventDao.insert(IndicatorInformation.class, indicatorInformations);\n }\n if (!modelInformations.isEmpty()) {\n // logger.debug(\"Insert List : ModelInformation - size = \" + modelInformations.size());\n eventDao.insert(ModelInformation.class, modelInformations);\n }\n if (!plInformations.isEmpty()) {\n // logger.debug(\"Insert List : PLInformation - size = \" + plInformations.size());\n eventDao.insert(PLInformation.class, plInformations);\n }\n if (!executionInformations.isEmpty()) {\n // logger.debug(\"Insert List : OptimizedExecution - size = \" + executionInformations.size());\n eventDao.insert(OptimizedExecution.class, executionInformations);\n }\n if (!systemInformations.isEmpty()) {\n // logger.debug(\"Insert List : SystemInformation - size = \" + systemInformations.size());\n eventDao.insert(SystemInformation.class, systemInformations);\n }\n if (!timerInformations.isEmpty()) {\n // logger.debug(\"Insert List : TimerInformation - size = \" + timerInformations.size());\n eventDao.insert(TimerInformation.class, timerInformations);\n }\n\n } catch (Exception e) {\n logger.error(\"Error in inserting data.\", e);\n }\n }", "@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\t\t\t\tfilmListDatas.add(\"1\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfilmListAdapter.notifyDataSetChanged();\n\t\t\t\t\t\tif (filmListDatas.size() > 30) {\n\t\t\t\t\t\t\trecyclerView.onLoadSucess(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trecyclerView.onLoadSucess(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void deliverResult(Cursor cursor) {\n if (isReset()) {\n // The Loader has been reset; ignore the result and invalidate the data.\n if (cursor!=null) {\n ReleaseResources(cursor);\n }\n return;\n }\n // Hold a reference to the old data so it doesn't get garbage collected.\n // We must protect it until the new data has been delivered.\n Cursor oldCursor = mCursor;\n mCursor = cursor;\n Log.v(LOG_TAG, \"deliverResult cursor: \" + String.valueOf(mCursor.getCount()));\n if (isStarted()) {\n // If the Loader is in a started state, deliver the results to the\n // client. The superclass method does this for us.\n super.deliverResult(cursor);\n }\n // Invalidate the old data as we don't need it any more\n if (oldCursor!=null && oldCursor!=cursor) {\n ReleaseResources(oldCursor);\n }\n }", "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "public void onDrainComplete();", "public void run() {\n\t\t\twhile(true){\n\t\t\t\t//recieve new state\n\t \t \t\t//StoryFactory.getInstance().setAllLogs((ArrayList<ArrayList<UserStory>>) inputFromServer.readObject());\n\t\t\t}\t\t \n\t\t}", "@Override\n protected void onReset() {\n onStopLoading();\n\n // At this point we can release resources\n if( mData != null ) {\n releaseResources( mData );\n mData = null;\n }\n\n // The loader is being reset, so we should stop monitoring for changes\n if( mObserver != null ) {\n resolver.unregisterContentObserver( mObserver );\n mObserver = null;\n }\n }", "@Override\n\tpublic void onLoaderReset(Loader<ContentResponse> loader) {\n\t\t\n\t}", "@Override\n\tpublic void onLoaderReset(Loader<ContentResponse> loader) {\n\t\t\n\t}", "public void postOpenInit() {\n logger = Logger.getLogger(Dataset.class);\n clear();\n for (DataPoint point : persistentData) {\n addPoint(point);\n }\n }", "@Override\n public void onLoadFinished(Loader<ArrayList<NewsItem>> loader, ArrayList<NewsItem> newsItems) {\n // Hide loading indicator because the data has been loaded\n View loadingIndicator = findViewById(R.id.loading_indicator);\n loadingIndicator.setVisibility(View.GONE);\n\n // Set empty state text to display \"No news items found.\"\n emptyStateTextView.setText(R.string.no_news_items);\n\n // If there is a valid list of newsItems, then we would add them to the\n // adapter's data set. This will trigger the ListView to update.\n if (newsItems != null && !newsItems.isEmpty()) {\n newsAdapter.addAll(newsItems);\n }\n }", "@Override\n public void run() {\n mProxyPrefs = new Preferences.ProxyPrefs(false, false, null, -1, null);\n mListFragment.loadNew(loaderState, mProxyPrefs.parcelableProxy);\n }" ]
[ "0.6122929", "0.61196387", "0.60814995", "0.605103", "0.60365516", "0.59219754", "0.59200495", "0.59115845", "0.5903179", "0.5878745", "0.5877893", "0.5856911", "0.5855808", "0.58169657", "0.58069026", "0.57712", "0.57455295", "0.57448393", "0.57396644", "0.57262546", "0.5688625", "0.56776744", "0.56719935", "0.5671312", "0.56528425", "0.5652592", "0.5648582", "0.56480926", "0.5642858", "0.5642741", "0.5635804", "0.56291044", "0.5627871", "0.562536", "0.56131685", "0.55694807", "0.55673224", "0.5559366", "0.55578864", "0.55535823", "0.5551248", "0.55482984", "0.5536967", "0.5536663", "0.553433", "0.5530634", "0.5527699", "0.55244696", "0.55183065", "0.5509216", "0.5508941", "0.55059403", "0.55013674", "0.5500236", "0.5498895", "0.5498895", "0.5494604", "0.54626787", "0.54532564", "0.54521406", "0.5446174", "0.544509", "0.54436153", "0.54407644", "0.5430921", "0.5423658", "0.54219806", "0.54210633", "0.54092896", "0.5404126", "0.5403087", "0.5385464", "0.5384566", "0.5382419", "0.5365195", "0.5364549", "0.5363252", "0.5362", "0.5349914", "0.5349809", "0.53494316", "0.5346602", "0.53423643", "0.53385663", "0.53362566", "0.5335069", "0.5334578", "0.53340834", "0.5331189", "0.53304154", "0.5329927", "0.5324716", "0.5324027", "0.5316806", "0.53150123", "0.5309924", "0.5309924", "0.530974", "0.53092366", "0.5309002" ]
0.600437
5
TODO: Check for existing method
static private int makeInt(int b3, int b2, int b1, int b0) { return (((b3 ) << 24) | ((b2 & 0xff) << 16) | ((b1 & 0xff) << 8) | ((b0 & 0xff) )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "protected abstract Set method_1559();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@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 int method() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "public void identify() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void apply() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void method_201() {}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "public void method_191() {}", "@Override\n\tprotected void logic() {\n\n\t}", "private void strin() {\n\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void jugar() {}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\npublic void processAttributes() {\n\t\n}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void memoria() {\n \n }", "protected Collection method_1554() {\n return this.method_1559();\n }", "@Override\n protected void initialize() \n {\n \n }", "private void poetries() {\n\n\t}", "public void method_206() {}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\r\npublic int method() {\n\treturn 0;\r\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 gored() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo21877s() {\n }", "void unableToListContents();", "@Override\n public int retroceder() {\n return 0;\n }" ]
[ "0.60573375", "0.58298427", "0.5813259", "0.5796844", "0.57585406", "0.5736371", "0.5736371", "0.5732778", "0.572475", "0.5722406", "0.5691224", "0.5688619", "0.56538856", "0.55916953", "0.55868167", "0.55677867", "0.5565157", "0.5539215", "0.5534101", "0.5521264", "0.54926914", "0.54859173", "0.5452072", "0.5451516", "0.54490644", "0.54385996", "0.54384923", "0.54384923", "0.5427611", "0.54216355", "0.5415708", "0.54105365", "0.54012305", "0.5395487", "0.53656167", "0.53568697", "0.53568697", "0.53568697", "0.53568697", "0.53568697", "0.53568697", "0.5336338", "0.53341573", "0.53341573", "0.5327118", "0.5307594", "0.5306694", "0.5304003", "0.5296941", "0.52963126", "0.52900845", "0.5288531", "0.5288531", "0.5286596", "0.5283623", "0.5262634", "0.5251037", "0.523919", "0.52350646", "0.52278924", "0.5222297", "0.52211905", "0.5218983", "0.5213995", "0.52107614", "0.52103555", "0.52006024", "0.5200539", "0.5198962", "0.5194143", "0.519174", "0.51834047", "0.51815397", "0.5175172", "0.5170004", "0.516789", "0.5164953", "0.5164825", "0.5164254", "0.51545113", "0.5151207", "0.51511955", "0.5150351", "0.5146192", "0.5143988", "0.5135409", "0.5130339", "0.51287735", "0.51287735", "0.51287735", "0.51287735", "0.51287735", "0.51287735", "0.51287735", "0.5125299", "0.5125205", "0.5125205", "0.5120195", "0.5116778", "0.5108598", "0.51085395" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. //GENBEGIN:initComponents
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jLabel3 = new javax.swing.JLabel(); jScrollPane3 = new javax.swing.JScrollPane(); jList3 = new javax.swing.JList(); jLabel4 = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jLabel8 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jScrollPane5 = new javax.swing.JScrollPane(); jList4 = new javax.swing.JList(); jLabel9 = new javax.swing.JLabel(); jScrollPane6 = new javax.swing.JScrollPane(); jList5 = new javax.swing.JList(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jScrollPane7 = new javax.swing.JScrollPane(); jList6 = new javax.swing.JList(); jList1.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane1.setViewportView(jList1); org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel1.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel2.text")); // NOI18N jList2.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane2.setViewportView(jList2); org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel3.text")); // NOI18N jList3.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane3.setViewportView(jList3); org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel4.text")); // NOI18N jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane4.setViewportView(jTextArea1); org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel5.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel6.text")); // NOI18N jTextField1.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField1.text")); // NOI18N jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel7.text")); // NOI18N jTextField2.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField2.text")); // NOI18N jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jButton1.text")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel8.text")); // NOI18N jTextField3.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jTextField3.text")); // NOI18N jList4.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane5.setViewportView(jList4); org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel9.text")); // NOI18N jList5.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane6.setViewportView(jList5); org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel10.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel11, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, "QueryTopComponent.jLabel11.text")); // NOI18N jList6.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane7.setViewportView(jList6); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(46, 46, 46) .addComponent(jButton1) .addGap(484, 484, 484)) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane7) .addComponent(jScrollPane6) .addComponent(jScrollPane1) .addComponent(jScrollPane5) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11) .addComponent(jLabel10) .addComponent(jLabel9) .addComponent(jLabel1)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(449, 449, 449) .addComponent(jLabel6) .addGap(461, 461, 461)) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2) .addComponent(jScrollPane3) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jLabel2)) .addGap(0, 0, Short.MAX_VALUE)))) ); layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jScrollPane4, jTextField1, jTextField2, jTextField3}); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35) .addComponent(jLabel6))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(97, 97, 97) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(64, 64, 64) .addComponent(jButton1)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)))) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(80, 80, 80) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(17, 17, 17)) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public form() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public FormPemilihan() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\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 FormCompra() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "@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}", "@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 }", "public FormListRemarking() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\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 SettingsForm() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSeparator1 = new javax.swing.JSeparator();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jPasswordField1 = new javax.swing.JPasswordField();\n jPasswordField2 = new javax.swing.JPasswordField();\n jButton4 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Settings\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jSeparator1.setForeground(new java.awt.Color(102, 0, 153));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Tux TV 1280-1024.jpg\"))); // NOI18N\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton2.setForeground(new java.awt.Color(51, 51, 255));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Blue-young-icon.png\"))); // NOI18N\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel3.setForeground(new java.awt.Color(51, 51, 255));\n jLabel3.setText(\"<html>Logged In <font color=green>●\");\n\n jLabel2.setBackground(new java.awt.Color(204, 204, 255));\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 18));\n jLabel2.setOpaque(true);\n\n jButton1.setBackground(new java.awt.Color(255, 153, 153));\n jButton1.setFont(new java.awt.Font(\"Arial\", 1, 14));\n jButton1.setForeground(new java.awt.Color(255, 0, 0));\n jButton1.setText(\"Log Out\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel5.setForeground(new java.awt.Color(153, 0, 153));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"<html><u>Home\");\n jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel5MouseClicked(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel7.setForeground(new java.awt.Color(153, 0, 153));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"<html><u>Friends\");\n jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel7MouseClicked(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel8.setForeground(new java.awt.Color(153, 0, 153));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"<html><u>Messages\");\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel9.setForeground(new java.awt.Color(153, 0, 153));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"<html><u>Notifications\");\n jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel9MouseClicked(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel10.setForeground(new java.awt.Color(153, 0, 153));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"<html><u>Profile\");\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel6.setForeground(new java.awt.Color(0, 0, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"<html><u>Settings\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel14.setText(\"E-Mail:\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel15.setText(\"Phone Number:\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel12.setText(\"Name:\");\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel13.setText(\"UserName:\");\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField3.setForeground(new java.awt.Color(102, 0, 102));\n jTextField3.setEnabled(false);\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField2.setForeground(new java.awt.Color(102, 0, 102));\n jTextField2.setEnabled(false);\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField4.setForeground(new java.awt.Color(102, 0, 102));\n jTextField4.setEnabled(false);\n\n jTextField5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField5.setForeground(new java.awt.Color(102, 0, 102));\n jTextField5.setEnabled(false);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel27.setForeground(new java.awt.Color(0, 0, 255));\n jLabel27.setText(\"<html><u>Edit\");\n jLabel27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel27MouseClicked(evt);\n }\n });\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel26.setForeground(new java.awt.Color(0, 0, 255));\n jLabel26.setText(\"<html><u>Edit\");\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel26MouseClicked(evt);\n }\n });\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel25.setForeground(new java.awt.Color(0, 0, 255));\n jLabel25.setText(\"<html><u>Edit\");\n jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel25MouseClicked(evt);\n }\n });\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel24.setForeground(new java.awt.Color(0, 0, 255));\n jLabel24.setText(\"<html><u>Edit\");\n jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel24MouseClicked(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 153, 51));\n jButton3.setText(\"Update Info\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(jSeparator1.getForeground());\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel16.setText(\"Old Password:\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel17.setText(\"New Password:\");\n\n jTextField7.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField7.setForeground(new java.awt.Color(102, 0, 102));\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel18.setText(\"ReType New Password:\");\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/3.png\"))); // NOI18N\n jButton4.setText(\"Change\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel11.setForeground(new java.awt.Color(0, 0, 255));\n jLabel11.setText(\"<html><u>Wanna See Your Security Code?\");\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton5.setForeground(new java.awt.Color(255, 51, 51));\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagesFCG7ZZJL.jpg\"))); // NOI18N\n jButton5.setText(\"Delete My Account\");\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addComponent(jLabel19)\n .addGap(40, 40, 40)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField3)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField5)\n .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addComponent(jLabel26)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton5))\n .addComponent(jLabel24))\n .addGap(2, 2, 2))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPasswordField2)\n .addComponent(jPasswordField1)\n .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel20)\n .addGap(73, 73, 73))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21)\n .addGap(21, 21, 21))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(199, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(162, 162, 162))\n .addGroup(layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(261, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 5, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26)\n .addComponent(jLabel14))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel27)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel21)))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public quanlixe_form() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public Magasin() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public soal2GUI() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\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 muveletek() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public ValidFrequencyForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField16 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n jLabel18 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Personal Profile\");\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel1.setText(\"Personal Information\");\n\n jLabel2.setText(\"Name\");\n\n jLabel3.setText(\"Address\");\n\n jLabel4.setText(\"Date of Birth\");\n jLabel4.setToolTipText(\"\");\n\n jLabel5.setText(\"Contact\");\n\n jLabel6.setText(\"Fax Number\");\n\n jLabel7.setText(\"Email\");\n\n jLabel8.setText(\"SSN\");\n\n jLabel9.setText(\"Medical Record No\");\n\n jLabel10.setText(\"Health Plan No\");\n\n jLabel11.setText(\"Bank Acc No\");\n\n jLabel12.setText(\"License No\");\n\n jLabel13.setText(\"Vehicle Identifiers\");\n\n jLabel14.setText(\"Device Identifiers\");\n jLabel14.setToolTipText(\"\");\n\n jLabel15.setText(\"LinkedIn\");\n\n jLabel16.setText(\"IP Address\");\n\n jLabel17.setText(\"Identifier\");\n\n jButton2.setText(\"Submit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setBounds(new java.awt.Rectangle(0, 0, 240, 120));\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton1.setText(\"Clear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel18.setText(\"Image\");\n\n jButton3.setText(\"Upload\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT))));\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-###-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-##-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel22.setText(\"Biometrics\");\n\n jButton4.setText(\"Upload\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###.###\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\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 .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22))\n .addComponent(jLabel18)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jTextField2)\n .addComponent(jFormattedTextField1)\n .addComponent(jFormattedTextField2)\n .addComponent(jTextField5)\n .addComponent(jTextField6)\n .addComponent(jFormattedTextField3)\n .addComponent(jTextField8)\n .addComponent(jTextField9)\n .addComponent(jTextField10)\n .addComponent(jTextField11)\n .addComponent(jTextField12)\n .addComponent(jTextField13)\n .addComponent(jTextField14)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)\n .addComponent(jTextField16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(24, 24, 24))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(146, 146, 146)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jLabel1)))\n .addContainerGap(566, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jScrollPane1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jButton3)\n .addComponent(jLabel20))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jButton4)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }", "public HW3() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 PatientRegForm() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n formKeyReleased(evt);\n }\n });\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }", "public p0() {\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 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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public EnterDetailsGUI() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\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, 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\n pack();\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jTextField2 = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jTextField4 = new javax.swing.JTextField();\r\n jTextField5 = new javax.swing.JTextField();\r\n jTextField6 = new javax.swing.JTextField();\r\n jTextField7 = new javax.swing.JTextField();\r\n jTextField8 = new javax.swing.JTextField();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n lbhora = new javax.swing.JLabel();\r\n jButton5 = new javax.swing.JButton();\r\n jLabel8 = new javax.swing.JLabel();\r\n jButton6 = new javax.swing.JButton();\r\n jLabel9 = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem4 = new javax.swing.JMenuItem();\r\n jMenuItem5 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenuItem9 = new javax.swing.JMenuItem();\r\n jMenuItem10 = new javax.swing.JMenuItem();\r\n jMenuItem11 = new javax.swing.JMenuItem();\r\n jMenuItem13 = new javax.swing.JMenuItem();\r\n jMenuItem14 = new javax.swing.JMenuItem();\r\n jMenu3 = new javax.swing.JMenu();\r\n jMenuItem15 = new javax.swing.JMenuItem();\r\n jMenuItem16 = new javax.swing.JMenuItem();\r\n jMenuItem17 = new javax.swing.JMenuItem();\r\n jMenu4 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 12, 490, 30));\r\n\r\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/search-icon-60x60.png\"))); // NOI18N\r\n jButton1.setBorderPainted(false);\r\n jButton1.setContentAreaFilled(false);\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 0, -1, -1));\r\n\r\n jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField2ActionPerformed(evt);\r\n }\r\n });\r\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField2KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 80, 340, 30));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel1.setText(\"NOMBRE\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 90, 72, -1));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel2.setText(\"DOMICILIO\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 150, 70, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel3.setText(\"CIUDAD\");\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 290, 60, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel4.setText(\"TELEFONO\");\r\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 240, 70, -1));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel5.setText(\"C.P.\");\r\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, -1, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel6.setText(\"R.F.C.\");\r\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 190, -1, -1));\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel7.setText(\"E-MAIL\");\r\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 410, 50, -1));\r\n\r\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField3ActionPerformed(evt);\r\n }\r\n });\r\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField3KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 130, 510, 30));\r\n\r\n jTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField4ActionPerformed(evt);\r\n }\r\n });\r\n jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField4KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 250, 30));\r\n\r\n jTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField5ActionPerformed(evt);\r\n }\r\n });\r\n jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField5KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 340, 250, 30));\r\n\r\n jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 400, 250, 30));\r\n\r\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField7ActionPerformed(evt);\r\n }\r\n });\r\n jTextField7.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField7KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 180, 250, 30));\r\n\r\n jTextField8.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField8ActionPerformed(evt);\r\n }\r\n });\r\n jTextField8.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField8KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, 250, 30));\r\n\r\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/add-icon.png\"))); // NOI18N\r\n jButton2.setBorderPainted(false);\r\n jButton2.setContentAreaFilled(false);\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 540, 70, 80));\r\n\r\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/edit_60_328965.png\"))); // NOI18N\r\n jButton3.setBorderPainted(false);\r\n jButton3.setContentAreaFilled(false);\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 550, 80, 70));\r\n\r\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_action_discard.png\"))); // NOI18N\r\n jButton4.setBorderPainted(false);\r\n jButton4.setContentAreaFilled(false);\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 550, 70, 70));\r\n\r\n lbhora.setFont(new java.awt.Font(\"SansSerif\", 1, 24)); // NOI18N\r\n lbhora.setForeground(new java.awt.Color(240, 240, 240));\r\n lbhora.setText(\"00:00:00\");\r\n getContentPane().add(lbhora, new org.netbeans.lib.awtextra.AbsoluteConstraints(1180, 10, -1, 44));\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/logout.png\"))); // NOI18N\r\n jButton5.setBorder(null);\r\n jButton5.setBorderPainted(false);\r\n jButton5.setContentAreaFilled(false);\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1280, 10, -1, -1));\r\n\r\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/giphy.gif\"))); // NOI18N\r\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 90, -1, -1));\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/CLEAN-AIR-ICON2.png\"))); // NOI18N\r\n jButton6.setBorderPainted(false);\r\n jButton6.setContentAreaFilled(false);\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 550, -1, -1));\r\n\r\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo gris.jpg\"))); // NOI18N\r\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1350, 760));\r\n\r\n jMenuBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PLANTAS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12))); // NOI18N\r\n\r\n jMenu1.setText(\"CAPTURA DE DATOS\");\r\n jMenu1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem4.setText(\"CLIENTES\");\r\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem4ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem4);\r\n\r\n jMenuItem5.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem5.setText(\"USUARIOS\");\r\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem5ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem5);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"PRODUCTOS\");\r\n jMenu2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem9.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem9.setText(\"COMPONENTES\");\r\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem9ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem9);\r\n\r\n jMenuItem10.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem10.setText(\"MATERIALES\");\r\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem10ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem10);\r\n\r\n jMenuItem11.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem11.setText(\"FORMULA\");\r\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem11ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem11);\r\n\r\n jMenuItem13.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem13.setText(\"PROCESO\");\r\n jMenuItem13.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem13ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem13);\r\n\r\n jMenuItem14.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem14.setText(\"OPB\");\r\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem14ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem14);\r\n\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"PRODUCCION\");\r\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem15.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem15.setText(\"ORDENES\");\r\n jMenuItem15.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem15ActionPerformed(evt);\r\n }\r\n });\r\n jMenu3.add(jMenuItem15);\r\n\r\n jMenuItem16.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem16.setText(\"OPERACION\");\r\n jMenu3.add(jMenuItem16);\r\n\r\n jMenuItem17.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem17.setText(\"DATOS DESPUES DE LA OPERACION\");\r\n jMenu3.add(jMenuItem17);\r\n\r\n jMenuBar1.add(jMenu3);\r\n\r\n jMenu4.setText(\"REPORTES\");\r\n jMenu4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuBar1.add(jMenu4);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n pack();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n addSponsorLogoLabel = new javax.swing.JLabel();\n addSponsorLabel = new javax.swing.JLabel();\n addSponsorNameInput = new javax.swing.JTextField();\n addSponsorNameLabel = new javax.swing.JLabel();\n addSponsorFnameInput = new javax.swing.JTextField();\n addSponsorFnameLabel = new javax.swing.JLabel();\n addSponsorLnameInput = new javax.swing.JTextField();\n addSponsorLnameLabel = new javax.swing.JLabel();\n addSponsorPhoneInput = new javax.swing.JTextField();\n addSponsorPhoneLabel = new javax.swing.JLabel();\n addSponsorPledgeInput = new javax.swing.JTextField();\n addSponsorPledgeLabel = new javax.swing.JLabel();\n addSponsorBackButton = new javax.swing.JButton();\n addSponsorSubmitButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n addSponsorLogoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/eventplanner/horizonlogoTiny.png\"))); // NOI18N\n\n addSponsorLabel.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n addSponsorLabel.setText(\"Add Sponsor\");\n\n addSponsorNameLabel.setText(\"Name of Sponsor:\");\n\n addSponsorFnameLabel.setText(\"First Name:\");\n\n addSponsorLnameLabel.setText(\"Last Name:\");\n\n addSponsorPhoneLabel.setText(\"Phone:\");\n\n addSponsorPledgeLabel.setText(\"Pledge:\");\n\n addSponsorBackButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorBackButton.setText(\"Back\");\n addSponsorBackButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorBackButtonActionPerformed(evt);\n }\n });\n\n addSponsorSubmitButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorSubmitButton.setText(\"Submit\");\n addSponsorSubmitButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorSubmitButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(addSponsorLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addSponsorLogoLabel))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(143, 143, 143)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorFnameLabel)\n .addComponent(addSponsorLnameLabel)\n .addComponent(addSponsorPhoneLabel)\n .addComponent(addSponsorPledgeLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addComponent(addSponsorSubmitButton)\n .addGap(33, 33, 33)\n .addComponent(addSponsorBackButton)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(42, 42, 42))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(addSponsorLogoLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(addSponsorLabel)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameLabel))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeLabel))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorSubmitButton)\n .addComponent(addSponsorBackButton))\n .addContainerGap(47, Short.MAX_VALUE))\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n businessNameJLabel = new javax.swing.JLabel();\n enterpriseNameJLabel = new javax.swing.JLabel();\n networkNameJLabel = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n organizationNameJLabel = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n titleJLabel = new javax.swing.JLabel();\n drugNameJLabel = new javax.swing.JLabel();\n drugNameJTextField = new javax.swing.JTextField();\n backJButton = new javax.swing.JButton();\n addToCatalogJButton = new javax.swing.JButton();\n statusJLabel = new javax.swing.JLabel();\n statusJTextField = new javax.swing.JTextField();\n\n businessNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n businessNameJLabel.setText(\"Drug Tracking System\");\n\n enterpriseNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n enterpriseNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n enterpriseNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n enterpriseNameJLabel.setPreferredSize(new java.awt.Dimension(170, 24));\n\n networkNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n networkNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n networkNameJLabel.setMaximumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setMinimumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setPreferredSize(new java.awt.Dimension(195, 24));\n\n organizationNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n organizationNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n organizationNameJLabel.setPreferredSize(new java.awt.Dimension(190, 24));\n\n titleJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 26)); // NOI18N\n titleJLabel.setText(\"Drug Details\");\n\n drugNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n drugNameJLabel.setText(\"Drug Name\");\n\n drugNameJTextField.setEditable(false);\n drugNameJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n drugNameJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n drugNameJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n backJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n backJButton.setText(\"Back\");\n backJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n backJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n addToCatalogJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n addToCatalogJButton.setText(\"Add To Catalog\");\n addToCatalogJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addToCatalogJButton.setEnabled(false);\n addToCatalogJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n addToCatalogJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addToCatalogJButtonActionPerformed(evt);\n }\n });\n\n statusJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n statusJLabel.setText(\"Status\");\n\n statusJTextField.setEditable(false);\n statusJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n statusJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n statusJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\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 .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(businessNameJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(273, 273, 273)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(titleJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusJLabel)\n .addGap(18, 18, 18)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(drugNameJLabel)\n .addGap(18, 18, 18)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(311, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(businessNameJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleJLabel)\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drugNameJLabel)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusJLabel)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(201, Short.MAX_VALUE))\n );\n }", "public RadioUI()\n {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ScheduleForm() {\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 }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n \r\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(Color.black), javax.swing.BorderFactory.createBevelBorder(BevelBorder.LOWERED)));\r\n \r\n setEnabled(false);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 396, Short.MAX_VALUE));\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 324, Short.MAX_VALUE));\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\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 FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }" ]
[ "0.73920023", "0.73920023", "0.73920023", "0.73510396", "0.73314756", "0.732944", "0.7294636", "0.7265476", "0.72254306", "0.7214786", "0.7159011", "0.71552724", "0.7150036", "0.71403766", "0.71359104", "0.7133543", "0.71213406", "0.7119852", "0.71139586", "0.71109456", "0.70879024", "0.7085632", "0.70643646", "0.70584756", "0.70331705", "0.7030383", "0.7024", "0.702212", "0.70177174", "0.70113266", "0.70031637", "0.6965802", "0.6959609", "0.69581604", "0.6957667", "0.6957667", "0.6957629", "0.6951356", "0.69504637", "0.6939466", "0.69330376", "0.6929639", "0.69290274", "0.6928341", "0.6924505", "0.6921477", "0.691867", "0.6915745", "0.69156826", "0.6911067", "0.6911067", "0.6911067", "0.6909199", "0.6904149", "0.6899414", "0.68960774", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.689526", "0.6894423", "0.6892322", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6887453", "0.6885163", "0.6883441", "0.6871899", "0.687175", "0.6868704", "0.68619573", "0.6859767", "0.6856123", "0.6852707", "0.68503594", "0.6847409", "0.6846978", "0.6839781", "0.6839118", "0.68381274", "0.68294656", "0.6828273", "0.6825914", "0.68183565", "0.681558", "0.6812281" ]
0.0
-1
End of variables declaration//GENEND:variables
@Override public void componentOpened() { // TODO add custom code on component opening }
{ "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
TODO add custom code on component closing
@Override public void componentClosed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void componentClosed() {\n }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n public void disposeComponent() {\n }", "@Override\n\tpublic void onGuiClosed()\n {\n }", "@Override\r\n public void disposeComponent() {\n }", "public void onClosingFinished() {\n super.onClosingFinished();\n resetHorizontalPanelPosition();\n setClosingWithAlphaFadeout(false);\n }", "@Override\r\n\t\t\t\t\tpublic void onClose() {\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void windowClosing(WindowEvent e)\n {\n\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void onGuiClosed() {\n super.onGuiClosed();\n }", "@Override\n\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void componentHidden(ComponentEvent e)\n {\n \n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n public void componentClosed() {\n if (obj != null) {\n OpenSupport closer = obj.getLookup().lookup(OpenSupport.class);\n if (closer != null) {\n closer.close();\n }\n }\n }", "@Override\r\n\tpublic void onClose() {\n\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void closeIfStillOpen() {\n\n\t}", "@Override\n protected void componentClosed() {\n WindowManager.getDefault().getRegistry().removePropertyChangeListener(this);\n }", "@Override\n\tprotected void handleClose() {\n\t}", "private void onDispose(Event e) {\n\t\tstorComponentProperties();\n\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\n\t\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void close() {\n \n }", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\r\n\t}", "@Override\n\tpublic void windowClosed( WindowEvent e ) {\n\t\t\n\t}" ]
[ "0.8031007", "0.72945017", "0.70179003", "0.70179003", "0.70179003", "0.70179003", "0.69580287", "0.69517297", "0.69447047", "0.6875769", "0.68651736", "0.6819023", "0.6819023", "0.6819023", "0.6819023", "0.68130755", "0.6802385", "0.6802385", "0.678444", "0.67737895", "0.67551434", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67533416", "0.67181534", "0.6715511", "0.6698917", "0.6698917", "0.6694114", "0.66817665", "0.66705257", "0.6670369", "0.6670369", "0.6669847", "0.6668286", "0.6668286", "0.6668286", "0.6668286", "0.6661071", "0.6658067", "0.6658067", "0.6658067", "0.6658067", "0.6658067", "0.6658067", "0.6658067", "0.6656174", "0.6656174", "0.6656174", "0.66522473", "0.6650203", "0.66393703", "0.6638332", "0.660248", "0.65932405", "0.65932405", "0.6591442", "0.6591442", "0.6591442", "0.6591442", "0.6591442", "0.6591442", "0.6591442", "0.6590448", "0.6589803", "0.6589618", "0.6589618", "0.6589618", "0.6589618", "0.6589618", "0.6589618", "0.6589618", "0.6582228", "0.6582228", "0.6582228", "0.6567707", "0.6566646" ]
0.80696976
4
better to version settings since initial version as advocated at
void writeProperties(java.util.Properties p) { p.setProperty("version", "1.0"); // TODO store your settings }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n public int getVersion() {\n return 3;\n }", "public int getVersion() { return 1; }", "@Override\n\tpublic void initSettings() {\n\n\t}", "public static void setLocalVersion() {\n Properties prop = new Properties();\n try {\n prop.setProperty(\"updateID\", \"\"+UPDATE_ID); //make sure this matches the server's updateID\n prop.setProperty(\"name\", \"\"+VERSION_NAME);\n prop.store(\n new FileOutputStream(System.getProperty(\"user.home\") + \"/sheepfarmsimulator/client.properties\"), null);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}", "public abstract void initialSettings();", "@Override\r\n public void setMaxVersions(int parseInt) {\n\r\n }", "private void handlePhexVersionAdjustments()\r\n {\n if ( ( runningPhexVersion == null || runningPhexVersion.length() == 0 ) &&\r\n ( runningBuildNumber == null || runningBuildNumber.length() == 0 ) )\r\n {\r\n // this seems to be the first time phex is running...\r\n // in this case we are not updating... we use default values...\r\n \r\n // unfortunatly there is a bug causing no set version number to be available\r\n // between 56 and 78\r\n // since b78 updates can be performed on any version without problems we execute\r\n // them always if no version is set.\r\n updatesForBuild78();\r\n }\r\n else\r\n {\r\n // dropped update support of Phex 0.7 (2005-03-02)\r\n // dropped update support of Phex 0.8 (2005-11-19)\r\n // dropped update support of build 36 (2005-11-19)\r\n // dropped update support of build 42 (2005-11-19)\r\n // dropped update support of build 56 (2005-11-19)\r\n \r\n // update from Phex build <= 35\r\n if ( runningBuildNumber == null || runningBuildNumber.length() == 0 )\r\n {\r\n runningBuildNumber = \"35\";\r\n }\r\n if ( VersionUtils.compare( \"78\", runningBuildNumber ) > 0 )\r\n {\r\n updatesForBuild78();\r\n }\r\n if ( VersionUtils.compare( \"81\", runningBuildNumber ) > 0 )\r\n {\r\n updatesForBuild81();\r\n }\r\n if ( VersionUtils.compare( \"87\", runningBuildNumber ) > 0 )\r\n {\r\n updatesForBuild87();\r\n }\r\n if ( VersionUtils.compare( \"88\", runningBuildNumber ) > 0 )\r\n {\r\n updatesForBuild88();\r\n }\r\n if ( VersionUtils.compare( \"92\", runningBuildNumber ) > 0 )\r\n {\r\n updatesForBuild92();\r\n }\r\n }\r\n \r\n runningBuildNumber = Environment.getInstance().getProperty(\r\n \"build.number\" );\r\n runningPhexVersion = Res.getStr( \"Program.Version\" );\r\n save();\r\n }", "@Override\n public int getVersion() {\n return 0;\n }", "int getCurrentVersion();", "private OptimoveConfig() {\n }", "public Config(HG plugin)\r\n/* 38: */ {\r\n/* 39:46 */ if (!new File(plugin.getDataFolder(), \"config.yml\").exists())\r\n/* 40: */ {\r\n/* 41:47 */ Util.log(\"Config not found. Generating default config!\");\r\n/* 42:48 */ plugin.saveDefaultConfig();\r\n/* 43: */ }\r\n/* 44:51 */ config = plugin.getConfig().getRoot();\r\n/* 45:52 */ config.options().copyDefaults(true);\r\n/* 46:53 */ plugin.reloadConfig();\r\n/* 47:54 */ config = plugin.getConfig();\r\n/* 48: */ \r\n/* 49:56 */ spawnmobs = config.getBoolean(\"settings.spawn-mobs\");\r\n/* 50:57 */ spawnmobsinterval = config.getInt(\"settings.spawn-mobs-interval\") * 20;\r\n/* 51:58 */ freeroam = config.getInt(\"settings.free-roam\");\r\n/* 52:59 */ trackingstickuses = config.getInt(\"settings.trackingstick-uses\");\r\n/* 53:60 */ playersfortrackingstick = config.getInt(\"settings.players-for-trackingstick\");\r\n/* 54:61 */ maxchestcontent = config.getInt(\"settings.max-chestcontent\");\r\n/* 55:62 */ teleAtEnd = config.getBoolean(\"settings.teleport-at-end\");\r\n/* 56:63 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 57:64 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 58:65 */ cash = config.getInt(\"reward.cash\");\r\n/* 59:66 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 60:67 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 61:68 */ cash = config.getInt(\"reward.cash\");\r\n/* 62:69 */ breakblocks = config.getBoolean(\"rollback.allow-block-break\");\r\n/* 63:70 */ blocks = config.getIntegerList(\"rollback.editable-blocks\");\r\n/* 64:71 */ randomChest = config.getBoolean(\"random-chest.enabled\");\r\n/* 65:72 */ randomChestInterval = config.getInt(\"random-chest.interval\") * 20;\r\n/* 66:73 */ randomChestMaxContent = config.getInt(\"random-chest.max-chestcontent\");\r\n/* 67:75 */ if (giveReward) {\r\n/* 68: */ try\r\n/* 69: */ {\r\n/* 70:77 */ Vault.setupEconomy();\r\n/* 71: */ }\r\n/* 72: */ catch (NoClassDefFoundError e)\r\n/* 73: */ {\r\n/* 74:79 */ Util.log(\"Unable to setup vault! Rewards will not be given out..\");\r\n/* 75:80 */ giveReward = false;\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:84 */ ItemStack i = new ItemStack(Material.FIREWORK, 64);\r\n/* 79:85 */ FireworkMeta fm = (FireworkMeta)i.getItemMeta();\r\n/* 80:86 */ List<Color> c = new ArrayList();\r\n/* 81:87 */ c.add(Color.ORANGE);\r\n/* 82:88 */ c.add(Color.RED);\r\n/* 83:89 */ FireworkEffect e = FireworkEffect.builder().flicker(true).withColor(c).withFade(c).with(FireworkEffect.Type.BALL_LARGE).trail(true).build();\r\n/* 84:90 */ fm.addEffect(e);\r\n/* 85:91 */ fm.setPower(3);\r\n/* 86:92 */ i.setItemMeta(fm);\r\n/* 87: */ \r\n/* 88:94 */ firework = i;\r\n/* 89: */ }", "private void config() {\n\t}", "public Version version()\n/* */ {\n/* 518 */ return PackageVersion.VERSION;\n/* */ }", "void setVersion(long version);", "@Override\r\n\tpublic String getVersion() {\r\n\t\treturn \"1.0.5\";\r\n\t}", "private AppSettings() {\n /* =============== UI settings =============== */\n brightnessInNightModeOnly = false;\n fullScreen = false;\n showTitle = true;\n pageInTitle = true;\n pageNumberToastPosition = ToastPosition.Bottom;\n zoomToastPosition = ToastPosition.Bottom;\n showAnimIcon = false;\n linkHighlightColor = 0x80FFFF00;\n searchHighlightColor = 0x3F0000FF;\n currentSearchHighlightColor = 0x7F007F00;\n storeGotoHistory = false;\n storeLinkGotoHistory = false;\n storeOutlineGotoHistory = false;\n storeSearchGotoHistory = false;\n\n /* =============== Tap & Scroll settings =============== */\n tapsEnabled = true;\n scrollHeight = Dips.dpToPx(10);\n touchProcessingDelay = 50;\n animateScrolling = true;\n /* =============== Performance settings =============== */\n\n\t\tpagesInMemory = 2;\n decodingThreadPriority = Thread.NORM_PRIORITY; // 7\n drawThreadPriority = Thread.NORM_PRIORITY; // 6\n\n hwaEnabled = false;\n bitmapSize = 9;// 6-64,7-128,8-256,9-512,10-1024\n bitmapFileringEnabled = false;\n textureReuseEnabled = true;\n useBitmapHack = false;\n useEarlyRecycling = false;\n reloadDuringZoom = false;\n heapPreallocate = 0;// 0-256\n pdfStorageSize = 64;// 16-128\n\n /* =============== DjVU Format-specific settings =============== */\n djvuRenderingMode = 0;// 0-color,1-black,2 color only, 3 mask, 4 backgroud, 5 foreground\n }", "@Override\n public void checkVersion() {\n }", "@Override\n public int getVersion() {\n return 4;\n }", "public static final boolean shouldUseVersions() {\n return true;\n }", "@Override\r\n\tpublic int getVersion() {\n\t\treturn 0;\r\n\t}", "protected raVersionInfo() {\n }", "default void showChanges() {\n\t\tthrow new UnsupportedVersionControlSystemSupportException();\n\t}", "public void setVersion(String version) {\n\t\t\r\n\t}", "private boolean handleAvailableVersion(final Properties props, final String version) {\n final PluginVersion theVersion = new PluginVersion(version);\n if (theVersion.getMajor() == 0 && theVersion.getMinor() == 0 && theVersion.getPatch() == 0) {\n log.warn(\"Plugin {}: improbable version {}\", plugin.getPluginId(), version);\n }\n if (versionInfo.containsKey(theVersion)) {\n log.warn(\"Plugin {}: Duplicate version {}\", plugin.getPluginId(), version);\n }\n\n final String maxVersionInfo = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.MAX_IDP_VERSION_INTERFIX + version));\n if (maxVersionInfo == null) {\n log.warn(\"Plugin {}, Version {} : Could not find max idp version.\", plugin.getPluginId(), version);\n return false;\n }\n\n final String minVersionInfo = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.MIN_IDP_VERSION_INTERFIX + version));\n if (minVersionInfo == null) {\n log.warn(\"Plugin {}, Version {} : Could not find min idp version.\", plugin.getPluginId(), version);\n return false;\n }\n\n final String supportLevelString = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId()+ PluginSupport.SUPPORT_LEVEL_INTERFIX + version));\n PluginSupport.SupportLevel supportLevel;\n if (supportLevelString == null) {\n log.debug(\"Plugin {}, Version {} : Could not find support level for {}.\", plugin.getPluginId(), version);\n supportLevel = SupportLevel.Unknown;\n } else {\n try {\n supportLevel = Enum.valueOf(SupportLevel.class, supportLevelString);\n } catch (final IllegalArgumentException e) {\n log.warn(\"Plugin {}, Version {} : Invalid support level {}.\",\n plugin.getPluginId(), version, supportLevelString);\n supportLevel = SupportLevel.Unknown;\n }\n }\n\n log.debug(\"Plugin {}: MaxIdP {}, MinIdP {}, Support Level {}\", \n plugin.getPluginId(), maxVersionInfo, minVersionInfo, supportLevel);\n final VersionInfo info; \n info = new VersionInfo(new PluginVersion(maxVersionInfo), new PluginVersion(minVersionInfo), supportLevel);\n versionInfo.put(theVersion, info);\n if (myPluginVersion.equals(theVersion)) {\n myVersionInfo = info;\n }\n final String downloadURL = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.DOWNLOAD_URL_INTERFIX + version));\n final String baseName = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.BASE_NAME_INTERFIX + version));\n if (baseName != null && downloadURL != null) {\n try {\n final URL url = new URL(downloadURL);\n downloadInfo.put(theVersion, new Pair<>(url, baseName));\n log.trace(\"Plugin {}, version {} : Added download URL {} baseName {} for {}\",\n plugin.getPluginId(), theVersion, url, baseName);\n } catch (final MalformedURLException e) {\n log.warn(\"Plugin {}, version {} : download URL '{}' could not be constructed\",\n plugin.getPluginId(), theVersion, downloadURL, e);\n }\n } else {\n log.info(\"Plugin {}, version {} : no download information present\", plugin.getPluginId(), theVersion);\n }\n return true;\n }", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "private static final void u() {\n try {\n Object object = StaticLoggerBinder.REQUESTED_API_VERSION;\n Object object2 = v;\n int n10 = ((String[])object2).length;\n int n11 = 0;\n boolean bl2 = false;\n while (true) {\n if (n11 >= n10) {\n if (bl2) return;\n object2 = new StringBuilder();\n String string2 = \"The requested version \";\n ((StringBuilder)object2).append(string2);\n ((StringBuilder)object2).append((String)object);\n object = \" by your slf4j binding is not compatible with \";\n ((StringBuilder)object2).append((String)object);\n object = v;\n object = Arrays.asList(object);\n object = object.toString();\n ((StringBuilder)object2).append((String)object);\n object = ((StringBuilder)object2).toString();\n i.h.h.i.c((String)object);\n object = \"See http://www.slf4j.org/codes.html#version_mismatch for further details.\";\n i.h.h.i.c((String)object);\n return;\n }\n String string3 = object2[n11];\n boolean bl3 = ((String)object).startsWith(string3);\n if (bl3) {\n bl2 = true;\n }\n ++n11;\n }\n }\n catch (Throwable throwable) {\n String string4 = \"Unexpected problem occured during version sanity check\";\n i.h.h.i.d(string4, throwable);\n return;\n }\n catch (NoSuchFieldError noSuchFieldError) {\n return;\n }\n }", "public void setVersion(String version){\r\n this.version = version;\r\n }", "public abstract int getVersion();", "protected abstract void declareVersions();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "void writeProperties(java.util.Properties p) {\n\t\tp.setProperty(\"version\", \"1.0\");\n\t\t// TODO store your settings\n\t}", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "private Settings() { }", "String offerVersion();", "@Override\n public double getVersion() {\n return 0;\n }", "private Settings() {}", "@Override\n\tpublic String getMenuVersion() throws RemoteException {\n return model.getSetting(\"lejos.version\", \"\");\n\t}", "@Override\r\n protected boolean validateSystemSettings() {\n return true;\r\n }", "@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}", "@Override\n\tpublic String getVersion() {\n\t\treturn \"1.0\";\n\t}", "private void setupDefaultAsPerProperties()\n {\n /// Do the minimum of what App.init() would do to allow to run.\n Gui.mainFrame = new MainFrame();\n App.p = new Properties();\n App.loadConfig();\n System.out.println(App.getConfigString());\n Gui.progressBar = Gui.mainFrame.getProgressBar(); //must be set or get Nullptr\n\n // configure the embedded DB in .jDiskMark\n System.setProperty(\"derby.system.home\", App.APP_CACHE_DIR);\n\n // code from startBenchmark\n //4. create data dir reference\n App.dataDir = new File(App.locationDir.getAbsolutePath()+File.separator+App.DATADIRNAME);\n\n //5. remove existing test data if exist\n if (App.dataDir.exists()) {\n if (App.dataDir.delete()) {\n App.msg(\"removed existing data dir\");\n } else {\n App.msg(\"unable to remove existing data dir\");\n }\n }\n else\n {\n App.dataDir.mkdirs(); // create data dir if not already present\n }\n }", "private LanguagesettingsPackage() {}", "void setVersion(String version);", "void setVersion(String version);", "@Override\n\tpublic void setMethodVersion() {\n\t\tthis.version=\"app3.5\";\n\t}", "public long getVersion(){\n return localVersion;\n }", "private void init_settings() {\n\t\tSettings.setDifficulty(Difficulty.NORMAL);\n\t\tSettings.setGravity(BowmanConstants.DEFAULT_GRAVITY);\n\t}", "public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }", "String buildVersion();", "public float version() { return 0.9f; }", "public static\n String getVersion() {\n return \"3.9\";\n }", "public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.versionTableName, upgradeFile.logTableName );\r\n\t}", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "public void setVersion(String version);", "public void init() {\n- newProject = new Project();\n- newProject.setDefaultInputStream(getProject().getDefaultInputStream());\n+ newProject = getProject().createSubProject();\n newProject.setJavaVersionProperty();\n }", "private void setAppVersion() {\n try {\n String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n ServerSettingHelper.getInstance().setApplicationVersion(appVer);\n } catch (NameNotFoundException e) {\n if (Config.GD_ERROR_LOGS_ENABLED)\n Log.e(\"NameNotFoundException\", \"Error of getting package information!\");\n }\n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public VersionUtil(Context context) {\n\t\tthis.context = context;\n\t\tthis.sp = PreferenceManager.getDefaultSharedPreferences(context);\n\t\tresources = context.getResources();\n\n\t\ttry {\n\t\t\toldVersion = sp.getString(VERSION_KEY, \"\");\n\t\t\tthisVersion = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;\n\n\t\t} catch (NameNotFoundException e) {\n\t\t\tACRA.getErrorReporter().handleException(e);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void updateSettings(){\n\n // load in configuration variables\n layout = plugin.getConfig().getString(\"layout\");\n enabled = plugin.getConfig().getBoolean(\"enabled\");\n minTemp = plugin.getConfig().getInt(\"min-temperature\");\n maxTemp = plugin.getConfig().getInt(\"max-temperature\");\n peakTime = plugin.getConfig().getInt(\"peak-time\");\n tickrate = plugin.getConfig().getLong(\"tickrate\");\n worldName = plugin.getConfig().getString(\"world-name\");\n\n }", "private static GetRevisionHistoryOptions getRevisionHistoryOptions() {\n\tGetRevisionHistoryOptions options = new GetRevisionHistoryOptions();\n\toptions.setIncludeInherited(true);\n\toptions.setLongOutput(true);\n\toptions.setMaxRevs(1000);\n\toptions.setOmitNonContributaryIntegrations(true);\n\treturn options;\n }", "protected DiscoveryVOSConfig() {\n\t\tsuper(BRANCH_ROOT + \".DiscoveryVOS.com.discoveryVOS.\".replace('.', File.separatorChar));\n\t}", "public static String getVersion() { return \"2.0\"; }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n\n //begin zhixiong.liu.hz for XR 6107743 2018/3/14 \n //begin zhixiong.liu.hz remove useless code defect 7169297 20181130\n //if (!getResources().getBoolean(R.bool.def_settings_custom_build_version_enable)) {\n // removePreference(KEY_CUSTOM_BUILD_VERSION);\n //} else {\n // setValueSummary(KEY_CUSTOM_BUILD_VERSION, PROPERTY_CUSTOM_BUILD_VERSION);\n //} \n //end zhixiong.liu.hz remove useless code defect 7169297 20181130\n if (!getResources().getBoolean(R.bool.def_Settings_buildnum_display_enable)) {\n removePreference(KEY_BUILD_NUMBER);\n }\n\n if (!getResources().getBoolean(R.bool.def_Settings_typecode_enable)) {\n removePreference(KEY_TYPE_CODE);\n }else{\n findPreference(KEY_TYPE_CODE).setSummary(getResources().getString(R.string.def_Settings_typecode));\n }\n //end zhixiong.liu.hz for XR 6107743 2018/3/14\n \n //Begin added by miaoliu for XR6172796 on 2018/4/8\n if(!checkPackageExist(getActivity(), \"com.tct.gdpr\")){\n removePreference(\"policy\");\n }\n //End added by miaoliu for XR6172796 on 2018/4/8\n //begin zhixiong.liu.hz for defect 6272377 2018/4/29\n if(!getResources().getBoolean(R.bool.def_settings_baseband_show)){\n removePreference(KEY_BASEBAND_VERSION);\n }\n //end zhixiong.liu.hz for defect 6272377 2018/4/29 \n\n }", "private void m1182e(boolean z) {\n this.f1445d.mo55878c();\n m1183f();\n CollectorsInfrastructure.getInstance().setSDKAnalyticsVersion(C3682q4.C3683a.valueOf(z ? \"V2\" : \"V1\"));\n CollectorsInfrastructure.getInstance().setSDKFramework(this.f1451j);\n }", "long version();", "@Override\n\tpublic String getVersion() {\n\t\treturn \"0\";\n\t}", "private static HashMap<String, String> settings() {\n HashMap<String, String> settings = new HashMap<String, String>();\n settings.put(\"db.default.url\", \"jdbc:mysql://api.template-java.com:3306/play_test\");\n settings.put(\"db.default.username\", \"root\");\n settings.put(\"db.default.password\", \"\");\n settings.put(\"db.default.jndiName\", \"DefaultDS\");\n settings.put(\"jpa.default\", \"mySqlPersistenceUnit\");\n return(settings);\n }", "protected boolean readProjectSettings() { return true; }", "@Override\n\tpublic void setVersions(SsaForm obj){\n\n\t\tAbstractBaseExt defSymbol = (AbstractBaseExt) resolve(getContext().getText());\n\t\tString str=allHdrFieldsMap.get(defSymbol);\n\t\tif(str!=null) {\n\t\t\tmapUsedStructFields.put(defSymbol, str);\n\t\t}\n\t\tif(obj.getParentCtx() instanceof IfStatementContextExt){\n\t\t\tif(obj.getMinMap().get(defSymbol)==null) {\n\t\t\t\tobj.getMinMap().put(defSymbol, defSymbol.getVersion());\n\t\t\t}\n\t\t} else {\n\t\t\tobj.getMinMap().put(defSymbol, defSymbol.getVersion());\n\t\t}\n\n\t\tdefSymbol.incVersion();\n\t\tthis.ssaVersion=defSymbol.getVersion();\n\t\tList<Pair<AbstractBaseExt,AbstractBaseExt> > tempList=obj.getAllVer().get(defSymbol);\n\t\tif(tempList!=null){\n\t\t\ttempList.add(new Pair(getExtendedContext(getContext()),obj.getAssignCtx()));\n\t\t} else {\n\t\t\tList<Pair<AbstractBaseExt,AbstractBaseExt> > newtempList=new ArrayList<>();\n\t\t\tnewtempList.add(new Pair(getExtendedContext(getContext()),obj.getAssignCtx()));\n\t\t\tobj.getAllVer().put(defSymbol, newtempList);\n\t\t}\n\t}", "private void _generate(int versions) {\n\t \n\t \n\t \n\t _generate(); //V0\n\t \n\t File[] files = new File(System.getProperty(\"user.dir\")).listFiles();\n\t Model model = ModelFactory.createDefaultModel();\n\t //model.set\n\t\tfor(File file : files){\n\t\t\tif(!file.getName().contains(\"owl\")) continue;\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tFileInputStream in = new FileInputStream(file);\n\t\t\t\tmodel.read(in, \"http://example.com\", \"RDF/XML\");\t\t\t\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tlong startingSize = model.size();\n\t\tmodel.close();\n\t double desSize = startingSize*(1+evoChange);\n\t int schemaEvol = (int)(strict*10);\n\t int schemaEvol2 = schemaEvol / (evoVersions-1);\n\t System.out.println(\"schema evol param: \" + schemaEvol2);\n\t int howManyDepts = (int) Math.floor(totalDeptsV0*evoChange);\n\t HashMap<Integer, String> newClasses = new HashMap<Integer, String>();\n\t for(int i = 0; i < schemaEvol; i++)\n\t\t newClasses.put(i,\"\");\n\n\t double evoChangeOriginal = evoChange;\n\t boolean pub = false, conf = false, journ = false, tech = false, \n\t\t\t book = false, thes = false, proj = false, even = false;\n\t HashMap<String, HashMap<Integer, Double>> initialWeightsMap = new HashMap<String, HashMap<Integer,Double>>();\n\t for(String key : fileWeightsMap.keySet()){\n\t\t HashMap<Integer, Double> innerClone = new HashMap<Integer, Double>();\n\t\t for(Integer innerKey : fileWeightsMap.get(key).keySet()){\n\t\t\t innerClone.put(innerKey, fileWeightsMap.get(key).get(innerKey));\n\t\t }\n\t\t initialWeightsMap.put(key, innerClone);\n\t }\n\t for(int vi = 0 ; vi < evoVersions-1; vi++){\n\t \t\n\t\t globalVersionTrigger = true;\n\t\t File dir = new File(System.getProperty(\"user.dir\")+\"/v\"+vi);\n dir.mkdirs();\n\t\t //assignFilters(classFilters);\n\t\t //System.out.println(\"current filters: \" + currentFilters.toString());\n\t \tint classForChange ;\n\t \n\t \t//the number of depts (files) to evolve, based on the defined evoChange parameter\t \n\t \n\t List<String> asList = new ArrayList<String>(fileWeightsMap.keySet());\n\t \n\t writer_log = new OwlWriter(this);\t \n writer_log.startLogFile(dir.getAbsolutePath()+\"/changes.rdf\");\n writer_log.start();\n\t for(int d = 0 ; d < howManyDepts ; d++){\n\t \t\n\t \t//System.out.println(\"aslist: \" + asList.size());\n\t \tif(asList.size() == 0) break;\n\t String randomFile = asList.get(random_.nextInt(asList.size()));\n\t instances_ = fileInstanceMap.get(randomFile);\n\t \n\t asList.remove(randomFile);\n\t \t\n\t //System.out.println(\"Selected file: \" + randomFile);\n\t writer_ = new OwlWriter(this);\n\t \n\t writer_.startFile(dir.getAbsolutePath()+\"/\"+randomFile);\n\t writer_.start();\n\t for(Integer nextClass : fileWeightsMap.get(randomFile).keySet()){\n\t \t\n\t \tclassForChange = nextClass;\n\t \t\n\t \tif(classForChange < 2) {\n\t \t\t\tcontinue;\n\t \t}\n\t \t\n\t \tif(classForChange == 4) continue;\n\t \tint totalIter = (int) Math.floor(2*initialWeightsMap.get(randomFile).get(classForChange))/howManyDepts;\n\t \t\n\t for(int i = 0; i < totalIter ; i++){\n\t \t\n\t \t_generateASection(classForChange, \n\t \t\t\tinstances_[classForChange].count ); \t \t\t\t\n\t }\n\t \n\t if(nextClass == 21 ){\n\t \twriter_log.addTypeClass(ontology+\"WebCourse\");\n\t \twriter_log.addSuperClass(ontology+\"WebCourse\", ontology+\"Course\");\n\t }\n\t else if(nextClass == 20 ){\n\t \twriter_log.addTypeClass(ontology+\"VisitingStudent\");\n\t \twriter_log.addSuperClass(ontology+\"VisitingStudent\", ontology+\"Student\");\n\t }\n\t else if(nextClass == 19 ){\n\t \twriter_log.addTypeClass(ontology+\"VisitingProfessor\");\n\t \twriter_log.addSuperClass(ontology+\"VisitingProfessor\", ontology+\"Professor\");\n\t }\n\t \n\t }\n\t \n\t for(int k = 0; k < schemaEvol2+1; k++){\n\t \t\n\t \tif(newClasses.isEmpty()) break;\n\t \tint newClass = _getRandomFromRange(0, newClasses.keySet().size()+1);\n\t \tint index = 0;\n\t \tfor(Integer s : newClasses.keySet()){\n\t \t\tif(index == newClass){\n\t \t\t\tnewClass = s;\n\t \t\t\tbreak;\n\t \t\t}\n\t \t\tindex++;\n\t \t}\n\t \t/*if(newClass == 1){\n\t \t_generatePublications();\n\t \tnewClasses.remove(newClass);\n\t }*/\n\t if(newClass == 2){\n\t \t_generateConferencePublications();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"ConferencePublication\");\n\t \twriter_log.addSuperClass(ontology+\"ConferencePublication\", ontology+\"Publication\");\n\t }\n\t if(newClass == 3){\n\t \t_generateJournalPublications();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"JournalArticle\");\n\t \twriter_log.addSuperClass(ontology+\"JournalArticle\", ontology+\"Publication\");\n\t }\n\t if(newClass == 4 ){\n\t \t_generateTechnicalReports();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"TechnicalReport\");\n\t \twriter_log.addSuperClass(ontology+\"TechnicalReport\", ontology+\"Publication\");\n\t }\n\t if(newClass == 5 ){\n\t \t_generateBooks();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Book\");\n\t \twriter_log.addSuperClass(ontology+\"Book\", ontology+\"Publication\");\n\t }\n\t if(newClass == 6 ){\n\t \t_generateThesis();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Thesis\");\n\t \twriter_log.addSuperClass(ontology+\"Thesis\", ontology+\"Publication\");\n\t }\n\t if(newClass == 7 ){\n\t \t_generateProjects();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Project\");\n\t }\n\t if(newClass == 8){\n\t \t_generateEvents();\n\t \tnewClasses.remove(newClass);\n\t \twriter_log.addTypeClass(ontology+\"Event\");\n\t }\n\t }\n\t \n\t writer_.end();\n\t writer_.endFile();\n\t //correction\n\t //remainingUnderCourses_.\n\t remainingUnderCourses_.clear();\n\t \n\t for (int i = 0; i < UNDER_COURSE_NUM + (int) (UNDER_COURSE_NUM*evoChange); i++) {\n\t remainingUnderCourses_.add(new Integer(i));\n\t }\n\t remainingGradCourses_.clear();\n\t for (int i = 0; i < GRAD_COURSE_NUM + (int) (GRAD_COURSE_NUM*evoChange); i++) {\n\t remainingGradCourses_.add(new Integer(i));\n\t }\n\t remainingWebCourses_.clear();\n\t for (int i = 0; i < WEB_COURSE_NUM + (int) (WEB_COURSE_NUM*evoChange); i++) {\n\t remainingWebCourses_.add(new Integer(i));\n\t }\n\t \n\t assignWeights(randomFile);\t \t \n\t \n\t }\t\n\t evoChange = evoChange + evoVersions*evoChangeOriginal*evoChangeOriginal;\n\t \n\t writer_log.end();\n\t writer_log.endLogFile();\n\t \n\t \t\n\t }\n\t \n\t \n }", "static void setDefaultProperties() {\n properties.put(\"VERSION\", \"6\");\n\n // Directories and file names\n properties.put(\"SOURCE_DIRECTORY\", \"jspin-examples\");\n properties.put(\"C_COMPILER\", \"clang\");\n properties.put(\"SPIN\", \"/home/victor/Spin/spin\");\n properties.put(\"PAN\", \"pan\");\n properties.put(\"DOT\", \"dot\");\n properties.put(\"HELP_FILE_NAME\", \"txt\" + sep + \"help.txt\");\n properties.put(\"ABOUT_FILE_NAME\", \"txt\" + sep + \"copyright.txt\");\n\n // Options for executing Spin\n properties.put(\"SINGLE_QUOTE\", Boolean.toString(false));\n properties.put(\"COMMON_OPTIONS\", \"-g -l -p -r -s\");\n // Check options changed for version 6 (for now)\n // properties.put(\"CHECK_OPTIONS\", \"-a -v\");\n properties.put(\"CHECK_OPTIONS\", \"-a\");\n properties.put(\"RANDOM_OPTIONS\", \"-X\");\n properties.put(\"INTERACTIVE_OPTIONS\", \"-i -X\");\n properties.put(\"VERIFY_OPTIONS\", \"-a\");\n properties.put(\"C_COMPILER_OPTIONS\", \"-o pan pan.c\");\n properties.put(\"PAN_OPTIONS\", \"-X\");\n properties.put(\"TRAIL_OPTIONS\", \"-t -X\");\n properties.put(\"TRANSLATE_OPTIONS\", \"-f\");\n\n // Settings\n properties.put(\"MAX_STEPS\", \"250\");\n properties.put(\"MAX_DEPTH\", \"2000\");\n properties.put(\"SEED\", \"0\");\n properties.put(\"NEGATE_LTL\", Boolean.toString(true));\n properties.put(\"FAIRNESS\", Boolean.toString(true));\n properties.put(\"VERIFY_MODE\", Safety);\n properties.put(\"RAW\", Boolean.toString(false));\n properties.put(\"PROCESS_WIDTH\", Integer.toString(7));\n properties.put(\"STATEMENT_WIDTH\", Integer.toString(18));\n properties.put(\"VARIABLE_WIDTH\", Integer.toString(10));\n properties.put(\"LINES_PER_TITLE\", Integer.toString(20));\n\n // Size of main frame\n properties.put(\"WIDTH\", Integer.toString(1000));\n properties.put(\"HEIGHT\", Integer.toString(700));\n\n // Select dialog\n properties.put(\"SELECT_BUTTON\", Integer.toString(220));\n properties.put(\"SELECT_HEIGHT\", Integer.toString(70));\n properties.put(\"SELECT_MENU\", Integer.toString(5));\n properties.put(\"UNEXECUTABLE\", Boolean.toString(false));\n\n // Location of dividers in JSplitPanes: Left-right and top-bottom\n properties.put(\"LR_DIVIDER\", Integer.toString(400));\n properties.put(\"TB_DIVIDER\", Integer.toString(500));\n properties.put(\"MIN_DIVIDER\", Integer.toString(50));\n\n // Font\n properties.put(\"FONT_FAMILY\", \"Lucida Sans Typewriter\");\n properties.put(\"FONT_STYLE\", Integer.toString(java.awt.Font.PLAIN));\n properties.put(\"FONT_SIZE\", Integer.toString(14));\n\n // Tab size in editor\n properties.put(\"TAB_SIZE\", Integer.toString(4));\n\n // Display of Spin output\n properties.put(\"WRAP\", Boolean.toString(true));\n properties.put(\"MSC\", Boolean.toString(false));\n properties.put(\"PROCESS_TITLE\", \"Process \");\n properties.put(\"STATEMENT_TITLE\", \"Statement \");\n\n // Delay while waiting for user input\n properties.put(\"POLLING_DELAY\", Integer.toString(200));\n }", "public void validateSettings() {\n \n \t\ttry {\n \t\t\tfinal String serverUrl = getServerUrl();\n \t\t\tfinal String newUserId = getUserName();\n \t\t\tfinal String newPassword = getPassword();\n \t\t\tfinal boolean isAnonymous = isAnonymousAccess();\n \t\t\tfinal String newEncoding = getCharacterEncoding();\n \t\t\tfinal String httpAuthUser = getHttpAuthUserId();\n \t\t\tfinal String httpAuthPass = getHttpAuthPassword();\n \t\t\tfinal boolean checkVersion = repositoryVersionCombo.getSelectionIndex() == 0;\n \t\t\tfinal String[] version = new String[1];\n \t\t\tgetWizard().getContainer().run(true, false, new IRunnableWithProgress() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n \t\t\t\t\tif (monitor == null) {\n \t\t\t\t\t\tmonitor = new NullProgressMonitor();\n \t\t\t\t\t}\n \t\t\t\t\ttry {\n \t\t\t\t\t\tmonitor.beginTask(\"Validating server settings\", IProgressMonitor.UNKNOWN);\n \t\t\t\t\t\tBugzillaClient client = null;\n \t\t\t\t\t\tif (!isAnonymous && version != null) {\n \t\t\t\t\t\t\tclient = BugzillaClientFactory.createClient(serverUrl, newUserId, newPassword,\n \t\t\t\t\t\t\t\t\thttpAuthUser, httpAuthPass, newEncoding);\n \t\t\t\t\t\t\tclient.validate();\t\t\t\t\t\t\t\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (checkVersion && client != null) {\n \t\t\t\t\t\t\tRepositoryConfiguration config = client.getRepositoryConfiguration();\n \t\t\t\t\t\t\tif (config != null) {\n \t\t\t\t\t\t\t\tversion[0] = config.getInstallVersion();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tthrow new InvocationTargetException(e);\n \t\t\t\t\t} finally {\n \t\t\t\t\t\tmonitor.done();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \n \t\t\t// getWizard().getContainer().run(true, false, new\n \t\t\t// IRunnableWithProgress() {\n \t\t\t// public void run(IProgressMonitor monitor) throws\n \t\t\t// InvocationTargetException, InterruptedException {\n \t\t\t// monitor.beginTask(\"Validating server settings\",\n \t\t\t// IProgressMonitor.UNKNOWN);\n \t\t\t// try {\n \t\t\t//\n \t\t\t// // Check that the server exists and we can connect\n \t\t\t// // (proxy or not)\n \t\t\t// Proxy proxySettings =\n \t\t\t// TasksUiPlugin.getDefault().getProxySettings();\n \t\t\t// WebClientUtil.openUrlConnection(serverURL, proxySettings, false,\n \t\t\t// httpAuthUser, httpAuthPass);\n \t\t\t//\n \t\t\t// if (!isAnonymous) {\n \t\t\t// // Server exists, connect to service and validate\n \t\t\t// // credentials\n \t\t\t// BugzillaClient.validateCredentials(proxySettings, serverUrl,\n \t\t\t// newEncoding, newUserId,\n \t\t\t// newPassword);\n \t\t\t// }\n \t\t\t//\n \t\t\t// if (checkVersion) {\n \t\t\t// RepositoryConfiguration config =\n \t\t\t// BugzillaCorePlugin.getRepositoryConfiguration(true,\n \t\t\t// serverUrl, proxySettings, newUserId, newPassword, newEncoding);\n \t\t\t//\n \t\t\t// if (config != null) {\n \t\t\t// version[0] = config.getInstallVersion();\n \t\t\t// }\n \t\t\t// }\n \t\t\t//\n \t\t\t// } catch (Exception e) {\n \t\t\t// throw new InvocationTargetException(e);\n \t\t\t// } finally {\n \t\t\t// monitor.done();\n \t\t\t// }\n \t\t\t// }\n \t\t\t// });\n \n \t\t\tif (version[0] != null) {\n \t\t\t\tsetBugzillaVersion(version[0]);\n \t\t\t}\n \n \t\t\tif (!testing) {\n \t\t\t\tMessageDialog.openInformation(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG,\n \t\t\t\t\t\t\"Authentication credentials are valid.\");\n \t\t\t}\n \t\t} catch (InvocationTargetException e) {\n \t\t\tif (e.getCause() instanceof MalformedURLException) {\n \t\t\t\tMessageDialog.openWarning(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, \"Server URL is invalid.\");\n \t\t\t} else if (e.getCause() instanceof LoginException) {\n \t\t\t\tMessageDialog.openWarning(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG,\n \t\t\t\t\t\t\"Unable to authenticate with server.\\n\\n\" + e.getCause().getMessage());\n \t\t\t} else if (e.getCause() instanceof IOException) {\n \t\t\t\tMessageDialog.openWarning(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG,\n \t\t\t\t\t\t\"No Bugzilla server found at url\");\n \t\t\t} else {\n \t\t\t\tMessageDialog.openWarning(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, MESSAGE_FAILURE_UNKNOWN);\n \t\t\t}\n \t\t} catch (InterruptedException e) {\n \t\t\tMessageDialog.openWarning(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, MESSAGE_FAILURE_UNKNOWN);\n \t\t}\n \n \t\tsuper.getWizard().getContainer().updateButtons();\n \t}" ]
[ "0.6748733", "0.59921473", "0.58917177", "0.58804727", "0.5873192", "0.5756656", "0.57468534", "0.5727233", "0.5687406", "0.5672329", "0.5662397", "0.5622477", "0.5601024", "0.5596534", "0.5580043", "0.5531845", "0.5531721", "0.54886895", "0.5478813", "0.5457113", "0.54462874", "0.5435198", "0.54283595", "0.5411442", "0.53970486", "0.5396188", "0.53905755", "0.536876", "0.536876", "0.536876", "0.5361381", "0.53598326", "0.53477734", "0.5330848", "0.532632", "0.5324849", "0.5315303", "0.5315303", "0.5315303", "0.5315303", "0.5315303", "0.5315303", "0.5315303", "0.5315303", "0.5301154", "0.53001386", "0.5297189", "0.52912927", "0.52743554", "0.5273678", "0.5270496", "0.5264538", "0.5264477", "0.52615225", "0.5256986", "0.5256184", "0.52532697", "0.52532697", "0.5251931", "0.5243571", "0.5237644", "0.52364886", "0.52295196", "0.5222281", "0.5209937", "0.52044976", "0.5199984", "0.5199984", "0.5199984", "0.5199984", "0.5191872", "0.51909083", "0.51889557", "0.51874536", "0.517989", "0.51769674", "0.5171595", "0.5170188", "0.5164512", "0.5149847", "0.51450706", "0.5144103", "0.51384854", "0.51354814", "0.5134741", "0.5133326", "0.51311046", "0.5114272", "0.5113824" ]
0.5370604
38
This implementation does nothing.
@Override public QuadHolder setValues(final Map<Var, Node> values) { this.values = values; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void doNothing(){\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "public static void doNothing(){\n\t}", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}", "@Override\n public void clear() {\n \n }", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n protected void clear() {\n\n }", "@Override\n\tpublic void clear() {\n\t}", "@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "@Override\n\tpublic void clear() {\n\n\t}", "@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "@Override\n public void reset() \n {\n\n }", "@Override public void clear() {\n }", "private final void i() {\n }", "@Override public int describeContents() { return 0; }", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tvoid clear() {\n\n\t}", "@Override\n\tpublic void detalhar() {\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\n public void clear() {\n super.clear();\n }", "@Override\n public void reset() {\n }", "@Override\n public synchronized void clear() {\n }", "@Override\r\n\tpublic void clear() {\n\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void reset() {\n\n }", "@Override\n public void clear()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void clear() {\n\t\t// Do nothing\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void reset() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected ProducedData performs() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String process() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void reset() {\n\t}", "@Override\n\tpublic void reset() {\n\n\t}", "@Override\r\n\tpublic void reset() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void clear()\n {\n\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public boolean c() {\n return false;\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void reset() {\n super.reset();\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void reset()\n {\n super.reset();\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tvoid reset() {\n\t\t\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void noControl() {\r\n q.put(null);\r\n v.put(null);\r\n }", "@Override\n public void apply() {\n }", "public void swrap() throws NoUnusedObjectExeption;", "private Unescaper() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic String swim() {\n\t\treturn null;\r\n\t}", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public boolean method_218() {\r\n return false;\r\n }", "@Override\n public boolean d() {\n return false;\n }", "protected Problem() {/* intentionally empty block */}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}" ]
[ "0.6907649", "0.6809169", "0.67952675", "0.67686206", "0.6706031", "0.6615614", "0.65518904", "0.65490687", "0.65441525", "0.65441525", "0.6523766", "0.65207225", "0.6485074", "0.6483138", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "0.647633", "0.6450465", "0.6426185", "0.64183635", "0.6412698", "0.6406376", "0.63975906", "0.63953245", "0.63927436", "0.63927436", "0.63927436", "0.63927436", "0.6382406", "0.6373575", "0.6370668", "0.63386047", "0.63355047", "0.63321835", "0.6329733", "0.6319628", "0.63142574", "0.6295823", "0.6286033", "0.62858903", "0.62858903", "0.62798077", "0.6274483", "0.62727356", "0.62649196", "0.6264831", "0.6258551", "0.6244133", "0.62439024", "0.62439024", "0.62428397", "0.6238796", "0.6238796", "0.62377733", "0.6235392", "0.62326366", "0.622717", "0.6220898", "0.62080634", "0.61996347", "0.61950374", "0.61935455", "0.61768234", "0.61742395", "0.61704904", "0.61636424", "0.61584586", "0.61478305", "0.61478305", "0.6145773", "0.6141263", "0.6138319", "0.6136749", "0.61334115", "0.6130856", "0.61297584", "0.61173713", "0.61119044", "0.61072457", "0.61072457", "0.6094824", "0.6094442", "0.60890305", "0.60888726", "0.60792696", "0.60616803", "0.6058003", "0.6053097", "0.60488945", "0.6043858", "0.603551", "0.60347724", "0.60308975", "0.601484", "0.60132766", "0.6012849", "0.60125935" ]
0.0
-1
Scheduler For owner Conscent
@Override @Scheduled(cron = "0 0 0 * * ?") public void changeOwnerConsent() throws UnauthorizedException { ActivitiResponseModel<List<RtaTaskInfo>> activeInstances = activitiService .getActiveInstances(taskOwnerConscent); List<RtaTaskInfo> tasks = activeInstances.getActiveTasks(); List<String> exectionIds = new ArrayList<String>(); for (RtaTaskInfo task : tasks) { exectionIds.add(task.getProcessInstanceId()); } RegistrationServiceResponseModel<TokenModel> loginResponse = registrationService.loginIfRequired(getUsername(), getPassword()); HttpHeaders headers = new HttpHeaders(); HttpEntity<OwnerConscent> httpEntity = null; headers.setContentType(MediaType.APPLICATION_JSON); headers.add("Authorization", loginResponse.getResponseBody().getToken()); OwnerConscent consent = null; Map<String, String> appList = applicationService.getApplicationFromExecId(exectionIds); if (!appList.isEmpty()) { for (Map.Entry<String, String> entry : appList.entrySet()) { consent = new OwnerConscent(); consent.setOwnerConscent(false); consent.setOwnerComment(OWNER_NO_RESPONSE); httpEntity = new HttpEntity<OwnerConscent>(consent, headers); ResponseEntity<FreshRcModel> response = restTemplate.exchange( getRootURL().append("/application/updateownerconsent/").append(entry.getValue()).toString(), HttpMethod.POST, httpEntity, FreshRcModel.class); String instanceId = entry.getKey(); if (response.getStatusCode() == HttpStatus.OK) { Assignee assignee = new Assignee(); assignee.setUserId(CitizenConstants.CITIZEN_USERID); Map<String, Object> variables = new HashMap<String, Object>(); if (response.getBody().getOwnerConsent()) { variables.put(taskOwnerConscent, Status.APPROVED); } else { variables.put(taskOwnerConscent, Status.REJECTED); } activitiService.completeTask(assignee, taskOwnerConscent, instanceId, true, variables); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "private void scheduleJob() {\n\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "@Override\r\n\tpublic IScheduler getForcedScheduler() {\n\t\treturn null;\r\n\t}", "private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }", "protected abstract void scheduler_init();", "public synchronized Scheduler getScheduler() { return this.scheduler; }", "public void generateSchedule(){\n\t\t\n\t}", "public abstract void schedule();", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}", "public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}", "public void scheduleJobs();", "@Override\npublic void run() {\n\tCalendar oFecha = Calendar.getInstance();\n \n\tint minuto = 25;\n\t\n\tSystem.out.println(\n\t\t\toFecha.getTime().toLocaleString() + \n\t\t\t\" MinJob trigged by scheduler - \" + minuto );\n\t\n\ttry {\n\t\tSystem.out.println(Configuracion.getInstance().getProperty(\"clave\") );\n\t} catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\t\n\tif (oFecha.get(Calendar.MINUTE) == minuto)\t\n\t\tHourlyJob.realizarBackup();\n \n }", "@Override\n public void reportScheduler() {\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "protected abstract String scheduler_next();", "public interface SchedulerProvider {\n\n Scheduler io();\n\n Scheduler ui();\n}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "abstract public void computeSchedule();", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public interface JcrontabScheduler {\n\n\t/** Avalon Role Name */\n\tString ROLE = JcrontabScheduler.class.getName();\n\t\n\t/** The Key to use in your .properties file for relative urls.\n\t * This will be replaced with the actual application root.\n\t * \n\t */\n\tpublic static final String APPLICATION_ROOT_KEY=\"applicationRoot\";\n\t\n\t/**\n\t * Gets the scheduler attribute of the JCrontabScheduler object\n\t *\n\t *@return The scheduler value\n\t */\n\tpublic Crontab getCrontab();\n\t\n\t/** \n\t * Get the CrontabEntryDAO for looking at tasks\t \n\t *\n\t *@return The CrontabEntryDAO.\n\t */\n\tpublic CrontabEntryDAO getContrabEntryDAO();\n\t\n\t/** \n\t * Report whether JCrontab instance is actually\n\t * running or not.\t \n\t *\n\t *@return Whether it is running or not.\n\t */\n\tpublic boolean isRunning();\n}", "public Scheduler getScheduler() {\n\t\treturn scheduler;\n\t}", "public interface AppScheduler {\n Scheduler getNewThread();\n Scheduler getMainThread();\n}", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "Schedule createSchedule();", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "public Scheduler()\n {\n this.id = \"\"+ hashCode();\n register();\n }", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "public Scheduler(String scheduler_name) {\n super();\n this.scheduler_name = scheduler_name;\n this.task_set = null;\n }", "public synchronized Task setScheduler(Scheduler s)\n/* */ {\n/* 102 */ this.scheduler = s;\n/* 103 */ return this;\n/* */ }", "public abstract void maintenanceSchedule() ;", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "public interface SchedulerProvider {\r\n\r\n Scheduler computation();\r\n\r\n Scheduler io();\r\n\r\n Scheduler ui();\r\n}", "public String getSchedulerName() {\r\n return this.schedulerName;\r\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public interface SchedulerProvider {\n\n Scheduler ui();\n\n Scheduler computation();\n\n Scheduler io();\n\n}", "@Override\n protected Scheduler createScheduler() {\n return new JLScheduler(this) {\n @Override\n public List<Goal> goals(Job job) {\n List<Goal> goals= super.goals(job);\n Goal endGoal = goals.get(goals.size()-1);\n if (!(endGoal.name().equals(\"End\"))) {\n throw new IllegalStateException(\"Last goal is not an End goal?\");\n }\n endGoal.addPrereq(new IRGoal(job, fSourceLoader));\n return goals;\n }\n };\n }", "public String getSchedulerName() {\n return schedulerName;\n }", "SwSchedulableResource createSwSchedulableResource();", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "ScheduledExecutorService getScheduler() {\n return scheduler;\n }", "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "public PriorityScheduler() {\n }", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public PriorityScheduler() {\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public interface RxSchedulerProvider {\n\n\n Scheduler backgroundThread();\n\n Scheduler io();\n\n Scheduler compute();\n\n Scheduler androidThread();\n\n Scheduler internet();\n\n}", "public interface Scheduler {\n\n void schedule();\n\n}", "public schedulerJob() {\n }", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "public void doInitialSchedules() {\r\n\r\n\t\t// create the servicer, here make a vancarrier\r\n\t\tfor (int i = 0; i < vcNumber; i++) {\r\n\t\t\tVC vancarrier = new VC(this, \"Van Carrier\", true);\r\n\r\n\t\t\t// put the vancarrier on duty with placing it on the event-list\r\n\t\t\t// first\r\n\t\t\t// it will deactivate itself into waiting status\r\n\t\t\t// for the first truck right after activation\r\n\t\t\tvancarrier.activate();\r\n\t\t}\r\n\r\n\t\t// create a truck spring\r\n\t\tTruckGenerator firstarrival = new TruckGenerator(this, \"TruckArrival\", false);\r\n\r\n\t\t// place the truck generator on the event-list, in order to\r\n\t\t// start producing truck arrivals when the first truck comes\r\n\t\t// therefore we must use \"schedule\" instead of \"activate\"\r\n\t\tfirstarrival.schedule(new TimeSpan(getTruckArrivalTime()));\r\n\r\n\t}", "public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }", "public final String toString() {\n return scheduler_name;\n }", "public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }", "void schedule(ScheduledJob job);", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public ISchedulingRule getSchedulingRule(IDeploymentTarget target) {\n return null;\r\n }", "public static void scheduleJob() {\n Set<JobRequest> jobRequests = JobManager.instance().getAllJobRequestsForTag(MobssJob.TAG);\n if (!jobRequests.isEmpty()) {\n return;\n }\n\n new JobRequest.Builder(MobssJob.TAG)\n .setPeriodic(AlarmManager.INTERVAL_DAY)\n .setUpdateCurrent(true) // cancel any preexisting job with the same tag while being scheduled.\n// .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED) // since the sync service needs network connection\n// .setRequirementsEnforced(true) // makes sure that all the requirements are met before starting the sync service, if at least one of the requirements is not met then the sync service will be rescheduled and not run\n .build()\n .schedule();\n }", "public interface Scheduler\n extends Lifecycle {\n\n /**\n * The key of a path property defining the direction in which a vehicle is entering a block when\n * it's taking the path.\n */\n String PROPKEY_BLOCK_ENTRY_DIRECTION = \"tcs:blockEntryDirection\";\n\n /**\n * Claims a set of resources for a vehicle.\n *\n * @param client The client claiming the resources.\n * @param resourceSequence The sequence of resources claimed.\n * @throws IllegalArgumentException If the given list of resources is empty, or if the client\n * already holds a claim.\n */\n void claim(@Nonnull Client client, @Nonnull List<Set<TCSResource<?>>> resourceSequence)\n throws IllegalArgumentException;\n\n /**\n * Notifies the scheduler that the given client has now reached the given index in its claimed\n * resource sequence, and that the client does not need the resources preceding the index in the\n * sequence, any more.\n *\n * @param client The client.\n * @param index The new index in the client's claimed resource sequence.\n * @throws IllegalArgumentException If the client does not hold a claim, or if the new index is\n * larger than a valid index in its claim's resource sequence, or if the new index is not larger\n * than the current index.\n */\n void updateProgressIndex(@Nonnull Client client, int index)\n throws IllegalArgumentException;\n\n /**\n * Unclaims a set of resources claimed by a vehicle.\n *\n * @param client The client unclaiming the resources.\n * @throws IllegalArgumentException If the given client does not hold a claim.\n */\n void unclaim(@Nonnull Client client)\n throws IllegalArgumentException;\n\n /**\n * Requests allocation of the given resources.\n * The client will be notified via callback if the allocation was successful or not.\n *\n * @param client The client requesting the resources.\n * @param resources The resources requested.\n * @throws IllegalArgumentException If the given client did not claim any resources, or if the\n * resources to be allocated are not in the set of currently claimed resources, or if the client\n * has already requested resources that have not yet been granted.\n */\n void allocate(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources)\n throws IllegalArgumentException;\n\n /**\n * Informs the scheduler that a set of resources are to be allocated for the given client\n * <em>immediately</em>, i.e. without blocking.\n * <p>\n * This method should only be called in urgent/emergency cases, for instance if a vehicle has been\n * moved to a different point manually, which has to be reflected by resource allocation in the\n * scheduler.\n * </p>\n * This method does not block, which means that it's safe to call it synchronously.\n *\n * @param client The client requesting the resources.\n * @param resources The resources requested.\n * @throws ResourceAllocationException If it's impossible to allocate the given set of resources\n * for the given client.\n */\n void allocateNow(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources)\n throws ResourceAllocationException;\n\n /**\n * Releases a set of resources allocated by a client.\n *\n * @param client The client releasing the resources.\n * @param resources The resources released. Any resources in the given set not allocated by the\n * given client are ignored.\n */\n void free(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources);\n\n /**\n * Releases all resources allocation by the given client.\n *\n * @param client The client.\n */\n void freeAll(@Nonnull Client client);\n\n /**\n * Returns all resource allocations as a map of client IDs to resources.\n *\n * @return All resource allocations as a map of client IDs to resources.\n */\n @Nonnull\n Map<String, Set<TCSResource<?>>> getAllocations();\n\n /**\n * Informs the scheduler that a set of resources was successfully prepared in order of allocating\n * them to a client.\n *\n * @param module The module a preparation was necessary for.\n * @param client The client that requested the preparation/allocation.\n * @param resources The resources that are now prepared for the client.\n */\n @ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default void preparationSuccessful(@Nonnull Module module,\n @Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n }\n\n /**\n * Defines callback methods for clients of the resource scheduler.\n */\n interface Client {\n\n /**\n * Returns an ID string for this client.\n * The returned string should be unique among all clients in the system.\n *\n * @return An unique ID string for this client.\n */\n @Nonnull\n String getId();\n\n /**\n * Called when resources have been reserved for this client.\n *\n * @param resources The resources reserved.\n * @return <code>true</code> if, and only if, this client accepts the resources allocated. A\n * return value of <code>false</code> indicates this client does not need the given resources\n * (any more), freeing them implicitly.\n */\n boolean allocationSuccessful(@Nonnull Set<TCSResource<?>> resources);\n\n /**\n * Called if it was impossible to allocate a requested set of resources for this client.\n *\n * @param resources The resources which could not be reserved.\n */\n void allocationFailed(@Nonnull Set<TCSResource<?>> resources);\n }\n\n /**\n * A scheduler module.\n */\n interface Module\n extends Lifecycle {\n\n /**\n * Sets a client's <i>total claim</i>.\n * With vehicles, this is equivalent to the route a vehicle plans to take.\n *\n * @param client The client the resource sequence is claimed by.\n * @param claim The resource sequence, i.e. total claim.\n */\n void claim(@Nonnull Client client, @Nonnull List<Set<TCSResource<?>>> claim);\n\n /**\n * Resets a client's <i>total claim</i>.\n *\n * @param client The client for which to reset the claim.\n */\n void unclaim(@Nonnull Client client);\n\n /**\n * Informs this module about a client's current allocation state.\n *\n * @param client The client.\n * @param alloc The client's currently allocated resources.\n * @param remainingClaim The client's remaining claim.\n */\n void setAllocationState(@Nonnull Client client,\n @Nonnull Set<TCSResource<?>> alloc,\n @Nonnull List<Set<TCSResource<?>>> remainingClaim);\n\n /**\n * Checks if the resulting system state is safe if the given set of resources\n * would be allocated by the given resource user.\n *\n * @param client The <code>ResourceUser</code> requesting resources set.\n * @param resources The requested resources.\n * @return <code>true</code> if this module thinks the given resources may be allocated for the\n * given client.\n */\n boolean mayAllocate(@Nonnull Client client, @Nonnull Set<TCSResource<?>> resources);\n\n /**\n * Lets this module prepare the given resources so they can be allocated to a client.\n *\n * @param client The client the resources are being prepared for.\n * @param resources The resources to be prepared.\n */\n @ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default void prepareAllocation(@Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n }\n\n /**\n * Checks if this module is done preparing the given resources for a client.\n *\n * @param client The client the resources are being prepared for.\n * @param resources The resources to be checked.\n * @return <code>true</code> if the resoruces are prepared for a client.\n */\n @ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default boolean hasPreparedAllocation(@Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n return true;\n }\n\n /**\n * Informs this module about resources being fully released by a client.\n *\n * @param client The client releasing the resources.\n * @param resources The resources being released.\n */\n @ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default void allocationReleased(@Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n }\n }\n}", "public Roysched() {\r\n initComponents();\r\n loadRoySched();\r\n }", "public void setOrgScheduleController(){\n setChanged();\n notifyObservers(orgScheduleController);\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "public void setUserScheduleController(){\n setChanged();\n notifyObservers(userScheduleController);\n }", "public void scheduleAlarm() {\n\n Calendar cal = Calendar.getInstance();\n Intent alarmIntent = new Intent(context, PeriodicTransactionService.class);\n alarmIntent.setAction(PeriodicTransactionService.ACTION);\n Bundle bundle = new Bundle();\n bundle.putInt(PeriodicTransactionService.USER_ID_PARAM, userId);\n alarmIntent.putExtras(bundle);\n PendingIntent pintent = PendingIntent.getService(context,\n MyAlarmManager.REQUEST_CODE,\n alarmIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 4 * 1000, pintent);\n }", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "public abstract boolean isScheduled();", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@Scheduled(cron = \"0 0 * * * *\")\n public void scheduleTaskYear() {\n\t\tlog.info(\"Cron Task :: Execution Time Every Hour of Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "private JobScheduler getScheduler(Context context) {\n if (scheduler == null) {\n scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n }\n\n return scheduler;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "@Scheduled(cron = \"${toil1.schedule1}\")\n\tpublic void toiL1Schedule1() {\n\t\tlog.info(\"Running toiL1Schedule1\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }", "@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public Cronometro() {\n initComponents();\n cronometro = new CronometroThread(this);\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }" ]
[ "0.6767479", "0.6500357", "0.64036477", "0.638021", "0.6300652", "0.62943375", "0.62599796", "0.62147367", "0.6153785", "0.60852313", "0.60736585", "0.6038793", "0.59620595", "0.59562254", "0.59537315", "0.59529334", "0.59310764", "0.5922181", "0.59166205", "0.5911155", "0.5905356", "0.5904645", "0.5904645", "0.5904645", "0.5904645", "0.5898188", "0.5893054", "0.58874136", "0.58708334", "0.58456296", "0.58274716", "0.58252776", "0.58236974", "0.5822667", "0.58215034", "0.58042973", "0.5766421", "0.57581073", "0.5755278", "0.57419544", "0.5740933", "0.5737795", "0.57327074", "0.572846", "0.5724248", "0.569752", "0.569752", "0.569752", "0.569752", "0.569752", "0.569752", "0.568741", "0.56857955", "0.56526095", "0.5640078", "0.56284684", "0.56258667", "0.5619119", "0.56155324", "0.5615454", "0.56080663", "0.55947644", "0.558797", "0.55757064", "0.55748826", "0.55748826", "0.55748826", "0.5548914", "0.5538329", "0.55363977", "0.553425", "0.5531102", "0.5523492", "0.5521258", "0.552115", "0.5515508", "0.55151415", "0.5508335", "0.55029786", "0.5502954", "0.55026233", "0.5491996", "0.54910326", "0.54881597", "0.5484297", "0.54749763", "0.5450446", "0.5449689", "0.54468066", "0.5438697", "0.543274", "0.5413474", "0.5401985", "0.5398904", "0.5396931", "0.5391782", "0.5390334", "0.5384193", "0.5376441", "0.53730106" ]
0.5652178
54
create an instance of sortedset
public static void main(String[] args) { SortedSet<String> ts = new TreeSet<String>(); // Adding elements into the TreeSet // using add() ts.add("Sravan"); ts.add("Ojaswi"); ts.add("Bobby"); ts.add("Rohith"); ts.add("Gnanesh"); ts.add("Devi2"); // Adding the duplicate // element ts.add("Sravan"); // Displaying the TreeSet System.out.println(ts); // Removing items from TreeSet // using remove() ts.remove("Ojaswi"); // Iterating over Tree set items System.out.println("Iterating over set:"); Iterator<String> i = ts.iterator(); while (i.hasNext()) System.out.println(i.next()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SortedSet() {\n\n }", "public static <T extends Comparable> Set<T> CreateSortedSet() {\n return new TreeSet<>();\n }", "<T extends Comparable> SortedSet<T> sorted(Set<T> in) {\n return new TreeSet<>(in);\n }", "public static <T extends Comparable> Set<T> AsSortedSet(@NonNull T... ts) {\n return Create_UnModifiableSet_By_InputElements(ContainerUtil.<T>CreateSortedSet(), ts);\n }", "public SortedSet(ISet<E> other) {\n\n }", "Set createSet();", "private EmptySortedSet() {\n }", "public OrderedSet (String setName) {\n initialize();\n name = setName;\n }", "public static void main(String[] args) {\n\n// SortedSet<Integer> set=new TreeSet<>();\n// set.add(45);\n// set.add(3);\n// set.add(12);\n// System.out.println(set);\n\n SortedSet<User> set=new TreeSet<>();\n set.add(new User(34,\"r\"));\n set.add(new User(4,\"j\"));\n set.add(new User(14,\"x\"));\n System.out.println(set);\n }", "public RegionSet(boolean sorted) {\n this(10, sorted);\n }", "public StringList createSorted() {\n StringList list = this.duplicate();\n list.sort();\n return list;\n }", "@Override // com.google.common.collect.ImmutableSortedSet\n public ImmutableSortedSet<C> createDescendingSet() {\n return new DescendingImmutableSortedSet(this);\n }", "public PointSET() {\n //s = new TreeSet<Point2D>(Point2D.X_ORDER);\n }", "public static <T> Set<T> CreateSortedSet(Comparator<T> comparator) {\n return new TreeSet<>(comparator);\n }", "public SortedList() {\n super();\n }", "public static Set orderedSet(Set set) {\n/* 236 */ return (Set)ListOrderedSet.decorate(set);\n/* */ }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public PortableSortedSet(Remote.Supplier<SortedSet<E>> supplier)\n {\n m_supplier = supplier;\n }", "public static <T> Set<T> AsSortedSet(@NonNull Comparator<T> comparator, @NonNull T... ts) {\n return Create_UnModifiableSet_By_InputElements(CreateSortedSet(comparator), ts);\n }", "public SortedList(){\n this(\"list\");\n }", "public static SortedSet typedSortedSet(SortedSet set, Class type) {\n/* 306 */ return TypedSortedSet.decorate(set, type);\n/* */ }", "public ImmutableSortedSet<C> headSetImpl(C toElement, boolean inclusive) {\n return subSet(Range.upTo(toElement, BoundType.forBoolean(inclusive)));\n }", "public Sort build() {\n return new Sort(this);\n }", "SortedSet<K> rB() {\n return new h(rL());\n }", "public SmartSorting() {\n this(DSL.name(\"smart_sorting\"), null);\n }", "public SyncedTreeSet() {\n _treeSet = new TreeSet<T>();\n }", "public RandomizedSet() {\n list = new HashSet<>();\n\n }", "public LinkedList<Integer> makeSorted() \n\t {\n\t\t return new LinkedList<Integer>();\n\t }", "public PointSET() {\n pointSet = new TreeSet<>();\n }", "private Sort() { }", "public static SortedSet synchronizedSortedSet(SortedSet set) {\n/* 263 */ return SynchronizedSortedSet.decorate(set);\n/* */ }", "public static void main(String[] args) {\r\n\t\tHashSet h1=new HashSet();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\th1.add(3);\r\n\t\th1.add(7); //Homogeous \r\n\t\th1.add(9);//hetrogeous\r\n\t\th1.add(10);\r\n\t\t\r\n\t\tTreeSet t1=new TreeSet(h1);\r\n\t\tt1.add(100);\r\n\t\tSystem.out.println(t1);\r\n\t}", "public HashSet(){\n this(17);\n }", "public SemanticVersionSet<V> build() {\n Collections.sort(instance.versions);\n return instance;\n }", "public RedisSortedSetCache() {\n cache = new HashMap<String, SortedSet<String>>();\n scores = new HashMap<String, Map<String, Double>>();\n }", "public interface SortedListFactory<T>\n{\n public SortedList<T> build(Comparator<? super T> order);\n}", "public HeapSet () {\r\n\t\tsuper ();\r\n\t}", "public MyHashSet() {\n \n }", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }", "default YList<T> sorted() {\n return YCollections.sortedCollection(this);\n }", "public RandomizedSet() {\n }", "public static void main(String[] args) {\n\n Set<Student> set = Sets.newTreeSet();\n Student s3 = new Student(3);\n Student s4 = new Student(4);\n Student s5 = new Student(5);\n Student s1 = new Student(1);\n Student s2 = new Student(2);\n List<Student> list = Lists.newArrayList();\n list.add(s4);\n list.add(s3);\n list.add(s5);\n list.add(s1);\n list.add(s2);\n\n list.sort(new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n return o1.getAge() - o2.getAge() < 0 ? 1 : -1;\n }\n });\n System.out.println(list);\n\n// s1.toString();\n// set.add(s3);\n// set.add(s4);\n// set.add(s5);\n// set.add(s1);\n// set.add(s2);\n// System.out.println(set);\n// for (Student s : set) {\n// System.out.println(s);\n// }\n\n\n }", "public static <T> HashSet<T> createHashSet() {\n \t\treturn new HashSet<T>();\n \t}", "public SortedSet<Date> getSelection()\n/* */ {\n/* 179 */ return new TreeSet(this.selectedDates);\n/* */ }", "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public static void main(String args[]) {\n\tSystem.out.println(\"--------------------------------------------------------------------\");\r\n\tSystem.out.println(\"Program 2.2: Sorting TreeSet when it has user-defined Objects/values\");\r\n\tTreeSet TS3 = new TreeSet();\r\n\tassign3And4_SubClass_Employee e31 = new assign3And4_SubClass_Employee(9, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e41 = new assign3And4_SubClass_Employee(4, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e51 = new assign3And4_SubClass_Employee(2, \"Mamta\", 200);\r\n\tassign3And4_SubClass_Employee e61 = new assign3And4_SubClass_Employee(2, \"Mamta\", 200);\r\n\tTS3.add(e31);\r\n\tTS3.add(e41);\r\n\tTS3.add(e51);\r\n\tTS3.add(e61);\r\n\tSystem.out.println(\"Sorted TreeSet TS3 is : \"+TS3); // sort then in Asc order + it doesnt allow duplicate values.\r\n\t}", "HSet entrySet();", "public LinkedHashSet() {\n this(10);\n }", "public RandomizedSet() {\n set = new HashMap<>();\n list = new ArrayList<>();\n }", "BSet createBSet();", "public ImmutableSortedSet<C> subSetImpl(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) {\n if (fromInclusive || toInclusive || Range.compareOrThrow(fromElement, toElement) != 0) {\n return subSet(Range.range(fromElement, BoundType.forBoolean(fromInclusive), toElement, BoundType.forBoolean(toInclusive)));\n }\n return ImmutableSortedSet.of();\n }", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "public SortOrdering() {\n\t\tthis( new String[0] );\n\t}", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public OpenHashSet() {\n this(DEFAULT_HIGHER_CAPACITY, DEFAULT_LOWER_CAPACITY);\n }", "public static SortedSet predicatedSortedSet(SortedSet set, Predicate predicate) {\n/* 293 */ return PredicatedSortedSet.decorate(set, predicate);\n/* */ }", "@SuppressWarnings(\"unchecked\")\n \tpublic static <T> Set<T> createConcurrentHashSet() {\n \t\treturn (Set<T>) Collections.synchronizedSet(CollectionFactory.createHashSet());\n \t}", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "indexSet createindexSet();", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "public interface OrderedSet<T> {\r\n\r\n\tpublic void put(T key);\r\n\t\r\n\tpublic int rank(T key);\r\n\t\r\n\tpublic boolean contains(T key);\r\n\t\r\n\tpublic T select(int rank);\r\n\t\r\n\tpublic T[] keys();\r\n\t\r\n\tpublic T[] keys(int lo,int hi);\r\n\r\n\tpublic T[] keys(T lo, T hi);\r\n\t\r\n\t//(key-1)find the predecessor\r\n\tpublic T floor(T key);\r\n\t\r\n\t//(key+1)find the successor\r\n\tpublic T ceiling(T key);\r\n}", "public ListSet() {\n lists = new TernarySearchTree<>();\n }", "public static void main(String[] args) {\n\t\tList l1=new ArrayList();\n\t\tl1.add(0, \"Gyan\");\n\t\tl1.add(1, \"Ranjan\");\n\t\tl1.add(2, \"Mahapatra\");\n\t\tSystem.out.println(l1);\n\t\tl1.add(2,\"xyz\");\n\t\tSystem.out.println(l1 + \" \" +l1.get(2));\nint a[]=new int[8];\nfor(int i=0;i<8;i++){\n\ta[i]=i;\n}\n//for(int j:a)\n//\tSystem.out.println(j);\nList l2=new ArrayList();\nl2.add(\"Sonit\");\nl2.add(\"Dora\");\nl2.add(\"Sourav\");\n/*System.out.println(l2);\nl2.remove(1);*/\nSystem.out.println(l2);\nSet s=new HashSet();\ns.add(\"seta\");\ns.add(\"setc\");\ns.add(\"setb\");\nSystem.out.println(s);\nCollections.sort((List) s);\nSystem.out.println(s);\n\nSet s1=new TreeSet(s);\nSystem.out.println(s1.size());\nSystem.out.println(\"Gyan\");\n\t}", "public SortEvent (Set<T> source, int index0, int index1) {\r\n\t\tsuper (source);\r\n\t\t_set = source;\r\n\t\t_index0 = index0;\r\n\t\t_index1 = index1;\r\n\t}", "public OrderedSet (List l) {\n initialize();\n for ( ; l!=null; l=l.getNext())\n addLast(l.getInfo());\n }", "public static void main(String[] args) {\n\t\tTreeSet<Integer> numset = new TreeSet<Integer>();//stored in order\n\t\tnumset.add(10);\n\t\tnumset.add(40); //string buffer is not implementing comparable class so it cannot be used in tree set\n\t\tnumset.add(30);\n\t\tnumset.add(20);\n\t\tnumset.add(10);\n\t\tSystem.out.println(numset);\n\t\tSystem.out.println(numset.headSet(40));//gives values lesser than it\n\t\tSystem.out.println(numset.tailSet(10));//gives equal or greater than it\n\t\tSystem.out.println(numset.subSet(10, 30));//gives starting values from starting and value before last element\n\t\tSortedSet<Integer> set2= new TreeSet<Integer>(); //store in sorted set\n\t\t\n\t\tset2=numset.subSet(10, 30);\n\t\tSystem.out.println(\"subset is \"+set2);\n\t\tSystem.out.println(numset.comparator());//returns null if values are already in order\n\t\tSystem.out.println(numset.higher(10));//gives value higher than this\n\t\tSystem.out.println(numset.lower(30));//gives value lower than this\n\t\tSystem.out.println(numset.descendingSet());\n\t\t\n\t\tIterator<Integer> iterator=numset.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tIterator<Integer> iterator2=numset.descendingIterator();\n\t\twhile(iterator2.hasNext()) {\n\t\t\tSystem.out.println(iterator2.next());\n\t\t}\n\t}", "public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> al=new ArrayList<>();\n\t\tal.add(34);\n\t\tal.add(64);\n\t\tal.add(13);\n\t\tal.add(34);\n\t\tal.add(98);\n\t\tal.add(78);\n\t\tSystem.out.println(al.size());\n\t\tSet<Integer> s=new LinkedHashSet<Integer>(al);\n\t\tSystem.out.println(s);\n\t\tCollections.sort(al);\n\t\tSystem.out.println(al);\n\t}", "public MyHashSet() {\n hset = new boolean[bucket][]; //get the second array size only if it is required : space conservation if possible\n }", "public RandomizedSet() {\n\n\n sub =new ArrayList<Integer>();\n hm=new HashMap<Integer,Integer>();\n rand =new Random();\n\n }", "public static void main( String[] args )\n {\n OrderedSet set = new OrderedSet( true );\n set.add( new Integer( 6 ) );\n set.add( new Integer( 1 ) );\n set.add( new Integer( 4 ) );\n set.add( new Integer( 1 ) );\n System.out.println( set );\n System.out.println();\n\n System.out.println( \"Enumerate the OrderedSet\" );\n Enumeration e = set.elements();\n while ( e.hasMoreElements() )\n System.out.println( e.nextElement() );\n System.out.println();\n\n System.out.println( \"Iterate through the OrderedSet\" );\n for ( OrderedSetIterator i = set.begin(); !i.atEnd(); i.advance() )\n System.out.println( i.get() );\n System.out.println();\n\n System.out.println( \"Show that duplicates can be added.\" );\n set.add( new Integer( 8 ) );\n System.out.println( \"set = \" + set );\n\n set.add( new Integer( 4 ) );\n System.out.println( \"set = \" + set );\n }", "public SortObj() {\n super();\n }", "public HashMultiSet() {\n\t\thMap = new HashMap<T, Integer>();\n\t\tsize = 0;\n\t}", "public ClosedHashSet(){\r\n super();\r\n buildHashSet(capacity(), hashSet);\r\n }", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "public static SortedSet transformedSortedSet(SortedSet set, Transformer transformer) {\n/* 322 */ return TransformedSortedSet.decorate(set, transformer);\n/* */ }", "public MyHashSet() {\n nodes = new Node[Max_Size];\n }", "static Set createEmpty() {\n return new EmptySet();\n }", "public SortedSet<K> keySet() {\n SortedSet<K> sortedSet = this.PI;\n if (sortedSet != null) {\n return sortedSet;\n }\n sortedSet = rB();\n this.PI = sortedSet;\n return sortedSet;\n }", "public OpenHashSet() {\n super();\n linkedListStrings = new LinkedListString[INITIAL_CAPACITY];\n\n\n }", "public static Set fromAnotherImpl(SetI anotherImpl) {\n int[] anotherArr = Set.intArrayFromIterable(anotherImpl);\n Arrays.sort(anotherArr);\n return new Set(anotherArr, anotherArr.length);\n }", "public SortedList(){\r\n int result = find(0);\r\n for(int i=result; i<list.length;i++)\r\n list[i] = -1;\r\n }", "@Test\r\n public void anotherConstructorWorks() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>(Comparator.reverseOrder());\r\n assertTrue(check.add(1));\r\n assertTrue(check.add(2));\r\n assertFalse(check.add(2));\r\n assertArrayEquals(new Integer[]{2, 1}, check.toArray());\r\n assertTrue(check.add(4));\r\n assertTrue(check.remove(2));\r\n assertFalse(check.remove(43));\r\n assertArrayEquals(new Integer[]{4, 1}, check.toArray());\r\n }", "protected SafeHashMap.KeySet instantiateKeySet()\n {\n return new KeySet();\n }", "public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }", "public Sort()\n {\n\tstrack = new LinkedList<>();\n }", "public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }", "public static <T> Set<T> AsSet(@NonNull T... ts) {\n return Create_UnModifiableSet_By_InputElements(new HashSet<T>(), ts);\n }", "public PointSET() {\n mPoints = new TreeSet<Point2D>();\n }", "public MergeSort(){\r\n \r\n }", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "protected SafeHashMap.EntrySet instantiateEntrySet()\n {\n return new EntrySet();\n }", "private Set() {\n this(\"<Set>\", null, null);\n }", "public RandomizedSet() {\n map = new HashMap<>();\n }", "public static SortedSet unmodifiableSortedSet(SortedSet set) {\n/* 276 */ return UnmodifiableSortedSet.decorate(set);\n/* */ }" ]
[ "0.75503975", "0.7147497", "0.6860912", "0.6625606", "0.651644", "0.64692265", "0.6378598", "0.63118505", "0.6224034", "0.6136638", "0.6123576", "0.6080856", "0.60136086", "0.5996624", "0.5967858", "0.595499", "0.59376884", "0.5937113", "0.5903525", "0.5893018", "0.5883263", "0.5880598", "0.5852225", "0.58287084", "0.58172417", "0.58015174", "0.57671005", "0.57660097", "0.5762032", "0.5755898", "0.56958574", "0.56957644", "0.568605", "0.56724167", "0.56690943", "0.5650466", "0.56503713", "0.5617568", "0.56061506", "0.56024224", "0.55996895", "0.5598086", "0.55776805", "0.5575535", "0.5561925", "0.55610186", "0.55595624", "0.55588746", "0.5546156", "0.5544662", "0.5540274", "0.55294764", "0.55214363", "0.55184716", "0.5514084", "0.55092776", "0.5502417", "0.5494778", "0.5492105", "0.54909843", "0.5490129", "0.548549", "0.54759896", "0.5467859", "0.5465749", "0.5460034", "0.5452758", "0.5447621", "0.5442891", "0.54395366", "0.54308814", "0.5430804", "0.54245466", "0.54122615", "0.5405144", "0.5403458", "0.53898", "0.5386469", "0.53818136", "0.53815037", "0.5369096", "0.53574044", "0.5341458", "0.5338888", "0.5336609", "0.53333116", "0.53325796", "0.5323341", "0.530597", "0.5300949", "0.5289008", "0.5288753", "0.5285455", "0.5285446", "0.5275756", "0.5272535", "0.5272105", "0.5271191", "0.5264371", "0.52602714" ]
0.5500204
57
Main start the client from the command line.
public static void main(String[] args) throws Exception { CustomHeaderClient client = new CustomHeaderClient("localhost", 50051); try { /* Access a service running on the local machine on port 50051 */ String user = "world"; if (args.length > 0) { user = args[0]; /* Use the arg as the name to greet if provided */ } client.greet(user); } finally { client.shutdown(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n new ClientExternal(args).start();\n }", "public static void main(String[] args) {\n Client client = new Client();\n client.start();\n }", "public static void main(String[] args){\r\n\t\tnew Client();\r\n\t}", "public static void main(String[] args) {\n (new AbaloneClient()).start();\n }", "public static void main(String[] args) {\n try {\n new Client().run(args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main (String[] args) {\r\n\t\tClient client = new Client(args);\r\n\t\tclient.run();\r\n\t}", "public static void main(String[] args) {\n new ClientMain();\n\n }", "public static void main(String[] argv) {\n try {\n Client c = new Client(argv);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args)throws IOException{\n new Client(\"localhost\", 12000);\n }", "public static void main(String[] args)\n {\n Client client = new Client(args[0], args[1], args[2]);\n }", "public static void main(String[] args){\n try {\n GameClient.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\r\n\t\tclientSample();\r\n\t}", "public static void main(String[] args) {\n//\t\tnew CluelessClient();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tRuntime runtime =Runtime.instance();\n\t\t\tProfileImpl profileImpl =new ProfileImpl(false);\n\t\t\t\n\t\t\tprofileImpl.setParameter(ProfileImpl.MAIN_HOST, \"localhost\");\n\t\t\tAgentContainer clientContainer =runtime.createAgentContainer(profileImpl);\n\t\t\t\n\t\t\tAgentController clientController =clientContainer.createNewAgent(\"client\", agents.Client.class.getName(), new Object [] {});\n\t\t\n\t\t\tclientController.start();\n\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\t\t\t\t\t\n\t\t\tTerminal terminal= new Terminal(\"Client\");\t\t\n\t\t\t(new Client(terminal, DEFAULT_DST_NODE, DEFAULT_DST_PORT, DEFAULT_SRC_PORT)).start();\n\t\t\tterminal.println(\"Program completed\");\n\t\t} catch(java.lang.Exception e) {e.printStackTrace();}\n\t}", "public static void main(String[] args){\n\n GameClientImpl client = new GameClientImpl();\n client.startConnection(\"127.0.0.1\", ProtocolConfiguration.PORT);\n\n }", "public static void main(String[] args) {\n System.out.println(\"xxxx\");\n Client.runFactory();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to the FileTransfer Client! \\n Starting...\");\n\t\t\n\t\tint port; \n\t\t\n\t\tif (args.length < 0 || args.length > 1) {\n\t\t\tSystem.out.println(\"Syntax: FileTranferClient <port>\");\n\t\t\treturn;\n\t\t} else if (args.length == 1) {\n\t\t\tport = Integer.parseInt(args[0]);\n\t\t\tSystem.out.println(\"Using specified client port \" + port + \"...\");\n\t\t} else {\n\t\t\tport = FileTransferProtocol.DEFAULT_CLIENT_PORT;\n\t\t\tSystem.out.println(\"Using default client port \" + port + \"...\");\n\t\t}\n\t\t\t\n\t\tFileTransferClient client = new FileTransferClient(port);\n\t\tSystem.out.println(\"Starting client...\");\n\t}", "public static void main(String[] args) {\n\t\tJClient test = new JClient();\n\t\ttest.initialize();\n\t}", "public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}", "public static void main(String[] args) {\n if(args.length != 2) {\n // Blabla throw smth\n }\n Optional<LoginTemplate> loginTemplateOpt = ClientOperations.loginTemplateFromFile(args[0]);\n if(!loginTemplateOpt.isPresent()) {\n Constants.logToStdOut(\"Startup interrupted.\");\n throw new IllegalStateException(\"LoginTemplate not present.\");\n }\n Optional<IDiscordClient> clientOpt = ClientOperations.clientFromLoginTemplate(loginTemplateOpt.get());\n if(!clientOpt.isPresent()) {\n Constants.logToStdOut((\"Startup interrupted.\"));\n throw new IllegalStateException(\"IDiscordClient not present.\");\n }\n Optional<ClientTemplate> mainTemplateOpt = ClientOperations.clientTemplateFromFile(args[1]);\n if(!mainTemplateOpt.isPresent()) {\n Constants.logToStdOut((\"Startup interrupted.\"));\n throw new IllegalStateException(\"ClientTemplate not present.\");\n }\n IDiscordClient mainClient = clientOpt.get();\n /*\n * Main BI\n */\n Optional<IDiscordClient> listeningClient = ClientOperations.withNewListener(mainClient, new MessageGuard());\n Constants.logToStdOut(\"Successful launch!\");\n\n }", "public static void main(String[] args) {\n\t\tnew RemoteInvocationClient().go(); \n\t}", "public static void main(String[] args)\n {\n Console con = new Console();\n MasterAddress master_to_connect;\n master_to_connect = parseArgs(args);\n if (master_to_connect == null)\n {\n printUsageAndExit(null);\n }\n else\n {\n Config.setMasterAddress(master_to_connect);\n }\n con.start(master_to_connect);\n }", "public static void main(String[] args)\n\t{\n\t\tnew ClientGUI();\n\t}", "public static void main(String[] strings)\r\n {\r\n new Client().start();\r\n }", "public static void main(String[] args) {\n BasicConfigurator.configure();\n\n if (args.length < 1) {\n log.error(\"Please specify port number for Echo service\");\n System.exit(1);\n }\n\n EchoServiceLauncher echoService = new EchoServiceLauncher();\n echoService.launch( Integer.valueOf(args[0]) );\n }", "public static void main (String[] args) throws Exception{\n try {\n parse_args(args);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n if( is_server ){\n run_server();\n } else {\n run_client();\n }\n\n }", "public static void main(String[] args)\n {\n \t\n String host;\n String menuSelection; \n \tInputStreamReader input = new InputStreamReader(System.in) ;\n \tBufferedReader inputBuff = new BufferedReader(input) ; \t\n \t\n //check for host and throw error if not provided\n if(args.length!=1) {\n \tSystem.out.println(\"Application error: command line arguement missing\\n Usage: \\n \" +\n \t\t\t\"java client <IPAddress> or \\n java client <hostname>\");\n \treturn;\n }\n \n //System.out.println(\"arg[0] \"+args[0]);\n host = args[0]; \n System.out.println(\"client starting\");\n ctp = new CTP(host);\n \t\n \twhile(true) {\n \t\tDisplayMainMenu();\n \t\ttry {\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\tif(menuSelection.equals(\"1\"))\n\t \t\t\tSendMessage();\n\t \t\telse if(menuSelection.equals(\"2\"))\n\t \t\t\tReadMessage();\n\t \t\telse if(menuSelection.equals(\"3\"))\n\t \t\t\tRegressionTest();\n\t \t\tSystem.out.println(\"Press return key to continue\");\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\t//roll screen\n\t \t\tfor(int i=0;i<6;i++)\n\t \t\t\tSystem.out.print(\"\\n\"); \t\n\t \t\t\n\t \t}\n \t\tcatch (IOException err) {\n \t\t\tSystem.out.println(\"Error reading line\");\t\n \t\t}\n \t\t\n \t}//end while loop\n }", "public static void main(String[] args) {\n\t\tServer s = new Server(args);\n\t\ttry {\n\t\t\ts.runServer();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Cannot accept client\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(String[] args)\r\n\t{\r\n\t\ttry {\r\n\t\t\t// read the command line options and run the client\r\n\t\t\tfinal Map options = new HashMap();\r\n\t\t\tif (parseOptions(args, options))\r\n\t\t\t\tnew PropClient().run(options);\r\n\t\t}\r\n\t\tcatch (final Throwable t) {\r\n\t\t\tif (t.getMessage() != null)\r\n\t\t\t\tSystem.out.println(t.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tMainClient mainClient = new MainClient();\n\t\tmainClient.startClient();\n\t\tlog.info(\"Client started on port: \" + JMCConstants.JMC_PORT_A);\n\n\t\ttry {\n\t\t\tmainClient.listen();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage() + \" :: \" + Level.SEVERE);\n\t\t\tmainClient.serverWriter.close();\n\t\t\tmainClient.serverReader.close();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tClient client = new Client();\n\t\tClientMenu cm = new ClientMenu(\"localhost\", 7966, client);\n\t\tclient.addObserver(cm);\n\t}", "public static void main(final String[] args) throws IOException {\n if (args.length != 2) {\n GEN.fatal(\"usage: java -cp <classpath> chat.client.Main\" + \" <machine> <port>\");\n return;\n }\n client = new Client(args[0], Integer.parseInt(args[1]));\n client.startThreadReadMessagesFromNetwork();\n BufferedReader bufin = new BufferedReader(\n new InputStreamReader(System.in, Charset.defaultCharset()));\n while (!Thread.interrupted()) {\n String consoleMsg = null;\n consoleMsg = bufin.readLine();\n if (consoleMsg != null) {\n client.treatConsoleInput(consoleMsg);\n }\n }\n }", "public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n SampleCRUDQuickstart p = new SampleCRUDQuickstart();\n\n try {\n logger.info(\"Starting SYNC main\");\n p.getStartedDemo();\n logger.info(\"Demo complete, please hold while resources are released\");\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(String.format(\"Cosmos getStarted failed with %s\", e));\n } finally {\n logger.info(\"Closing the client\");\n p.shutdown();\n }\n }", "public static void main(String[] args) throws IOException\n {\n list = new String[] {\"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\"};\n new ClientConnection(\"10.13.103.53\", list);\n }", "public static void main(final String[] args) throws IOException {\n startServer();\n }", "public static void main(String [] args){\n\t\t\n\t\tif(args.length != 2){\n\t\t\tSystem.out.println(\"You need a hostname and a port number to connect your client to a server\");\n\t\t}\n\t\telse{\n\t\t\tString serverName = args[0];\n\t\t\tint port = Integer.parseInt(args[1]);\n\t\t\tChatClient client = new ChatClient(serverName, port);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception\n\t{\n\t\tSocket theServer = new Socket(\"localhost\",1234);\n\t\t//messages.add(\"Begin\");\n\t\tClientCommunicationProtocol ccp = new ClientCommunicationProtocol(theServer);\n\t\tccp.startCommunication();\n\t}", "public static void main(String[] args)\n {\n\n DemoCliApp demo = new DemoCliApp();\n demo.run();\n }", "public static void main(String[] args)\n {\n MessageHandler runner = new MessageHandler();\n runner.processArgs(args);\n \n String command = runner.getConfiguration(\"command\");\n String host = runner.getConfiguration(\"host\");\n int port = runner.getConfiguration().getInt(\"port\");\n \n boolean isStart = false;\n boolean isRestart = false;\n boolean isStatus = false;\n \n if ( true ) {\n if (command.equalsIgnoreCase(\"shutdown\")){\n command = SHUTDOWN;\n }\n else if(command.equalsIgnoreCase(\"status\")) {\n command = STATUS;\n isStatus = true;\n } else if(command.equalsIgnoreCase(\"restart\")) {\n command = RESTART;\n }\n else if( command.equalsIgnoreCase(\"start\") ){\n command = START;\n isStart = true;\n }\n }\n \n if( port > -1 ) {\n if( !isStart ){\n boolean needsStarted = false;\n \n try {\n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n if( isStatus ){\n needsStarted = true;\n }\n }\n \n if( isRestart ){\n try {\n command = START + \"@\" + SECRETCODE;\n \n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n }\n }\n\n if( needsStarted ){\n runner.startServer(port);\n }\n else {\n System.exit(0);\n }\n }\n else {\n runner.startServer(port);\n }\n }\n }", "public static void main(String[] args) {\n try {\n Thread t = new GreetingServer(4445);\n System.out.println(\"started\");\n t.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\r\n\t\tCarcassonneServer server = new CarcassonneServer(\r\n\t\t\t\tCarcassonneServer.BOTH, 12345);\r\n\t\tserver.start();\r\n\t}", "public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }", "public static void main(String[] args) {\n\t\t/* DONE: Launch ChatClient from this main method\n\t\t *\n\t\t * Helpful link:\n\t\t * https://docs.oracle.com/javase/8/javafx/api/javafx/application/Application.html#launch-java.lang.Class-java.lang.String...-\n\t\t */\n\t\tApplication.launch(ChatClient.class, args);\n\t}", "public static void main(String[] args) {\n if (args.length != 3) {\n System.out.println(\"Usage java Client <membership> <id> <maxNoOfRequests>\");\n return;\n }\n maxNoOfRequests = Integer.parseInt(args[2]);\n RequestPlayerUtils.initProperties(null);\n\n System.out.println(\"The server is \" + RequestPlayerUtils.serverAddr\n + \":\" + RequestPlayerUtils.serverPort);\n System.out.println(\"Starting request player with \"\n + RequestPlayerUtils.nbClients + \" clients and file \"\n + RequestPlayerUtils.requestsFile);\n\n new Client(args[0], Integer.parseInt(args[1]));\n }", "public Client(String[] argv) throws IOException {\n handleArgs(argv);\n }", "public static void main(String[] args) {\n\t\tnew Servidor();\n\t}", "public static void main(String [] args) {\r\n \r\n new CardsClient();\r\n \r\n }", "public static void main(String[] args) {\n\t\tChatClientCommandLine arguments = CommandLine.populateCommand(new ChatClientCommandLine(), args);\n\t\n\t\tif(arguments.usageHelpRequested)\t{\n\t\t\tCommandLine.usage(arguments, System.out);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tChatClient chatClient = new ChatClient();\n\t\tif(arguments.clientId != null)\t{\n\t\t\tchatClient.assignClientId(arguments.clientId);\n\t\t}\n\n\t\tPacket packet = new Packet(\"eded\", Packet.PacketType.DEV);\n\t\tchatClient.sendPacket(packet);\n\t\t//chatClient.closeConnection();\n\t}", "public static void main(String[] args) {\n\n new AnaTestClient().invoke();\n }", "public static void main(String[] args) throws InterruptedException {\n Constants.updateConstants(args, Constants.NodeType.ChatClient);\n\n GeneralUtils.promptUserOptions(args, Constants.NodeType.ChatClient, \"-cca\", \"-ccp\", \"-user\", \"-name\");\n\n ClientNetwork client = ClientUtils.initNetwork();\n Data db = new Data();\n\n MainChatWindowController clientInterface = ClientUtils.setupClientGUI(args);\n clientInterface.setOnClose(event -> {\n if(!client.isNetworkClosed() && !client.isConnectionLost()) {\n client.logOff();\n }\n client.setNetworkClosed(true);\n });\n ClientUtils.initInterface(clientInterface, client, db);\n\n }", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tSystem.out.printf(\"Received %d arguments%n\", args.length);\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tSystem.out.printf(\"arg[%d] = %s%n\", i, args[i]);\n\t\t}\n\n\t\t// check arguments\n\t\tif (args.length < 1) {\n\t\t\tSystem.err.println(\"Argument(s) missing!\");\n\t\t\tSystem.err.printf(\"Usage: java %s port%n\", PasServerApp.class.getName());\n\t\t\treturn;\n\t\t}\n\n // parse port\n int port = Integer.parseInt(args[0]);\n\n\n Database database = new Database();\n BindableService service1 = new PasServiceImpl(database);\n\n // bind this server to a port and to any grpc services you want\n Server server = ServerBuilder\n .forPort(port)\n .addService(service1)\n .build();\n\n // start server\n server.start();\n System.out.println(\"Server started on port \" + port);\n server.awaitTermination();\n }", "public static void main(String[] args) {\n\t\tnew Server();\n\t}", "public static void main(String[] args) {\n Application.launch(IndieAirwaysClient.class, (java.lang.String[]) null);\n }", "public static void main(String[] args) {\r\n ChatServer server = new ChatServer(portNumber);\r\n server.startServer();\r\n }", "public static void main(String[] args) {\n\t\tClient1 win = new Client1();\n\t\twin.performCallback(3);\n\n\t}", "public static void main (String[] args)\n {\n com.samskivert.util.Log.setLogProvider(new LoggingLogProvider());\n OneLineLogFormatter.configureDefaultHandler();\n\n // create our editor server which we're going to run in the same\n // JVM with the client\n EditorServer server = new EditorServer();\n try {\n server.init();\n } catch (Exception e) {\n log.log(Level.WARNING, \"Unable to initialize server.\", e);\n }\n\n // let the BugsClientController know we're in editor mode\n System.setProperty(\"editor\", \"true\");\n\n // now we create the client: we aren't actually logging in so we\n // don't need or want a server or username or whatnot\n final EditorApp app = new EditorApp();\n start(app, \"localhost\", -1, null, null);\n\n // post a runnable that will get executed after everything is\n // initialized and happy\n EditorServer.omgr.postRunnable(new Runnable() {\n public void run () {\n app.logon();\n }\n });\n }", "public static void main(String[] args){\n\t\tif (args.length != 1) {\n\t\t\tSystem.out.println(\"Usage: java EchoServer <EchoServer port>\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tEchoServerMultiThreaded echoServerMultiThreaded = new EchoServerMultiThreaded();\n\t\techoServerMultiThreaded.start(args);\n\t}", "public static void main(String[] args)\n {\n new StartMain(args).go();\n }", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "static public void main ( String args[] ) throws UnknownHostException, ClassNotFoundException, IOException\n {\n if (args.length < 2) {\n System.err.println( \"Usage: java MessageClient <host> <port>\" ); \n return;\n } \n // parse the hostname and the port number from the passed parameters\n String hostname = args[0]; \n int port = Integer.parseInt( args[1] ); \n\n // create a new MessageClient and pass parsed hostname and port as parameters\n new MessageClient ( hostname, port ) ; \n }", "public static void main(String[] args)\n throws IOException, InterruptedException, TmcCoreException {\n\n TmcCli cli = new TmcCli();\n cli.startServer();\n }", "public static void main(String[] args) {\n\t\tServer.Serv();\n\t}", "void startClient(String name, Config.ClientConfig config);", "public static void main(String[] args)\n\t{\n\t\tnew Server().runServer();\n\t}", "public static void main(String[] args) {\n if (args.length != 2) System.err.println(\"Usage: java PingClient hostname port\");\n else {\n try {\n int port = Integer.parseInt(args[1]);\n new Thread(new PingClient(args[0], port)).start();\n } catch (NumberFormatException ex) { System.err.println(\"ERR - arg 2\"); }\n }\n }", "public static void main(String[] args){\n\t\tClientGui gui = new ClientGui();\n\t\tString address = args[0];\n\t\tgui.address=address;\n\t\tint port = Integer.parseInt(args[1]);\n\t\tgui.port = port;\n\t\t//unable to connect?\n\t\treturn ; \n\n\t}", "public static void main(String[] args) {\n\t\tEndpoint.publish(\"http://127.0.0.1:1111/cs\", new Calculator());\r\n\t\tSystem.out.println(\"Server has started\");\r\n\r\n\t}", "public static void main(String[] args) {\n // construct a new SuperPeer object\n SuperPeer superPeer = new SuperPeer(args[0], new File(args[1]));\n superPeer.initialize().listen();\n }", "public static void main(String[] args) {\r\n\t\t// create a server object and start it\r\n\t\tServer server = new Server(1500);\r\n\t\tserver.start();\r\n\t}", "public static void main(String[] args) {\n loadServer();\n\n }", "public static void main(String [] args) throws IOException {\n DateClient client = new DateClient (\"localhost\", 9090);\n client.communicate();\n\n }", "public static void main(String args[]){\r\n\t\tnew ChatServer();\r\n\t}", "public static void main(final String args[]) {\n\t\t// Override the main thread name\n\t\tThread.currentThread().setName(\"main\");\n\n\t\t// Load client properties\n\t\ttry {\n\t\t\tloadConfig();\n\t\t} catch (ConfigurationException ce) {\n\t\t\tlogger.error(\"Cloud not load client configurations.\\nError: {}\", new Object[] { ce.getMessage() });\n\t\t}\n\n\t\t// create the command line parser\n\t\tfinal CommandLineParser parser = new PosixParser();\n\n\t\t// create the CLI options\n\t\tfinal Options options = createCliOptions();\n\n\t\t// parse the command line arguments\n\t\ttry {\n\t\t\t// parse the command line arguments\n\t\t\tfinal CommandLine line = parser.parse(options, args);\n\n\t\t\t// get the path(s) to corpus directories and files\n\t\t\tfinal List<String> argList = line.getArgList();\n\n\t\t\t// check for mandatory arguments or the help flag\n\t\t\tif (line.hasOption(\"help\")) {\n\t\t\t\tprintHelpMessage(options);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (line.hasOption(\"manifest\")) {\n\t\t\t\tif (line.getOptionValue(\"manifest\") == null || line.getOptionValue(\"manifest\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\n\t\t\t\tevaluateManifest(line.getOptionValue(\"manifest\"));\n\n\t\t\t} else if (line.hasOption(\"list-paas\")) {\n\t\t\t\tlistPaasProviders();\n\t\t\t} else if (line.hasOption(\"start-app\")) {\n\t\t\t\tif (line.getOptionValue(\"start-app\") == null || line.getOptionValue(\"start-app\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\n\t\t\t\tstartApp(line.getOptionValue(\"start-app\"));\n\t\t\t} else if (line.hasOption(\"stop-app\")) {\n\t\t\t\tif (line.getOptionValue(\"stop-app\") == null || line.getOptionValue(\"stop-app\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\n\t\t\t\tstopApp(line.getOptionValue(\"stop-app\"));\n\t\t\t} else if (line.hasOption(\"restart-app\")) {\n\t\t\t\tif (line.getOptionValue(\"restart-app\") == null || line.getOptionValue(\"restart-app\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\n\t\t\t\trestartApp(line.getOptionValue(\"restart-app\"));\n\t\t\t} else if (line.hasOption(\"delete-app\")) {\n\t\t\t\tif (line.getOptionValue(\"delete-app\") == null || line.getOptionValue(\"delete-app\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\n\t\t\t\tdeleteApp(line.getOptionValue(\"delete-app\"));\n\t\t\t} else if (line.hasOption(\"deploy-app\")) {\n\t\t\t\tif (argList.size() != 3) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t\tthrow new MissingArgumentException(\"Argument malformated. Expected args: <filePath> <appID> <PaaS>\");\n\t\t\t\t}\n\n\t\t\t\tdeployApp(argList.get(0), argList.get(1), argList.get(2));\n\t\t\t\t\n\t\t\t} else if (line.hasOption(\"create-app\")) {\n\t\t\t\tif (line.getOptionValue(\"create-app\") == null || line.getOptionValue(\"create-app\").isEmpty()) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t}\n\t\t\t\tcreateApp(line.getOptionValue(\"create-app\"));\n\t\t\t\t\n\t\t\t} else if (line.hasOption(\"status-app\")) {\n\t\t\t\tif (argList.size() != 1) {\n\t\t\t\t\tprintHelpMessage(options);\n\t\t\t\t\tthrow new MissingArgumentException(\"Argument malformated. Expected args: <appID>\");\n\t\t\t\t}\n\n\t\t\t\tstatusApp(argList.get(0));\n\t\t\t} else {\n\t\t\t\tprintHelpMessage(options);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.printf(\"Unexpected exception: %s\\n\", e.getMessage());\n\t\t\te.printStackTrace(System.err);\n\t\t}\n\n\t}", "public static void main(String[] args) {\r\n\r\n if (args.length > 0 && args[0] != null && args[0].equals(\"server\")) {\r\n ServerCore serverCore = new ServerCore();\r\n new ServerNetworkCore(serverCore, serverCore.getReceiveQueue());\r\n new Thread(serverCore).start();\r\n } else {\r\n ClientCore clientCore = new ClientGameCore();\r\n GUICore gui =\r\n new GUICore(clientCore.getComponentManager(), clientCore.getEntityManager(), clientCore.getEventManager(),\r\n clientCore.getTimer());\r\n clientCore.setGUI(gui);\r\n ClientNetworkCore network =\r\n new ClientNetworkCore(clientCore.getNetworkSendQueue(), clientCore.getNetworkReceiveQueue(), null);\r\n new Thread(clientCore).start();\r\n new Thread(network).start();\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n\t\tnew DashBoardServer().start();\n\t}", "public static void main(String[] args) throws IOException {\n String hostname;\n\n // if no arguments then use 'localhost' as server\n if (args.length < 1) {\n hostname = \"localhost\";\n }\n else{\n hostname = args[0];\n }\n\n System.out.println(\"Welcome to the JokeServer Admin Client\");\n System.out.println(\"Administering server: \" + hostname + \":5050\");\n JokeClientAdmin.Logger(\"Welcome to the JokeServer Admin Client\");\n JokeClientAdmin.Logger(\"Administering server: \" + hostname + \":5050\");\n\n // accepting user input from command line\n BufferedReader inputSocket = new BufferedReader((new InputStreamReader(System.in)));\n\n try {\n String serverMode;\n do {\n // take in user input\n System.out.print(\"\\nSelect server mode: \\n - Joke\\n - Proverb \\n - On\\n - Off\\n - Get Status\\nadmin@~ $ \");\n System.out.flush();\n\n // input from user\n serverMode = inputSocket.readLine();\n\n // if input is 'quit' - leave loop - else call ChangeServerMode function\n if (!serverMode.contains(\"quit\")){\n ChangeServerMode(serverMode, hostname);\n }\n } // if input is 'quit' - leave loop\n while (!serverMode.contains(\"quit\")); {\n System.out.println(\"Client admin service stopped by user request.\");\n }\n }\n catch (IOException exception) {\n System.out.println(\"Admin client error - BufferedReader couldn't be opened.\");\n exception.printStackTrace();\n }\n }", "public static void main(String[] args) {\n Runner.runExample(Server.class);\n }", "@SuppressWarnings(\"resource\")\n public static void main(String[] args) {\n final Scanner in = new Scanner(System.in);\n\n // Enter the port to listen\n System.out.print(\"Port: \");\n final int port = in.nextInt();\n in.nextLine();\n\n // Start the server\n Server server = new ServerImpl(port);\n server.start();\n }", "public static void main(String[] args) {\n boolean deterministic = Arguments.parseArguments(args);\n\n Runtime rt = Runtime.instance();\n Profile p = new ProfileImpl();\n ContainerController container = rt.createAgentContainer(p);\n\n try {\n VehicleAgent[] vehicles = createVehicles(10,10,10);\n startVehicles(vehicles, container);\n\n ControlTowerAgent controlTowerAgent = new ControlTowerAgent();\n AgentController controlTower = container.acceptNewAgent(ControlTowerAgent.getDFName(), controlTowerAgent);\n LoggerHelper.get().logInfo(\"START - Started control tower\");\n controlTower.start();\n\n ClientAgent clientAgent = new ClientAgent(\"johnny\", ControlTowerAgent.getDFName(), deterministic);\n AgentController client = container.acceptNewAgent(clientAgent.getClientName(), clientAgent);\n String deterministicInfo = deterministic ? \"deterministic\" : \"random\";\n LoggerHelper.get().logInfo(\"CLIENT - Started \" + deterministicInfo + \" client \" + clientAgent.getClientName());\n client.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n boolean cmdStart = false;\n if (args.length != 0) {\n GuiUtils guiUtils = new GuiUtils();\n String errorResponse = guiUtils.verifyPort(args[0]);\n if (errorResponse != null) {\n System.err.println(\"Could not start the Server: \" + errorResponse);\n System.exit(-1);\n } else {\n int port = Integer.parseInt(args[0]);\n HangmanServer hangmanServer = new HangmanServer();\n hangmanServer.config = new ServerConfiguration(port);\n hangmanServer.run();\n cmdStart = true;\n }\n }\n \n if (!cmdStart) {\n launch(args);\n }\n }", "public static void main(String[] args) {\n UtilClient client = new UtilClient(args);\n client.run();\n\n // exit the program with the number of errors as the exit status\n System.exit(client.getErrorCount());\n }", "public static void main(String[] args) throws IOException {\n\n RPC.Builder builder = new RPC.Builder(new Configuration());\n builder.setBindAddress(\"localhost\")\n .setPort(8888)\n .setProtocol(UserLoginServices.class)\n .setInstance(new UserLoginImpl());\n\n RPC.Server build = builder.build();\n build.start();\n\n }", "public static void main(String[] args) {\n\n\t\tString username;\n\n\t\ttry {\n\n\t\t\t/* if no arguments were entered, a notification will be shown */\n\t\t\t\n\t\t\tif(args.length == 0) {\n\n\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* if the first argument is \"server\", a new server-object will be created and started */\n\t\t\t\n\t\t\tif(args[0].equalsIgnoreCase(\"server\")) {\n\n\t\t\t\t/* if there are not 3 arguments, a notification will be shown */\n\t\t\t\t\n\t\t\t\tif(args.length != 3) {\n\n\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tServer server = new Server();\n\t\t\t\tserver.startHosting(Integer.parseInt(args[1]));\n\t\t\t\tusername = args[2];\n\t\t\t\n\t\t\t/* if the first argument is \"server\", a new server-object will be created and started */\n\t\t\t\t\n\t\t\t} else if(args[0].equalsIgnoreCase(\"client\")) {\n\n\t\t\t\t/* if there are not 4 arguments, a notification will be shown */\n\t\t\t\t\n\t\t\t\tif(args.length != 4) {\n\n\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tClient client = new Client();\n\n\t\t\t\twhile(true) {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tclient.connect(args[1], Integer.parseInt(args[2]));\n\t\t\t\t\t\tusername = args[3];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t/* if the entered port number is not a number, a notification will be sent */\n\t\t\t\t\t\t\n\t\t\t\t\t} catch(NumberFormatException ex) {\n\n\t\t\t\t\t\tSystem.out.println(\"Port not a number\");\n\t\t\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\t\t\t/* if the client couln't connect to the server, a connection will be retried in 2 seconds */\n\t\t\t\t\t\t\n\t\t\t\t\t} catch(Exception ex) {\n\n\t\t\t\t\t\tLOG.warn(\"Couldn't connect to server, retrying in 2 seconds\");\n\t\t\t\t\t\ttry { Thread.sleep(2000); } catch(InterruptedException ignore) { }\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t/* if the arguments are not correct set, a notification will be shown */\n\t\t\t\t\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(USAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/* a new MainFrame-object is decleared and the size of the window is set by 700 * 500 pixel */\n\n\t\t\tMainFrame mainFrame = new MainFrame(username);\n\t\t\tmainFrame.setSize(700, 500);\n\t\t\tmainFrame.setVisible(true);\n\n\t\t/* if the entered port number is not a number, a notification will be sent */\n\t\t\t\n\t\t} catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"Port not a number\");\n\t\t\tSystem.out.println(USAGE);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\r\n new Server();\r\n }", "public static void main(String args[])\r\n\t{\r\n\t\tstart();\r\n\t}", "public static void main(String... args) throws Exception {\n final Component component = new Component();\n component.getServers().add(Protocol.HTTP, 8585);\n component.getClients().add(Protocol.FILE);\n component.getClients().add(Protocol.CLAP);\n component.getClients().add(Protocol.HTTP);\n // Attach the application to the default host and start it\n component.getDefaultHost().attach(\"/rmep\", new Application());\n component.start();\n }", "public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }", "private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tboolean server = false;\r\n\r\n\t\tif (server) {\r\n\t\t\t// This is the server setup.\r\n\t\t\tSystem.out.println(\"STARTING SERVER.\");\r\n\t\t\tServer s = new Server(8222);\r\n\t\t\ts.addPacketHandler(new PacketHandler() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\t\t\t\t\tSystem.out.println(\"SERVER HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\ts.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is ran when on the server side when a clients connection is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is never ran if added to the Server.\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// This is the client setup.\r\n\t\t\tSystem.out.println(\"STARTING CLIENT\");\r\n\t\t\tClient c = new Client(\"localhost\", 8222);\r\n\t\t\tSystem.out.println(\"CLIENT ID: \" + c.getID().toString());\r\n\t\t\tc.addPacketHandler(new PacketHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\t\t\t\t\tSystem.out.println(\"CLIENT HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tc.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is never ran if added to the Client.\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is ran when the connection to the server is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n}", "public static void main(String[] args)\n {\n if (args.length < 2)\n {\n System.out.println(\"Usage: java -jar Server.jar /path/to/password/file.tsv command to launch ai\");\n return;\n }\n new Server(args[0], Arrays.copyOfRange(args, 1, args.length)).start();\n }", "public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }", "public static void main(String[] args) {\n\t\tBigTwoClient client = new BigTwoClient();\n\t}", "public static void main(String[] args) throws IOException, InterruptedException\n\t{\n\t\tClient ClientDevice = new Client();\n\t\tClientDevice.RollWindow();\n\t}", "public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }", "public static void main(String args[]){\n int port = 2000;\n String host = \"127.0.0.1\";\n\n if(args.length > 0){\n host = args[0];\n }\n if(args.length > 1){\n port = Integer.parseInt(args[1]);\n }\n new Thread(new SoundClient(host, port)).start();\n }", "public static void main(String[] args){\n\t\t/**************************************************\n\t\t * \t\t\tProcess command line arguments\n\t\t * ************************************************/\n\t\tboolean server = false;\n\t\tint nclients = 1;\n\t\tString url = null; \n\t\tint broadcastClock = DEFAULT_BROADCAST_CLK_PERIOD;\n\t\tint port = DEFAULT_PORT;\n\t\t\n\t\tfor (int i = 0; i != args.length; ++i) {\n\t\t\tif (args[i].startsWith(\"-\")) {\n\t\t\t\tString arg = args[i];\n\t\t\t\tif(arg.equals(\"-server\")) {\n\t\t\t\t\tserver = true;\n\t\t\t\t\tnclients = Integer.parseInt(args[++i]);\n\t\t\t\t} else if(arg.equals(\"-connect\")) {\n\t\t\t\t\turl = args[++i];\n\t\t\t\t}else if(arg.equals(\"-port\")) {\n\t\t\t\t\tport = Integer.parseInt(args[++i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tInetAddress address;\n\t\ttry {\n\t\t\taddress = InetAddress.getByName(DEFAULT_HOST);\n\t\t\tGame game = new Game();\n\t\t\tParser p = new Parser(game);\n\t\t\tgame = p.createGameFromFiles(1);\n\t\t\trunServer(address, DEFAULT_PORT, 1, DEFAULT_BROADCAST_CLK_PERIOD, PLAYER_UID++, game, 1);\n\t\t} catch (UnknownHostException e) {\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args){\n ChatRoomServer server = new ChatRoomServer(portNumber);\n server.startServer();\n }", "public static void main(String[] args) {\n\t\tMessageGreeting msgGreetingObj = new MessageGreeting();\n\t\tnew Client().greetMsg(msgGreetingObj);\n\n\t}", "public static void main(String[] args){\r\n\t\tstart();\r\n\t}" ]
[ "0.8125413", "0.8008812", "0.8008749", "0.79494804", "0.79293156", "0.79096025", "0.78883505", "0.7785017", "0.77527714", "0.76681656", "0.7516182", "0.7447336", "0.74370754", "0.74124336", "0.7386411", "0.7369066", "0.7279297", "0.724399", "0.7199531", "0.71844083", "0.7134992", "0.7125147", "0.7069828", "0.70524216", "0.70490557", "0.70463514", "0.704155", "0.703153", "0.7022214", "0.7021879", "0.70190006", "0.7014631", "0.6998366", "0.6994883", "0.6973066", "0.69489926", "0.694102", "0.69377744", "0.692766", "0.69226164", "0.68924975", "0.68689454", "0.68434083", "0.6835383", "0.6833249", "0.6830277", "0.6825508", "0.68091065", "0.6803215", "0.67993736", "0.67892534", "0.6785676", "0.6782583", "0.6780815", "0.6777155", "0.67533994", "0.6740586", "0.67354643", "0.6733634", "0.6731756", "0.67205775", "0.67195153", "0.67093855", "0.6702798", "0.6695915", "0.6686154", "0.6682788", "0.66678816", "0.66644835", "0.66606563", "0.66560465", "0.6653772", "0.6652507", "0.6651599", "0.6650938", "0.6650468", "0.66440654", "0.6639898", "0.6637059", "0.66320884", "0.6625807", "0.6617717", "0.66082704", "0.6602427", "0.6602229", "0.66006887", "0.659", "0.65869254", "0.65858626", "0.65838903", "0.65772617", "0.6574585", "0.656941", "0.6568212", "0.6565857", "0.6565791", "0.65634847", "0.65617675", "0.65605295", "0.655578", "0.6550166" ]
0.0
-1
TODO: refactor data reader into util classes of jlindacore.io package
@Before public void setUp() throws Exception { logger.setLevel(Level.DEBUG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public abstract void readData(DataInput din) throws IOException;", "@Test\n void testRead() throws IOException, URISyntaxException {\n final String[] expectedResult = {\n \"-199\t\\\"hello\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"2017/06/20\\\"\t0.0\t1\t\\\"2\\\"\t\\\"823478788778713\\\"\",\n \"2\t\\\"Sdfwer\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"1100/06/20\\\"\tInf\t2\t\\\"NaN\\\"\t\\\",1,2,3\\\"\",\n \"0\t\\\"cjlajfo.\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"3000/06/20\\\"\t-Inf\t3\t\\\"inf\\\"\t\\\"\\\\casdf\\\"\",\n \"-1\t\\\"Mywer\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"06-20-2011\\\"\t3.141592653\t4\t\\\"4.8\\\"\t\\\"  \\\\\\\" \\\"\",\n \"266128\t\\\"Sf\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"06-20-1917\\\"\t0\t5\t\\\"Inf+11\\\"\t\\\"\\\"\",\n \"0\t\\\"null\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:23\t2017-06-20\t\\\"03/03/1817\\\"\t123\t6.000001\t\\\"11-2\\\"\t\\\"\\\\\\\"adf\\\\0\\\\na\\\\td\\\\nsf\\\\\\\"\\\"\",\n \"-2389\t\\\"\\\"\t2013-04-08 13:14:23\t2013-04-08 13:14:72\t2017-06-20\t\\\"2017-03-12\\\"\tNaN\t2\t\\\"nap\\\"\t\\\"💩⌛👩🏻■\\\"\"};\n BufferedReader result;\n File file = getFile(\"csv/ingest/IngestCSV.csv\");\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream stream = new BufferedInputStream(fileInputStream)) {\n CSVFileReader instance = createInstance();\n File outFile = instance.read(Tuple.of(stream, file), null).getTabDelimitedFile();\n result = new BufferedReader(new FileReader(outFile));\n }\n\n assertThat(result).isNotNull();\n assertThat(result.lines().collect(Collectors.toList())).isEqualTo(Arrays.asList(expectedResult));\n }", "public FeatureData read(Reader r) throws IOException, DataFormatException;", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public InputData getData() throws IOException {\n\n ObjectMapper mapper = new ObjectMapper();\n return mapper.readValue(Paths.get(inFile).toFile(), InputData.class);\n }", "public void readData(String infile) throws Exception {\r\n \t\tScanner in = new Scanner(new FileReader(infile));\r\n \t}", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "public Input readData() {\n JSONParser jsonParser = new JSONParser();\n List<Consumer> consumers = new ArrayList<>();\n List<Distributor> distributors = new ArrayList<>();\n List<Producer> producers = new ArrayList<>();\n List<MonthlyUpdates> monthlyUpdates = new ArrayList<>();\n long numberOfTurns;\n\n try {\n // Parsing the contents of the JSON file\n JSONObject jsonObject = (JSONObject) jsonParser.parse(new FileReader(inputPath));\n numberOfTurns = (long) (jsonObject.get(\"numberOfTurns\"));\n JSONObject initialData = (JSONObject) jsonObject.get(\"initialData\");\n JSONArray jsonConsumers = (JSONArray) initialData.get(\"consumers\");\n JSONArray jsonDistributors = (JSONArray) initialData.get(\"distributors\");\n JSONArray jsonProducers = (JSONArray) initialData.get(\"producers\");\n\n if (jsonConsumers != null) {\n ConsumerFactory consumerFactory = ConsumerFactory.getInstance();\n for (Object jsonConsumer : jsonConsumers) {\n consumers.add(consumerFactory.createConsumer(\n (long) ((JSONObject) jsonConsumer).get(\"id\"),\n (long) ((JSONObject) jsonConsumer).get(\"initialBudget\"),\n (long) ((JSONObject) jsonConsumer).get(\"monthlyIncome\")));\n }\n }\n\n if (jsonDistributors != null) {\n DistributorFactory distributorFactory = DistributorFactory.getInstance();\n for (Object jsonDistributor : jsonDistributors) {\n distributors.add(distributorFactory.createDistributor(\n (long) ((JSONObject) jsonDistributor).get(\"id\"),\n (long) ((JSONObject) jsonDistributor).get(\"contractLength\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialBudget\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialInfrastructureCost\"),\n (long) ((JSONObject) jsonDistributor).get(\"energyNeededKW\"),\n EnergyChoiceStrategyType.valueOf(((JSONObject) jsonDistributor).\n get(\"producerStrategy\").toString())));\n }\n }\n\n if (jsonProducers != null) {\n for (Object jsonProducer : jsonProducers) {\n producers.add(new Producer(((long) ((JSONObject) jsonProducer).get(\"id\")),\n EnergyType.valueOf(((JSONObject) jsonProducer).\n get(\"energyType\").toString()),\n (long) ((JSONObject) jsonProducer).get(\"maxDistributors\"),\n (double) ((JSONObject) jsonProducer).get(\"priceKW\"),\n (long) ((JSONObject) jsonProducer).get(\"energyPerDistributor\")));\n }\n }\n\n JSONArray jsonUpdates = (JSONArray) jsonObject.get(\"monthlyUpdates\");\n\n for (JSONObject monthlyUpdate : (Iterable<JSONObject>) jsonUpdates) {\n MonthlyUpdates update = new MonthlyUpdates();\n JSONArray newConsumers = (JSONArray) monthlyUpdate.get(\"newConsumers\");\n for (JSONObject newConsumer : (Iterable<JSONObject>) newConsumers) {\n update.getNewConsumers().add(new Consumer(Long.parseLong(newConsumer.get(\"id\").\n toString()),\n Long.parseLong(newConsumer.get(\"initialBudget\").toString()),\n Long.parseLong(newConsumer.get(\"monthlyIncome\").toString())));\n }\n org.json.simple.JSONArray costsChanges = (JSONArray) monthlyUpdate.\n get(\"distributorChanges\");\n for (JSONObject costsChange : (Iterable<JSONObject>) costsChanges) {\n update.getCostsChanges().add(new CostsChanges(Long.parseLong(costsChange.\n get(\"id\").toString()),\n Long.parseLong(costsChange.get(\"infrastructureCost\").toString())));\n }\n monthlyUpdates.add(update);\n }\n return new Input(numberOfTurns, consumers, distributors, producers, monthlyUpdates);\n\n } catch (ParseException | IOException e) {\n e.printStackTrace();\n }\n\n return new Input(0, consumers, distributors, producers, monthlyUpdates);\n\n }", "public <T extends Serializable> List<T> reader(String readPath, String splitChareckter,\n Class<T> clazz) {\n List<T> lstData = new LinkedList<>();\n String line = \"\";\n\n try (BufferedReader br = new BufferedReader(new FileReader(readPath))) {\n while ((line = br.readLine()) != null) {\n\n String[] readerArray = line.split(splitChareckter);\n int sayac = 0;\n T data = clazz.newInstance();\n for (Field field : clazz.getDeclaredFields()) {\n try {\n if (field.isAnnotationPresent(DataMatch.class)) {\n // elimizde bulunan datadaki bazı colomnları kullanmak istemiyorum\n // fakat datayı da bozmak istemediğim için kendi custom anotationumu yazdım\n DataMatch dataMatch = field.getAnnotation(DataMatch.class);\n int tempCount = 0;\n // burada da esas işlemi yaptık :) bunu anlayığ yaznana ladar 9 ayım geçmişti eferinnnnn\n\n\n // hemen nasıl anladın ya :))) b\n\n //uuuuuuuuuuuuuuuuuuuuuuuu //sorgulamayacaksın :D şaka yapıyom ya şuan kulağımın ağrısından kafm pek almıyo açıkcası\n //inşallah bi sorun çıkmaz abi git ya doktora devam ederse mecbur gidecem tabi\n\n // dusdan çıkınca iyice kulağını temizle su kalmasın :) //olur abisi :D\n\n\n ////boğazımda aprıyo toptan bi grip olucam anlaşılan gel vatandaş batan geminin malları bunlar :)) :)\n // şimdi ne drumdayız son olarak dur bi bakayım\n\n\n // son datayı yazarken bi problem olmuş onun dışında uçusa hazır :D\n if (dataMatch.index() != -1) {\n tempCount = dataMatch.index();\n } else {\n tempCount = sayac;\n }\n if (readerArray[tempCount].contains(\"K\")) {\n String valueOfNoneK = readerArray[tempCount].replace(\".\", \"\").replace(\"K\", \"\");\n Double realValue = Double.valueOf(valueOfNoneK) * 1000;\n readerArray[tempCount] = Double.toString(realValue);\n }\n setField(data, field.getName(), readerArray[tempCount]);\n }\n sayac++;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n lstData.add(data);\n\n }\n\n return lstData;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "Read createRead();", "Set<String> readData();", "private void parseData() {\n\t\t\r\n\t}", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public void readData(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\r\n String line = \"\";\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n //Split line by \",\"\r\n String[] fields = line.split(\",\");\r\n //Log.d(\"csvParseFieldLength\", String.valueOf(fields.length));\r\n ArrayList<Race> races = new ArrayList<>();\r\n if (fields[9].equals(\"\"))\r\n break;\r\n else {\r\n Swimmer s = new Swimmer(fields[0],fields[10], fields[9], Integer.parseInt(fields[8]), fields[7], races);\r\n swimmers.add(s);\r\n s.addRace(new Race(Integer.parseInt(fields[2]), Integer.parseInt(fields[3]), 0, null, (fields[4] + \" \" + fields[5])));\r\n \r\n EventID e = new EventID(eventId);\r\n String b = fields[12];\r\n \r\n \r\n if (!b.equals(\" \")) \r\n \te.addNames(b);\r\n \r\n \r\n \r\n }\r\n }\r\n } catch (IOException ex) {\r\n //Log.d(\"csvParseSwim\", \"Error reading data from file on line \" + line);\r\n }\r\n }", "public abstract void readFields(DataInput in) throws IOException;", "@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}", "private void readData () throws SQLException {\n int currentFetchSize = getFetchSize();\n setFetchSize(0);\n close();\n setFetchSize(currentFetchSize);\n moveToInsertRow();\n\n CSVRecord record;\n\n for (int i = 1; i <= getFetchSize(); i++) {\n lineNumber++;\n try {\n\n if (this.records.iterator().hasNext()) {\n record = this.records.iterator().next();\n\n for (int j = 0; j <= this.columnsTypes.length - 1; j++) {\n\n switch (this.columnsTypes[j]) {\n case \"VARCHAR\":\n case \"CHAR\":\n case \"LONGVARCHAR\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n case \"INTEGER\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateInt(j + 1, Integer.parseInt(record.get(j)));\n break;\n case \"TINYINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateByte(j + 1, Byte.parseByte(record.get(j)));\n break;\n case \"SMALLINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateShort(j + 1, Short.parseShort(record.get(j)));\n break;\n case \"BIGINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateLong(j + 1, Long.parseLong(record.get(j)));\n break;\n case \"NUMERIC\":\n case \"DECIMAL\":\n /*\n * \"0\" [0,0]\n * \"0.00\" [0,2]\n * \"123\" [123,0]\n * \"-123\" [-123,0]\n * \"1.23E3\" [123,-1]\n * \"1.23E+3\" [123,-1]\n * \"12.3E+7\" [123,-6]\n * \"12.0\" [120,1]\n * \"12.3\" [123,1]\n * \"0.00123\" [123,5]\n * \"-1.23E-12\" [-123,14]\n * \"1234.5E-4\" [12345,5]\n * \"0E+7\" [0,-7]\n * \"-0\" [0,0]\n */\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBigDecimal(j + 1, new BigDecimal(record.get(j)));\n break;\n case \"DOUBLE\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDouble(j + 1, Double.parseDouble(record.get(j)));\n break;\n case \"FLOAT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateFloat(j + 1, Float.parseFloat(record.get(j)));\n break;\n case \"DATE\":\n // yyyy-[m]m-[d]d\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDate(j + 1, Date.valueOf(record.get(j)));\n break;\n case \"TIMESTAMP\":\n // yyyy-[m]m-[d]d hh:mm:ss[.f...]\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTimestamp(j + 1, Timestamp.valueOf(record.get(j)));\n break;\n case \"TIME\":\n // hh:mm:ss\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTime(j + 1, Time.valueOf(record.get(j)));\n break;\n case \"BOOLEAN\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBoolean(j + 1, convertToBoolean(record.get(j)));\n break;\n default:\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n }\n }\n\n insertRow();\n incrementRowCount();\n }\n } catch (Exception e) {\n LOG.error(\"An error has occurred reading line number {} of the CSV file\", lineNumber, e);\n throw e;\n }\n }\n\n moveToCurrentRow();\n beforeFirst(); \n }", "public abstract void read(DataInput input) throws IOException;", "private @Nullable Data readData(\n @NotNull Type typeBound,\n @NotNull List<P> projections // non-empty, polymorphic tails respected\n ) throws IOException, JsonFormatException {\n\n if (nextToken() == null) return null;\n return finishReadingData(typeBound, projections);\n }", "public interface IFileDataTypeReader {\n\t\n\t Map<String, String> getColumnAndDataType(String fileName, ExtendedDetails dbDetails) throws ZeasException;\n\t\n\t List<List<String>> getColumnValues() throws ZeasException;\n}", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "InputStream getDataStream();", "public interface ReaderInterface {\n /**\n * Get the values of data file as multidimensional String array\n *\n * @return content of input file as multidimensional array\n */\n public String[][] get();\n}", "abstract void read();", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "String [][] importData (String path);", "void readFrom(DataInputStream din) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// commit_id = din.readInt();\r\n// table_id = din.readInt();\r\n//// if (table_id != din.readInt()) {\r\n//// throw new IOException(\r\n//// \"'table id' in given format is not the same. Does this journal \" +\r\n//// \"really belong to another table?\");\r\n//// }\r\n// journal_entries = din.readInt();\r\n// command_journal = new byte[journal_entries];\r\n// din.readFully(command_journal, 0, journal_entries);\r\n// int size = din.readInt();\r\n// for (int i = 0; i < size; ++i) {\r\n// command_parameters.addInt(din.readInt());\r\n// }\r\n }", "protected abstract Reader getReader() throws IOException;", "StreamReader underlyingReader();", "public abstract T readDataFile(String fileLine);", "@Test\r\n\tpublic void readCsvTest() throws IOException {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t}", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "protected void loadDataFromFile() throws IOException {\n \t\tInputStream is = null;\n \n \t\ttry {\n \t\t\tis = new BufferedInputStream(new GZIPInputStream(\n \t\t\t\t\tnew FileInputStream(this.dataFile)));\n \n \t\t\tint dataOffset = 0;\n \t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n \n \t\t\twhile (true) {\n \t\t\t\tint b = is.read();\n \n \t\t\t\tif (b == 0) {\n \t\t\t\t\t// field separator reached.\n \t\t\t\t\tif (this.componentId == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \t\t\t\t\t\tcomponentId = new String(URLEncoding.decode(encoded),\n \t\t\t\t\t\t\t\t\"UTF-8\");\n \t\t\t\t\t} else if (this.query == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tString queryXml = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \n \t\t\t\t\t\t\t// parse the query.\n \t\t\t\t\t\t\tSAXReader reader = new SAXReader();\n \t\t\t\t\t\t\tElement root = reader.read(\n \t\t\t\t\t\t\t\t\tnew StringReader(queryXml))\n \t\t\t\t\t\t\t\t\t.getRootElement();\n \t\t\t\t\t\t\tthis.query = root.getText();\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tthrow new IOException(\n \t\t\t\t\t\t\t\t\t\"Cannot unmarshall cached query.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (this.optionalParams == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\tif (encoded.length > 0) {\n \t\t\t\t\t\t\tMap optionalParams = new HashMap();\n \t\t\t\t\t\t\tString urlEncoded = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \t\t\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(\n\t\t\t\t\t\t\t\t\turlEncoded, \"&\", false);\n \n \t\t\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n String param = tokenizer.nextToken();\n\t\t\t\t\t\t\t\tString key = param.substring(0, param.indexOf('='));\n\t\t\t\t\t\t\t\tString value = param.substring(param.indexOf('=')+1);\n \t\t\t\t\t\t\t\toptionalParams.put(key, value);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tthis.optionalParams = optionalParams;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tthis.optionalParams = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tthis.dataOffset = dataOffset;\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \n \t\t\t\t\tos.reset();\n \t\t\t\t} else if (b == -1) {\n \t\t\t\t\tthrow new IOException(\"Premature end of cached file.\");\n \t\t\t\t} else {\n \t\t\t\t\tos.write(b);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tlog.error(\"Cannot close input cache file: \"\n \t\t\t\t\t\t\t+ this.dataFile.getAbsolutePath());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void readData() throws IOException {\n // as long as there are stuff left, keep reading by sets, which are\n // pairs of description + answer\n while (hasNext()) {\n counter++;\n readSet();\n }\n }", "public interface RecordReader {\r\n\r\n /**\r\n * Reads a single record from this input stream. The type of object\r\n * returned depends on the format of the stream.\r\n * @return the record value, or null if the end of the stream was reached.\r\n * @throws IOException if an I/O error occurs reading from the stream\r\n * @throws RecordIOException if the record is malformed and cannot\r\n * \t be parsed, but subsequent reads may still be possible\r\n */\r\n public Object read() throws IOException, RecordIOException;\r\n\r\n /**\r\n * Closes this input stream.\r\n * @throws IOException if an I/O error occurs closing the stream\r\n */\r\n public void close() throws IOException;\r\n\r\n /**\r\n * Returns the line number of the last record from this input stream. If a\r\n * record spans multiple lines, the line number at the beginning of the\r\n * record is returned. May return -1 if the end of the stream was reached,\r\n * or 0 if new lines are not used to terminate records.\r\n * @return the beginning line number of the last record read\r\n */\r\n public int getRecordLineNumber();\r\n\r\n /**\r\n * Returns the unparsed record text of the last record read.\r\n * @return the unparsed text of the last record read\r\n */\r\n public String getRecordText();\r\n\r\n}", "protected Object readData(Layout index, DataType dataType) throws java.io.IOException {\n return IospHelper.readDataFill(raf, index, dataType, null, -1);\n }", "List<String[]> readCsv(String inputFilePath)throws IOException;", "private void testDataReader() {\n File csv = new File(pathTest);\n try (FileReader fr = new FileReader(csv); BufferedReader bfr = new BufferedReader(fr)) {\n Logger.printInfo(\"Reading test data\");\n for (String line; (line = bfr.readLine()) != null; ) {\n String[] split = line.split(\",\");\n String data = textCleaner(split[indexData].toLowerCase());\n int label = Integer.parseInt(split[indexLabel].toLowerCase());\n\n linesTest.add(data);\n labelsTest.add(label);\n Logger.print(\"Reading size: \" + linesTest.size());\n }\n for (String l : linesTest) {\n matrixTest.add(wordVectorizer(l));\n }\n } catch (IOException ex) {\n Logger.printError(\"!! Test Data Not Reading !!\");\n System.exit(0);\n }\n }", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static List<String> readData(String path) throws IOException{\n ArrayList<String> data = new ArrayList<>();\n try (\n Reader reader = Files.newBufferedReader(Paths.get(path), StandardCharsets.UTF_8);\n CSVReader csvReader = new CSVReader(reader)\n ){\n String[] nextRecord;\n while ((nextRecord = csvReader.readNext()) != null) {\n if (nextRecord[0].contains(\"name\")){\n System.out.println(\"Skipping column headers...\");\n }else {\n data.add(nextRecord[0]);\n// System.out.println(nextRecord[0]);\n }\n }\n }\n return data;\n }", "public void readFromFile() {\n\n\t}", "public void read() {\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"studentData.dat\");\n\n\t\t\tObjectInputStream ois;\n\t\t\ttry {\n\t\t\t\tois = new ObjectInputStream(fis);\n\t\t\t\ttry {\n\t\t\t\t\tstudentList = (ArrayList<Student>) ois.readObject();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tois.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "static Map<Integer, Map<String, Object>> readTxt(BufferedReader in) throws IOException {\n\t\t\n\t\t// reads the key names (column names) and stores them\n\t\tString colString = in.readLine();\n\t\tString[] col = colString.split(\"\\t\");\n\n\t\t//instantiates the object being returned so we can add in objects\n\t\tMap<Integer, Map<String, Object>> dict = new HashMap<Integer, Map<String, Object>>();\n\t\t\n\t\t//loops while there is still more data to read\n\t\twhile (in.ready()) {\n\t\t\t\n\t\t\t//pulls the next line and splits it apart by the delimiter\n\t\t\tString valString = in.readLine();\n\t\t\tString[] val = valString.split(\"\\t\");\n\t\t\t\n\t\t\t//instantiates the object to be put in the list\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\n\t\t\t//loops per amount of columns\n\t\t\tfor (int i = 0; i < col.length; i++) {\n\t\t\t\t\n\t\t\t\t//instantiates to be put into the map and checks if it is a numeric data type\n\t\t\t\tObject value = val[i];\n\t\t\t\tif (isDouble((String) value)) {\n\t\t\t\t\tvalue = Double.parseDouble((String) value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//puts the object into the map\n\t\t\t\tmap.put(col[i], value);\n\t\t\t\t\n\t\t\t}\t//end for\n\n\t\t\t//since map.get(\"StudentID\") is a double, we cast it to an int so we can have a Integer Key for the outside map\n\t\t\tint i = ((Double) map.get(\"StudentID\")).intValue();\n\t\t\t\n\t\t\t//puts the map into the outside container\n\t\t\tdict.put(i, map);\n\t\t\t\n\t\t}\t//end while\n\n\t\t//closes the BufferedReader\n\t\tin.close();\n\n\t\t//returns our data structure\n\t\treturn dict;\n\t}", "public static void main(String[] args) throws IOException{ \n\t\tJsonReader reader = Json.createReader(new FileReader(\"testjson/abcde.json\")); \n\t\tJsonObject jsonob = reader.readObject();\n\t\tSystem.out.println(jsonob.toString());\n\t\tRowColStore parser= new RowColStore(10*1000*1000,\"testjson/abcde.layout\");\n\t\tint objid = 1;\n\t\tparser.insertObject(objid,jsonob,null);\n\t\tparser.insertObject(2,jsonob,null);\n\t\tparser.insertObject(3,jsonob,null);\n\t\t// populate the table \n\n\t\tSystem.out.println(\"get the result out \\n\");\n\t\t// objid, keystr,valstr,valnum,valbool - 5 bytes \n\t\t// read it out \n\t//\tparser.getObject(2);\n\t}", "private static void parseInput(BufferedReader reader) {\n\t\tString line = \"\";\n\t\tField f;\n\t\ttry {\n\t\t\tline = reader.readLine();\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\twhile (line != null) {\n\t\t\tf = Field.parse(line);\n\t\t\tif (dimension < f.getCoords().getX()) {\n\t\t\t\tdimension = f.getCoords().getX();\n\t\t\t}\n\t\t\tmap.put(f.getCoords(), f);\n\t\t\ttry {\n\t\t\t\tline = reader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n \r\n Directory d = new Directory();\r\n \r\n if (args.length != 1) {\r\n System.out.println(\"Usage: java CSVReaderTest <filename>\");\r\n }\r\n else {\r\n FileReader fr = new FileReader(args[0]);\r\n BufferedReader c = new BufferedReader(fr);\r\n\r\n int lineNum = 0;\r\n boolean eof = false;\r\n \r\n while (!eof) {\r\n String line = c.readLine();\r\n \r\n if (line == null) {\r\n eof = true;\r\n }\r\n else{\r\n // Allocate an array of the necessary size to return the strings\r\n String[] values = new String[4];\r\n // Start beginIndex at the beginning of the String, position 0\r\n int beginIndex = 0;\r\n\r\n for (int i = 0; i < 3; i++) {\r\n int endIndex;\r\n endIndex = line.indexOf(',', beginIndex);\r\n\r\n // if the argument begins and ends with quotes, remove them\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(endIndex - 1) == '\"') {\r\n values[i] = line.substring(beginIndex + 1, endIndex - 1);\r\n\r\n } else {\r\n values[i] = line.substring(beginIndex, endIndex);\r\n }\r\n\r\n beginIndex = endIndex + 1;\r\n }\r\n\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(line.length() - 1) == '\"') {\r\n values[3] = line.substring(beginIndex + 1, line.length() - 1);\r\n } else {\r\n values[3] = line.substring(beginIndex, line.length());\r\n }\r\n \r\n if (lineNum > 1) {\r\n lineNum = lineNum + 1;\r\n Student s = new Student(values[0]);\r\n s.setFirstName(values[1]);\r\n s.setLastName(values[2]);\r\n s.setPhoneNumber(values[3]);\r\n d.addStudent(s);\r\n System.out.println(s);\r\n }\r\n\r\n }\r\n }\r\n c.close();\r\n }\r\n \r\n Student c = new Student(\"mengl1\");\r\n c.setFirstName(\"Meng\");\r\n c.setLastName(\"Li\");\r\n c.setPhoneNumber(\"412-807-0153\");\r\n \r\n Student a = new Student(\"mengl2\");\r\n a.setFirstName(\"Mengl\");\r\n a.setLastName(\"Li\");\r\n a.setPhoneNumber(\"412-807-0154\");\r\n \r\n Student b = new Student(\"terryhong\");\r\n b.setFirstName(\"terry\");\r\n b.setLastName(\"hong\");\r\n b.setPhoneNumber(\"412-464-475\");\r\n\r\n d.addStudent(c);\r\n d.addStudent(a);\r\n d.addStudent(b);\r\n \r\n //System.out.println(d.searchByAndrewId(\"mengl2\"));\r\n //d.deleteStudent(\"terryhong\");\r\n System.out.println(d.size());\r\n // System.out.println(d.searchByLastName(\"Li\"));\r\n\r\n }", "protected abstract Reader read() throws IOException;", "public UserInfo readData()\n\t{\n\t\t\n\t\tIterator<UserInfo> itr= iterator();\n\t\tUserInfo info;\n\t\tSystem.out.println(\"file has been read!\");\n\t\twhile(itr.hasNext()) {\n\t\t\t\n\t\t\tinfo= itr.next();\n\t\t\tif( info.getUrl().equalsIgnoreCase(file)) {\n\t\t\t\t\n\t\t\t\treturn info;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public String readData(String path) {\n Connection connection;\n ResultSet resultSet;\n String data = null;\n\n try {\n connection = getConnection();\n connection.setAutoCommit(false);\n\n PreparedStatement pstmt = connection.prepareStatement(\"SELECT DATA FROM DATA WHERE ID = ?\");\n pstmt.setString(1, path);\n\n resultSet = pstmt.executeQuery();\n\n while (resultSet.next()) {\n data = new String (resultSet.getBytes(1));\n }\n\n pstmt.close();\n resultSet.close();\n connection.close();\n\n } catch (SQLException e) {\n logger.log(Level.SEVERE, e.getMessage(), e);\n }\n return data;\n }", "abstract protected T getRecordFromLine(String line) throws DataImportException ;", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "private void loadData() {\n try {\n URL source = new URL(CSV_URL);\n URLConnection connect = source.openConnection();\n BufferedReader f = new BufferedReader(new InputStreamReader(connect.getInputStream()));\n\n header = f.readLine().split(\",\");\n // Replace third header with Difficulty Rating\n header[3] = \"Difficulty\";\n\n String line;\n while((line = f.readLine()) != null) {\n String[] row = line.split(\",\");\n // Section: 0, 1, 2, 3 for now, 3 will be WCC\n\n int problemNumber = Integer.parseInt(row[0]);\n int section;\n int year;\n String exam = row[1];\n String answer = row[2];\n\n if(row.length > 3) {\n answer += \"~\" + row[3];\n }\n\n if(exam.matches(\"USNCO .*\")) {\n exam = exam.substring(6);\n year = Integer.parseInt(exam.substring(1, 5));\n if(exam.charAt(0) == 'N') {\n section = 1;\n }\n else {\n section = 0;\n }\n }\n else {\n year = Integer.parseInt(exam.substring(4, 8));\n section = 3;\n }\n\n int id = year*240 + problemNumber*4 + section;\n data.put(id, answer);\n }\n }\n catch (Exception e) {\n // Solution given by StackOverflow: https://stackoverflow.com/questions/1149703/\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n e.printStackTrace(pw);\n String sStackTrace = sw.toString().substring(0, 800); // stack trace as a string\n\n // Send error messages to me\n instance.retrieveUserById(CREATOR).queue(\n user -> user.openPrivateChannel().queue(\n channel -> channel.sendMessage(sStackTrace).queue()));\n\n }\n }", "public static String ReadData(InputStream input) throws IOException {\n BufferedReader reader = new BufferedReader(new\n InputStreamReader(input));\n StringBuilder builder = new StringBuilder();\n while (true) {\n String line = reader.readLine();\n if(line == null) {\n break;\n }\n\n builder.append(line);\n }\n\n return builder.toString();\n }", "public interface ReaderI {\n\t\n\t/**\n\t * reads from an Reader Object and creates a FeatureData Object\n\t * from the given Data\n\t * @param r Reader Object containing data to be read\n\t * @return FeatureData Object\n\t * @throws IOException throws caught IOExceptions and\n\t * Exceptions if Reader Object is empty\n\t * @throws DataFormatException throws an DataFormatException\n\t * \t\t if it detects inconsistencies in the data representation\n\t * of the file\n\t */\n\tpublic FeatureData read(Reader r) throws IOException, DataFormatException;\n}", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "public Hashtable<Integer, Hashtable<String, Obs>> read_obs_data(String srcPath) {\n\n\t\t/**\n\t\t * Hashtable<UserID, Hashtable<Week Day, Observation Sequence>> obstable\n\t\t */\n\t\tHashtable<Integer, Hashtable<String, Obs>> obstable = new Hashtable<>();\n\n\t\tSimpleDateFormat parserSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tSimpleDateFormat dayFormat = new SimpleDateFormat(\"yyyy-MM-dd_EEEE\");\n\t\tint cnt = 0;\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(srcPath));\n\n\t\t\tString line;\n\t\t\tString id = null;\n\t\t\tString nextID;\n\t\t\tint nextDay = -1;\n\t\t\tString time = null;\n\t\t\tint curDay = -1;\n\t\t\tString curDate = \"\", date = \"\";\n\t\t\tString siteID;\n\t\t\tStringBuilder obsr = new StringBuilder();\n\t\t\tStringBuilder tObsr = new StringBuilder();\n\n\t\t\t/**\n\t\t\t * Data must be sorted by the user ID Data set Arrana=ged as the\n\t\t\t * following ID Time Site ID\n\t\t\t */\n\t\t\tHashtable<String, Obs> userObs = null;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString lineSplit[] = line.split(\",\");\n\n\t\t\t\tnextID = lineSplit[0].trim();\n\t\t\t\t// if (Integer.parseInt(nextID) == 4) {\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\ttry {\n\t\t\t\t\tDate nextDate = parserSDF.parse(lineSplit[1]);\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(nextDate);\n\t\t\t\t\tnextDay = cal.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\t\tdate = dayFormat.format(cal.getTime());\n\n\t\t\t\t\ttime = cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE) + \":\"\n\t\t\t\t\t\t\t+ cal.get(Calendar.SECOND);\n\n\t\t\t\t} catch (ParseException ex) {\n\t\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t\tif (id == null) {\n\t\t\t\t\tuserObs = new Hashtable<>();\n\t\t\t\t\tid = nextID;\n\t\t\t\t\tcurDay = nextDay;\n\t\t\t\t\tcurDate = date;\n\t\t\t\t}\n\t\t\t\tsiteID = lineSplit[2].trim();\n\t\t\t\tint site = Integer.parseInt(siteID);\n\n\t\t\t\t/**\n\t\t\t\t * If the Date changed insert date delimiter.\n\t\t\t\t */\n\t\t\t\tif (curDay != nextDay) {\n\t\t\t\t\t// System.out.println(\"date changed\");\n\t\t\t\t\t// if (obsr != null) {\n\t\t\t\t\t// obsr.append(dlm);\n\t\t\t\t\t//\n\t\t\t\t\t// }\n\n\t\t\t\t\t// if (obsr == null) {\n\t\t\t\t\t// obsr = new StringBuilder(RLM);\n\t\t\t\t\t// }\n\t\t\t\t\tif (obsr.length() != 0) {\n\t\t\t\t\t\t// cnt++;\n\t\t\t\t\t\t// System.out.println(obsr.toString());\n\t\t\t\t\t\t// System.out.println(tObsr.toString());\n\t\t\t\t\t\t// if (cnt == 100) {\n\t\t\t\t\t\t// System.exit(0);\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tuserObs.put(curDate, new Obs(obsr.toString(), tObsr.toString()));\n\t\t\t\t\t\tobsr = new StringBuilder();\n\t\t\t\t\t\ttObsr = new StringBuilder();\n\t\t\t\t\t}\n\t\t\t\t\tcurDay = nextDay;\n\t\t\t\t\tcurDate = date;\n\t\t\t\t\t// if (site >= stower && site <= etower) {\n\t\t\t\t\t// obsr = new StringBuilder(siteID);\n\t\t\t\t\t// } else {\n\t\t\t\t\t// obsr = new StringBuilder(RLM);\n\t\t\t\t\t// }\n\t\t\t\t\t// continue;\n\t\t\t\t}\n\n\t\t\t\tif (obsr.length() == 0) {\n\t\t\t\t\tobsr.append(siteID);\n\t\t\t\t\ttObsr.append(time);\n\t\t\t\t} else if (obsr.length() != 0 && id.equals(nextID)) {\n\t\t\t\t\tobsr.append(CLM);\n\t\t\t\t\ttObsr.append(CLM);\n\n\t\t\t\t\tobsr.append(siteID);\n\t\t\t\t\ttObsr.append(time);\n\n\t\t\t\t} else {\n\t\t\t\t\t/**\n\t\t\t\t\t * User changed write the XL file Data Change the user ID ,\n\t\t\t\t\t * and record site with the new user\n\t\t\t\t\t */\n\t\t\t\t\tif (!userObs.isEmpty()) {\n\n\t\t\t\t\t\tobstable.put(Integer.parseInt(id), userObs);\n\t\t\t\t\t\tuserObs = new Hashtable<>();\n\t\t\t\t\t}\n\t\t\t\t\tid = nextID;\n\t\t\t\t\tobsr = new StringBuilder();\n\t\t\t\t\ttObsr = new StringBuilder();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// System.out.println(\"File saved!\");\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn obstable;\n\t}", "private static JSONObject fileReader(String path) throws Exception{\r\n return (JSONObject) jsonParser.parse(new String(Files.readAllBytes(Paths.get(path))));\r\n }", "public boolean readDataFile();", "@Override\n \tpublic DataHolder loadFile(IMonitor mon) throws ScanFileHolderException {\n \t\tBufferedReader reader = null;\n \n \t\ttry {\n \t\t\treader = new BufferedReader(new FileReader(fileName));\n \t\t\tString dataStr;\n \t\t\tString previousHeaderLine = \"\";\n \t\t\tboolean readingHeader = true;\n \t\t\tboolean readingFooter = false;\n \t\t\tList<?>[] columnData = null;\n \t\t\twhile ((dataStr = reader.readLine()) != null) {\n \n \t\t\t\t// ignore blank\n \t\t\t\tif (dataStr.isEmpty()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// first block of commented out lines are the header\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && readingHeader) {\n \t\t\t\t\treadHeaderLine(dataStr);\n \t\t\t\t\tpreviousHeaderLine = dataStr;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\treadingHeader = false;\n \n \t\t\t\t// next block of commented out lines after any break in comments will be the footer\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && !readingHeader) {\n \t\t\t\t\treadingFooter = true;\n \t\t\t\t\treadFooterLine(dataStr);\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// if get here then its data\n \t\t\t\tif (readingFooter) {\n \t\t\t\t\t// should not get here after reading a block of commented out lines for a second time: invalid\n \t\t\t\t\t// format\n \t\t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\");\n \t\t\t\t}\n \n \t\t\t\t// the first time we get here, the previous line should have been the header\n \t\t\t\tif (columnData == null && datasetNames.size() == 0) {\n \t\t\t\t\tcolumnData = parseHeaderString(previousHeaderLine);\n \t\t\t\t}\n \n\t\t\t\tparseColumns(splitLine(dataStr.trim()), columnData);\n \t\t\t}\n \n \t\t\tString[] names = datasetNames.toArray(new String[]{});\n \t\t\tDataHolder result = new DataHolder();\n \t\t\ttry {\n \t\t\t\tconvertToDatasets(result, names, columnData, isStoreStringValues(), isUseImageLoaderForStrings(), (new File(this.fileName)).getParent());\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.warn(e.getMessage());\n \t\t\t}\n \n \t\t\treturn result;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ScanFileHolderException(\"XasAsciiLoader.loadFile exception loading \" + fileName, e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\", e);\n \t\t\t}\n \t\t}\n \t}", "@Override\n public void read(DataInput in) throws IOException {\n int cordinatesSize = in.readInt();\n\n ByteArrayInputStream bi = new ByteArrayInputStream(b.toByteArray());\n ObjectInputStream o = new ObjectInputStream(bi);\n\n for(Coordinate coordinate : cordinates){\n try {\n coordinate = (Coordinate)o.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public void doReads(Reader reader) throws IOException;", "@Override\n\tpublic void read() {\n\n\t}", "@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }", "@Override\r\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tthis.url=in.readUTF();\r\n\t\tthis.counts=in.readInt();\r\n\t}", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "public interface GermplasmListReader {\n public static final String LABEL_LIST_ID = \"LIST ID\";\n public static final String LABEL_LIST_NAME = \"LIST NAME\";\n public static final String LABEL_LIST_DATE = \"LIST DATE\";\n public static final String LABEL_LIST_TYPE = \"LIST TYPE\";\n public static final String LABEL_LIST_TITLE = \"LIST TITLE\";\n\n public static final String HEADER_GID = \"GID\";\n public static final String HEADER_ENTRY_CD = \"ENTRY CD\";\n public static final String HEADER_ENTRY_CODE = \"ENTRY CODE\"; \n public static final String HEADER_DESIGNATION = \"DESIG\";\n public static final String HEADER_CROSS = \"CROSS\";\n public static final String HEADER_SOURCE = \"SOURCE\";\n public static final String HEADER_UNIQUE_ID = \"UNIQUE ID\";\n public static final String HEADER_ENTRY_ID = \"ENTRY\";\n\n // Assume that entry values starts at 7 (8)\n public static final int ROW_HEADER_INDEX = 7;\n\n public static final int COLUMN_GID = 0;\n public static final int COLUMN_ENTRY_CODE = 1;\n public static final int COLUMN_DESIGNATION = 2;\n public static final int COLUMN_CROSS = 3;\n public static final int COLUMN_SOURCE = 4;\n public static final int COLUMN_UNIQUE_ID = 5;\n public static final int COLUMN_ENTRY_ID = 6;\n \n public static final int MAX_ROW = 2000;\n\n\n /**\n * Get Germplasm info from a excel file according to Germplasm template\n * @param fileName The file name including full path FullName\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmList(String fileName) throws Exception;\n\n public boolean isValidTemplate(String fileName) throws Exception;\n\n public boolean isValidCrossScript(String fileName) throws Exception;\n\n /**\n * Get Germplasm info from database according to Germplasm list id\n * @param listid ID for germplasm list\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmListFromDB(Integer listid);\n\n /**\n * Assign sheet number where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNumberForGermplasm(Integer sheetNumber);\n\n /**\n * Assign sheet namn where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNameForGermplasm(String sheetName);\n \n /**\n * Assign the list of factors header to read excel template\n * @param factorHeader \n */\n public void setEntryFactors(List<Factor> entryFactors);\n \n /**\n * Is it a germplasm template\n * @param isGermplasmTemplate \n */\n public void setIsGermplasmTemplate(boolean isGermplasmTemplate);\n \n}", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tthis.id=in.readInt();\n\t\tthis.date=in.readUTF();\n\t\tthis.pid=in.readUTF();\n\t\tthis.amount=in.readInt();\n\t\tthis.name=in.readUTF();\n\t\tthis.category_id=in.readUTF();\n\t\tthis.price=in.readInt();\n\t\tthis.flag=in.readUTF();\n\t\t\t\t\n\t\t\t\t\n\t\t\n\t}", "public void read(DataInputStream reader) throws Exception\r\n\t{\n\r\n\t}", "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }", "Object getRawData();", "protected abstract Object read ();", "List<String[]> readAll();", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "public void read()\r\n\t{\r\n\t\tScanner input = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint i = 0;\r\n\r\n\t\t\tinput = new Scanner(new File(\"netflix.csv\")).useDelimiter(\"[,\\r\\n]\");\r\n\r\n\t\t\twhile (input.hasNext())\r\n\t\t\t{\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tString title = input.next();\r\n\r\n\t\t\t\tString rating = input.next();\r\n\r\n\t\t\t\tint year = Integer.parseInt(input.next());\r\n\r\n\t\t\t\tint score = Integer.parseInt(input.next());\r\n\t\t\t\tMovie a = new Movie(title, rating, year, score);\r\n\t\t\t\tdata[i] = a;\r\n\t\t\t\ti++;\r\n\t\t\t\tactualSize++;\r\n\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private String[] readFile(InputStream stream) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new InputStreamReader(stream)));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \");\r\n }\r\n }", "public abstract void readDataItem(BDTuple tuple) throws RollbackException;", "public void readFields(DataInput in) throws IOException {\n\t\tthis.setId(in.readLong());\r\n\t\tthis.setLat(in.readDouble());\r\n\t\tthis.setLon(in.readDouble());\r\n\t\tthis.setTimestamp(in.readLong());\r\n\t\tthis.setTag(in.readInt());\r\n\t\tthis.setTileNumber(in.readInt());\r\n\t\tthis.setTiles(in.readUTF());\r\n\t\tthis.setOthers(in.readUTF());\r\n\t\tthis.setCandidateTags(in.readUTF());\r\n\t\t\r\n\t\tthis.setTileTag(in.readUTF());\r\n\t\tthis.setUploadtime(in.readLong());\r\n\t\tthis.setServerId(in.readLong());\r\n\t\tthis.setDevice(in.readUTF());\r\n\t\tthis.setDescription(in.readUTF());\r\n\t\t\r\n\t}", "public static void readSQLFile(){\n\n logger.setLevel(Level.ALL);\n\n // Define Appender\n myAppender = new ConsoleAppender(new SimpleLayout());\n\n logger.addAppender(myAppender);\n\n FileInputStream fs = null;\n try{\n fs= new FileInputStream(FILENAME);\n //We should read the data as a byte sequence and not as strings because the JSON object may contain\n //some characters that are escaped e.g. \\\" will be converted automatically to \" when it is insreted\n //and the JSON cannot be restored if it is read again form the database\n\n String oaiid = \"\", uri = \"\", json = \"\";\n //Use ArrayList of bytes as we don't know the length of each field\n ArrayList<Byte> arrBytes = new ArrayList<Byte>();\n byte b;\n //Read byte by byte from the stream and place it in an ArrayList and then convert it into byte array\n while((b = (byte)fs.read()) != -1){\n try{\n\n char ch = (char)b;\n if(ch == '\\n'){\n if(oaiid.equals(\"\")){\n oaiid = new String(convertToByteArray(arrBytes));\n }\n else if(uri.equals(\"\")){\n uri = new String(convertToByteArray(arrBytes));\n }\n else{\n json = new String(convertToByteArray(arrBytes));\n\n JDBC jdbc = JDBC.getDefaultConnection();\n String sqlStmt = \"INSERT INTO \" + TABLENAME + \"(\" + FIELD_OAIID + \", \" +\n FIELD_RESOURCE + \" , \" + FIELD_JSON_BLOB + \" ) VALUES ( ?, ? , ? ) \";\n\n PreparedStatement stmt = jdbc.prepare(sqlStmt,\"\");\n jdbc.executeStatement(stmt, new String[]{oaiid, uri, json});\n logger.info(\"Record for page # \" + oaiid + \", and resource = \" + uri +\n \" has been successfully inserted into database\");\n oaiid = uri = json = \"\";\n }\n arrBytes = new ArrayList<Byte>();\n\n }\n else\n arrBytes.add(b);\n\n }\n catch(Exception exp){\n logger.info(\"Record for page # \" + oaiid + \" cannot be inserted into database\");\n oaiid = uri = json = \"\";\n }\n\n }\n fs.close();\n }\n catch(Exception exp){\n logger.error(\"SQL file cannot be read due to \" + exp.getMessage());\n }\n }", "private void readActorData(String[] lineData)\n {\n int actorCodeIdx = 0;\n int actorFileNameIdx = 1;\n int actorIngameNameIdx = 2;\n int sprite_statusIdx = 3;\n int sensor_statusIdx = 4;\n int directionIdx = 5;\n\n Direction direction = Direction.of(lineData[directionIdx]);\n ActorData actorData = new ActorData(lineData[actorFileNameIdx], lineData[actorIngameNameIdx], lineData[sprite_statusIdx], lineData[sensor_statusIdx], direction);\n actorDataMap.put(lineData[actorCodeIdx], actorData);\n\n //Player start position is not based on tile schema\n if (actorData.actorFileName.equals(ACTOR_DIRECTORY_PATH + \"player\"))\n createPlayer(actorData);\n else\n loadedTileIdsSet.add(lineData[actorCodeIdx]);//Player is not defined by layers\n }", "@Override\n protected void onTextData(Reader r) throws IOException {\n\n }", "public void ownRead();", "private void readMetaData(int location) throws IOException {\n //Log.i(LOG_Task, \"/readMetaData\");\n long read = 0;\n String md = \"\"; // The metadata\n // Skipping stream until get to the metadata\n InputStream is = conn.getInputStream();\n while (read != location) { read += is.skip(location - read);}\n // The first byte of metadata tell how large the metadata is\n int mdl = is.read() * 16;\n //Log.i(LOG_Task, \"Skipped \" + read + \" bytes, reading \" + mdl + \" next bytes for metadatas\");\n // Start reading metadata if there is some\n if (mdl > 0) {\n read = 0;\n // try to read metadata 3 times at most, because the stream might be corrupted\n for (int i = 0; i < 3; i++){\n byte[] mdb = new byte[mdl - (int) read];\n read = is.read(mdb);\n md += new String(mdb, 0, mdb.length);\n //Log.i(LOG_Task, \"read:\" + read + \"/\" + mdl + \"bytes\");\n if (read==mdl) {break;} // Got enough needed data\n }\n //Log.i(LOG_Task, \"raw metadata: \" + md);\n // Get the chunks of metadata\n String[] metdatas = new String(md.trim().getBytes(), \"utf-8\").split(\";\");\n // Extract metadata in form StreamTitle='DELTA GOODREM - BORN TO TRY';\n for (String data : metdatas) {\n //Log.i(LOG_Task, data);\n String[] item = data.split(\"-|=\");\n // Extract the data line contains StreamTitle (replace \"\" to avoid this: StreamT��itle)\n if (item[0].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\").compareTo(\"StreamTitle\") == 0) {\n currentTitle = item[1].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\");\n currentArtist = (item.length == 3) ? item[2].replaceAll(\"[^\\\\p{Alnum}\\\\s]\", \"\") : \"\";\n }\n }\n Log.i(LOG_Task, \"Title: \" + currentTitle + \" | Artist: \" + currentArtist);\n }\n is.close();\n }", "private static Data getDataObject(final String dataset) throws IOException {\n \n final Data data = Data.create(dataset, StandardCharsets.UTF_8, ';');\n \n // Read generalization hierachies\n final FilenameFilter hierarchyFilter = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n if (name.matches(dataset.substring(dataset.lastIndexOf(\"/\") + 1, dataset.length() - 4) + \"_hierarchy_(.)+.csv\")) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n final File testDir = new File(dataset.substring(0, dataset.lastIndexOf(\"/\")));\n final File[] genHierFiles = testDir.listFiles(hierarchyFilter);\n final Pattern pattern = Pattern.compile(\"_hierarchy_(.*?).csv\");\n \n for (final File file : genHierFiles) {\n final Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n \n final CSVHierarchyInput hier = new CSVHierarchyInput(file, StandardCharsets.UTF_8, ';');\n final String attributeName = matcher.group(1);\n \n // use all found attribute hierarchies as qis\n data.getDefinition().setAttributeType(attributeName, Hierarchy.create(hier.getHierarchy()));\n \n }\n }\n \n return data;\n }", "public void readData(InputStream inStream);", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "public static void main(String[] args) throws IOException\r\n\t{\n\t\tReadData readdataobj = new ReadData();\r\n\t\treaddataobj.readData();\r\n\t}", "@Override\n\t// read registration records from dataFile\n\tpublic synchronized Info readInfoFromFile(){\n\t\tInfo new_StudInfo = null;\n\t\ttry{\n\t\t\t\tString newLine = br.readLine();\t// read a line from file\n\t\t\t\tif(newLine!=null){\n\t\t\t\t\t// split a record into 3 strings and an integer\n\t\t\t\t\tregInfoLine = newLine.split(\" \");\t\n\t\t\t\t\tnew_StudInfo = new StudentInfo(\n\t\t\t\t\t\t\t\t\t\tregInfoLine[0],\n\t\t\t\t\t\t\t\t\t\tregInfoLine[1],\n\t\t\t\t\t\t\t\t\t\tregInfoLine[2],\n\t\t\t\t\t\t\t\t\t\t(Integer.parseInt(regInfoLine[3])));\n\t\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn new_StudInfo;\n\t}", "void parseWritable(final DataInputStream in) throws IOException {\n // First clear the map. Otherwise we will just accumulate entries every time this method is called.\n this.map.clear();\n // Read the number of entries in the map\n int entries = in.readInt();\n // Then read each key/value pair\n for (int i = 0; i < entries; i++) {\n byte[] key = Bytes.readByteArray(in);\n // We used to read a byte that encoded the class type. Read and ignore it because it is always byte [] in hfile\n in.readByte();\n byte[] value = Bytes.readByteArray(in);\n this.map.put(key, value);\n }\n }", "public void readExternal(ObjectInput in) throws IOException, FileNotFoundException, ClassNotFoundException{\n\t\tSystem.out.println(\"Inside readExternal()\");\n\t\tthis.age = in.readInt();\n\t\tthis.name = (String) in.readObject();\n\t\tthis.address = (String) in.readObject();\n\t\tthis.job = (String) in.readObject();\n\t}", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "public DtResponse readInfoGralJsonStream(InputStream in) throws IOException {\n InputStreamReader isReader = new InputStreamReader(in);\n //Creating a BufferedReader object\n BufferedReader breader = new BufferedReader(isReader);\n StringBuffer sb = new StringBuffer();\n String str;\n while((str = breader.readLine())!= null){\n sb.append(str);\n }\n Log.i(TAG, sb.toString());\n JsonReader reader = new JsonReader(new StringReader(sb.toString()));\n List<DtResponse> res = null;\n try {\n return readRESTMessage(reader);\n } finally {\n reader.close();\n }\n }" ]
[ "0.63627356", "0.6359437", "0.63498694", "0.6268549", "0.6169143", "0.6098683", "0.6074173", "0.60612", "0.6050446", "0.6048035", "0.6014725", "0.6009941", "0.5947526", "0.5939974", "0.5939789", "0.5914916", "0.58873975", "0.5886212", "0.5865761", "0.58533245", "0.5850327", "0.5830675", "0.5823217", "0.58051306", "0.5804237", "0.58024603", "0.57790196", "0.5769979", "0.5767647", "0.5756643", "0.57450724", "0.5744547", "0.5721742", "0.57130796", "0.5679891", "0.56742316", "0.56640846", "0.56549484", "0.56439245", "0.5634891", "0.56223804", "0.56162053", "0.56128573", "0.5598208", "0.558981", "0.5589658", "0.5570686", "0.55676675", "0.5566762", "0.55583465", "0.55536807", "0.5550389", "0.55461234", "0.55355227", "0.55297434", "0.5524807", "0.55216086", "0.5517012", "0.5499494", "0.5490247", "0.54807246", "0.54768145", "0.5469808", "0.5469736", "0.5469505", "0.5467446", "0.54585296", "0.545841", "0.5454186", "0.54521894", "0.54521894", "0.54521894", "0.54477227", "0.5445167", "0.54432", "0.54418385", "0.5438032", "0.5435661", "0.5428374", "0.54205585", "0.5407979", "0.54053384", "0.5398331", "0.5397026", "0.5396834", "0.5392108", "0.5389802", "0.5388297", "0.5387294", "0.5386709", "0.53859663", "0.53851736", "0.5381219", "0.537735", "0.5373384", "0.53625506", "0.53516024", "0.5351468", "0.53503007", "0.53489", "0.534185" ]
0.0
-1
load Input Binary Data
@BeforeClass public static void setUpTestData() throws Exception { String unwFileName = "9192_6687.uint"; String hghtFileName = "heights.raw.ORIGINAL"; unwrappedPhase = castToDouble(512, 512, readFloatFile(512, 512, testDataDir + unwFileName)); heights = castToDouble(512, 512, readFloatFile(512, 512, testDataDir + hghtFileName)); File masterResFile = new File(testResDir + "9192.res"); File slaveResFile = new File(testResDir + "6687.res"); /** Construct metadata classes */ master = new SLCImage(); slave = new SLCImage(); master.parseResFile(masterResFile); slave.parseResFile(slaveResFile); masterOrbit = new Orbit(); masterOrbit.parseOrbit(masterResFile); masterOrbit.computeCoefficients(3); masterOrbit.computeCoefficients(ORBIT_DEGREE); slaveOrbit = new Orbit(); slaveOrbit.parseOrbit(slaveResFile); slaveOrbit.computeCoefficients(3); slaveOrbit.computeCoefficients(ORBIT_DEGREE); dataWindow = new Window(1, 26897, 1, 5167); tileWindow = new Window(15000, 15511, 3000, 3511); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void load(FileInputStream input) {\n\t\t\r\n\t}", "void loadNodeData(byte[] data) throws Exception;", "private void loadExpressionDataInBinaryFormat(String fileName, LoadLabels ll) throws IOException, ClassNotFoundException {\n this.fileName = fileName;\r\n File fileBinary = new File(fileName + \".dat\");\r\n BufferedInputStream in = null;\r\n int nrRowsThisBinaryFile = -1;\r\n int nrColsThisBinaryFile = -1;\r\n in = new BufferedInputStream(new FileInputStream(fileBinary));\r\n byte[] bytes = new byte[4];\r\n in.read(bytes, 0, 4);\r\n nrRowsThisBinaryFile = byteArrayToInt(bytes);\r\n in.read(bytes, 0, 4);\r\n nrColsThisBinaryFile = byteArrayToInt(bytes);\r\n \r\n if (rowsToInclude == null && colsToInclude == null) {\r\n //We want to load all the data:\r\n nrRows = nrRowsThisBinaryFile;\r\n nrCols = nrColsThisBinaryFile;\r\n rawData = new double[nrRows][nrCols];\r\n \r\n //Now load the row and column identifiers from files\r\n switch (ll) {\r\n case LOAD_BOTH:\r\n loadRowObjects(fileName);\r\n loadColumnObjects(fileName);\r\n break;\r\n case LOAD_ROWS:\r\n loadRowObjects(fileName);\r\n break;\r\n case LOAD_COLUMNS:\r\n loadColumnObjects(fileName);\r\n break;\r\n }\r\n \r\n byte[] buffer = new byte[nrCols * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRows; row++) {\r\n in.read(buffer, 0, nrCols * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrCols; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n rawData[row][col] = Double.longBitsToDouble(bits);\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n } else {\r\n \r\n //We want to confine the set of probes and samples to a subset. Deal with this in a different way.\r\n int[] rowSubsetIndex = loadRowObjects(fileName, nrRowsThisBinaryFile);\r\n int[] colSubsetIndex = loadColumnObjects(fileName, nrColsThisBinaryFile);\r\n \r\n //Now load the binary data:\r\n rawData = new double[nrRows][nrCols];\r\n byte[] buffer = new byte[nrColsThisBinaryFile * 8];\r\n long bits = 0;\r\n for (int row = 0; row < nrRowsThisBinaryFile; row++) {\r\n in.read(buffer, 0, nrColsThisBinaryFile * 8);\r\n int bufferLoc = 0;\r\n for (int col = 0; col < nrColsThisBinaryFile; col++) {\r\n bits = (long) (0xff & buffer[bufferLoc + 7])\r\n | (long) (0xff & buffer[bufferLoc + 6]) << 8\r\n | (long) (0xff & buffer[bufferLoc + 5]) << 16\r\n | (long) (0xff & buffer[bufferLoc + 4]) << 24\r\n | (long) (0xff & buffer[bufferLoc + 3]) << 32\r\n | (long) (0xff & buffer[bufferLoc + 2]) << 40\r\n | (long) (0xff & buffer[bufferLoc + 1]) << 48\r\n | (long) (buffer[bufferLoc]) << 56;\r\n \r\n int rowI = rowSubsetIndex[row];\r\n int colI = colSubsetIndex[col];\r\n if (rowI != -1 && colI != -1) {\r\n rawData[rowI][colI] = Double.longBitsToDouble(bits);\r\n }\r\n bufferLoc += 8;\r\n }\r\n }\r\n in.close();\r\n }\r\n recalculateHashMaps();\r\n LOGGER.log(Level.INFO, \"Binary file ''{0}'' has been loaded, nrRows: {1} nrCols: {2}\", new Object[]{fileName, nrRows, nrCols});\r\n }", "public void load(DataInput stream)\n throws IOException\n {\n final int MAX = 8192;\n byte[] abBuf = new byte[MAX];\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(MAX);\n\n int of = 0;\n try\n {\n while (true)\n {\n byte b = stream.readByte();\n\n abBuf[of++] = b;\n\t\t\t\tif (of == MAX)\n {\n streamRaw.write(abBuf, 0, MAX);\n of = 0;\n }\n }\n }\n catch (EOFException e)\n {\n if (of > 0)\n {\n streamRaw.write(abBuf, 0, of);\n }\n }\n\n\n setBytes(streamRaw.toByteArray());\n }", "@Override\n protected void onBinaryData(InputStream is) throws IOException {\n }", "public void ReadFromBinary() throws IOException\n\t {\n\t \t\n\t \tDataInputStream Input = new DataInputStream(new FileInputStream(\"GameProgress.dat\"));\n\t \t\n\t \t\tpl.xCoord = Input.read(); \n\t \t\tpl.xCoord = Input.read(); \n\t\t\t\tpl.NumRockets = Input.read(); \n\t\t\t\tpl.NumBullets = Input.read();\n\t\t\t\tpl.Health =Input.read();\n\t\t\t\tDestroyedEnemies =Input.read();\n\t\t\t\tRunAwayEnemies =Input.read();\n\t\t\t\t\n\t\t\t\tint x, y = 0; \n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < EnemyList.size(); i++ )\n\t\t\t\t{\n\t\t\t\t\tx = Input.read();\n\t\t\t\t\ty = Input.read();\n\t\t\t\t\teh = new Enemy(x,y);\n\t\t\t\t\tEnemyList.add(eh);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tInput.close(); \n\t }", "@Override\n\tpublic void loadPlayerData(InputStream arg0)\n\t{\n\n\t}", "public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tbytes = in.readInt();\n\t\tbuffer = new byte[bytes];\n\t\tint num = 0;\t\t\n\t\twhile(num < bytes){\n\t\t\tbuffer[num] = in.readByte();\n\t\t\tnum++;\n\t\t}\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream arg0) {\n\n\t}", "byte[] readBytes();", "public void load(InputStream is) throws IOException;", "public TypedBytesInput(DataInput in) {\n this.in = in;\n }", "protected abstract void loadData();", "public abstract byte[] parse(String input);", "private void handleBinaryData(int size) throws IOException {\n\t\tbyte[] data = new byte[size];\n\t\tint bytesRead = source.read(data);\n\t\tif (bytesRead != size) {\n\t\t\tthrow new EOFException();\n\t\t}\n\t\thandler.handleBinaryBytes(data);\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}", "public abstract void load() throws IOException;", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "@Override\n void load(String data) {\n }", "public void read(DataInputStream in) throws IOException;", "public /*override*/ void LoadRecordData(BinaryReader bamlBinaryReader) \r\n {\r\n TypeId = bamlBinaryReader.ReadInt16(); \r\n RuntimeName = bamlBinaryReader.ReadString(); \r\n }", "public void LoadBinaryFile(String filename) throws RuntimeException\n {\n byte bytepair[];\n int memPtr = 0;\n\n bytepair = new byte[2];\n File theFile = new File(filename);\n if (!theFile.exists())\n throw new RuntimeException(Constants.Error(Constants.FILE_NOT_FOUND) + \" \" + filename);\n try\n {\n FileInputStream is = new FileInputStream(theFile);\n int readingdata = is.read(bytepair);\n while (readingdata > 0)\n {\n if (memPtr >= PROGRAM_MEMORY_SIZE)\n throw new RuntimeException(Constants.Error(Constants.OUT_OF_MEMORY));\n this.setProgramMemory(memPtr++,Utils.unsigned_byte(bytepair[0]) + (Utils.unsigned_byte(bytepair[1]) << 8));\n readingdata = is.read(bytepair);\n }\n is.close();\n }\n catch (IOException e)\n {\n System.err.println(\"Error reading in binary file \" + filename);\n System.err.println(e.toString());\n System.exit(-1);\n }\n return;\n }", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}", "@Test\n public void testSimpleLoad() throws Exception {\n runTest(\"testSimpleLoad\",\n new byte[][][]{\n new byte[][]{Bytes.toBytes(\"aaaa\"), Bytes.toBytes(\"cccc\")},\n new byte[][]{Bytes.toBytes(\"ddd\"), Bytes.toBytes(\"ooo\")},\n });\n }", "public abstract void readData(DataInput din) throws IOException;", "public abstract void onBinaryReceived(byte[] data);", "public void loadMemory(String inputFile){\n\t\tint pc = 0;\n\t\ttry{\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(inputFile),\"rw\");\n\t\t\tString strLine;\n\t\t\tint decimalNumber;\n\t\t\twhile ((strLine = raf.readLine())!=null){\n\t\t\t\tstrLine = strLine.substring(0, 8); //get the first 8 char(hex instruction)\n\t\t\t\tdecimalNumber = new BigInteger(strLine, 16).intValue(); //decode the hex into integer\n\t\t\t\tloadInstructionInMemory(pc, decimalNumber);\n\t\t\t\tpc += 4;\n\t\t\t}\n\t\t\traf.close();\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"Error:\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "public void readBinary(RandomAccessFile stream) {\r\n\t\t\r\n\t\t// Create a byte array for all the string fields with the max length\r\n\t\tbyte[] dateByte = new byte[dateLength];\r\n\t\tbyte[] stratumByte = new byte[stratumLength];\r\n\t\tbyte[] raceOtherByte = new byte[raceOtherLength];\r\n\t\tbyte[] diagOtherByte = new byte[diagOtherLength];\r\n\t\tbyte[] narr1Byte = new byte[narr1Length];\r\n\t\tbyte[] narr2Byte = new byte[narr2Length];\r\n\t\t\r\n\t\t// Read the fields from Binary file\r\n\t\ttry {\r\n\t\t\tcpscCase = stream.readInt();\r\n\t\t\tstream.readFully(dateByte);\r\n\t\t\ttrmt_date = new String(dateByte);\r\n\t\t\tpsu = stream.readInt();\r\n\t\t\tweight = stream.readDouble();\r\n\t\t\tstream.readFully(stratumByte);\r\n\t\t\tstratum = new String(stratumByte);\r\n\t\t\tage = stream.readInt();\r\n\t\t\tsex = stream.readInt();\r\n\t\t\trace = stream.readInt();\r\n\t\t\tstream.readFully(raceOtherByte);\r\n\t\t\trace_other = new String(raceOtherByte);\r\n\t\t\tdiag = stream.readInt();\r\n\t\t\tstream.readFully(diagOtherByte);\r\n\t\t\tdiag_other = new String(diagOtherByte);\r\n\t\t\tbody_part = stream.readInt();\r\n\t\t\tdisposition = stream.readInt();\r\n\t\t\tlocation = stream.readInt();\r\n\t\t\tfmv = stream.readInt();\r\n\t\t\tprod1 = stream.readInt();\r\n\t\t\tprod2 = stream.readInt();\r\n\t\t\tstream.readFully(narr1Byte);\r\n\t\t\tnarr1 = new String(narr1Byte);\r\n\t\t\tstream.readFully(narr2Byte);\r\n\t\t\tnarr2 = new String(narr2Byte);\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\t\r\n\t}", "public void read(ArrayDataInput in) throws FitsException, IOException;", "private void loadJava(byte[] encodedData, int offset, int len, String file){\n try{\n PngReader reader = new PngReader();\n pixels = reader.read(new ByteArrayInputStream(encodedData, offset, len));\n width = reader.width;\n height = reader.height;\n handle = -1;\n pixels.position(0).limit(pixels.capacity());\n }catch(Exception e){\n throw new ArcRuntimeException(\"Failed to load PNG data\" + (file == null ? \"\" : \" (\" + file + \")\"), e);\n }\n }", "public abstract void read(DataInput input) throws IOException;", "private boolean readBin(String filePath) throws FileNotFoundException, IOException {\n try {\n BufferedReader dataIn = new BufferedReader(new FileReader(filePath + \".bin\"));\n\n String next = dataIn.readLine();\n int length = Integer.parseInt(next);\n next = dataIn.readLine();\n start = Integer.parseInt(next);\n for (int i = 0; i < memory.length; i++) {\n next = dataIn.readLine();\n if (next == null) {\n break;\n }\n memory[i] = Integer.parseInt(next);\n }\n dataIn.close();\n } catch (IOException ex) {\n print(\"File error: \" + ex.toString());\n return true;\n }\n return false;\n\n }", "public abstract void loadData();", "public abstract void loadData();", "void loadFromInputStream(InputStream inputStream) throws IOException;", "public abstract Object decode(InputStream is) ;", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "void nikon_e900_load_raw()\n{\n int offset=0, irow, row, col;\n\n for (irow=0; irow < height; irow++) {\n row = irow * 2 % height;\n if (row == 1)\n offset = - (-offset & -4096);\n CTOJ.fseek (ifp, offset, CTOJ.SEEK_SET);\n offset += raw_width;\n getbits(-1);\n for (col=0; col < width; col++)\n BAYER(row,col, (short)getbits(10));\n }\n}", "public void load() ;", "int readFrom(byte[] iStream, int pos, ORecordVersion version);", "byte[] inflate(byte[] data) throws IOException;", "void loadData();", "void loadData();", "@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in.readByte(); // version\n type = in.readUTF();\n subType = in.readUTF();\n // allow for more data from future version\n int extra = in.readShort();\n if (extra > 0) {\n byte[] extraBytes = new byte[extra];\n in.read(extraBytes, 0, extra);\n }\n }", "public void readData(InputStream inStream);", "public void fromBytes(byte[] data) {\n\t\tint index = 0;\n//\t\tArrayList<Integer> al= new ArrayList<Integer>();;\n\t\tthis.setProtocol(data[index]);\n\t\tindex++;\n this.setTotalSize(BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN));\n\t\tindex+=4;\n\t\tthis.hashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setHash(new java.lang.String(data, index, hashSize));\n\t\tindex+=hashSize;\n\t\tthis.requestorHashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setRequestorHash(new java.lang.String(data, index, requestorHashSize));\n\t\tindex+=requestorHashSize;\n\t\tthis.setCommand(data[index]);\n\t\tindex++;\n\t\t\n\t}", "protected void readData(DataInput input) throws IOException {\n try {\n operationStatus = input.readByte();\n\n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n exception = input.readByte();\n } else {\n // We have already readed operation for the manual reflection\n int length = input.readInt();\n \n byte[] data = new byte[length];\n input.readFully(data);\n\n ByteArrayInputStream bin = new ByteArrayInputStream(data);\n ObjectInputStream oin = new ObjectInputStream(bin);\n returnValue = (KSNSerializableInterface) oin.readObject();\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public byte[] getData();", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}", "public abstract void load(LongIntsCol col, DataInputStream output) throws IOException;", "public abstract void load(LongLongsCol col, DataInputStream output) throws IOException;", "public void setInputStream(DataInputStream x) throws IOException {\n\t\tin = x;\n\t\tin.readFully(scratch, 0, 32);\n\t\tversion = scratch[0];\n\t\tyear = scratch[1] + 1900;\n\t\tmonth = scratch[2];\n\t\tday = scratch[3];\n\t\tnumRecords = ShapefileBundle.bytesToIntLE(scratch, 4);\n\t\tnumHeaderBytes = ShapefileBundle.bytesToUShortLE(scratch, 8);\n\t\tnumRecordBytes = ShapefileBundle.bytesToUShortLE(scratch, 10);\n\t\tincomplete = scratch[14];\n\t\tencrypted = scratch[15];\n\t\tmdx = scratch[28];\n\t\tlanguage = scratch[29];\n\t\tint readPartTwoLen = 31;\n\t\tif ((version & 0x07) == 4) {\n\t\t\tin.readFully(scratch, 0, 32);\n\t\t\tdriverName = new String(scratch, 0, 32);\n\t\t\tin.skipBytes(4);\n\t\t\treadPartTwoLen = 47;\n\t\t} else {\n\t\t\tassert((version & 0x07) == 3);\n\t\t}\n\t\tscratch[0] = in.readByte();\n\t\tint startpos = 0;\n\t\twhile (scratch[0] != (byte)0x0d) {\n\t\t\tin.readFully(scratch, 1, readPartTwoLen);\n\t\t\tDBaseFieldDescriptor nh = new DBaseFieldDescriptor(scratch, 0, 1+readPartTwoLen);\n\t\t\tnh.startpos = startpos;\n\t\t\tstartpos += nh.length;\n\t\t\tfields.add(nh);\n\t\t\tscratch[0] = in.readByte();\n\t\t}\n\t\trecordLength = startpos;\n\t\tscratch = new byte[recordLength];\n\t}", "public void read_from_buffer(DataInputStream in) throws IOException\r\n {\r\n for (int i = 0; i < 2*dimension; ++i)\r\n bounces[i] = in.readFloat();\r\n son = in.readInt();\r\n num_of_data = in.readInt();\r\n }", "public abstract void load(IntIntsCol col, DataInputStream output) throws IOException;", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public int readFromDataStream( MixedDataInputStream in )\n {\n try {\n etype = new Integer( in.readInt() );\n pad = in.readInt();\n color = in.readString( StrColor.BYTESIZE );\n name = in.readString( StrDesc.BYTESIZE );\n format = in.readString( StrFormat.BYTESIZE );\n } catch ( IOException ioerr ) {\n ioerr.printStackTrace();\n return 0;\n }\n\n return BYTESIZE;\n }", "InputStream getDataStream();", "@Override\n public void readFieldsCompressed(DataInput in) throws IOException {\n int length = in.readInt();\n byte[] array = this.array;\n if (array == null || array.length != length) {\n array = new byte[length];\n }\n in.readFully(array);\n this.length = length;\n this.array = array;\n }", "public void read_from_buffer(DataInputStream in) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = in.readFloat();\r\n }\r\n this.distanz = in.readFloat();\r\n// byte[] b = new byte[27];\r\n// in.read(b, 0, 27);\r\n// this.setPlaceId(new String(b));\r\n this.setPlaceId(in.readInt());\r\n this.location[0] = in.readDouble();\r\n this.location[1] = in.readDouble();\r\n }", "void loadData() throws SerializerException;", "void load();", "void load();", "private static int readBinaryLength(ObjectInput in) throws IOException {\n\t\t\n\t\tint bl = in.read();\n\t\tif (bl == -1)\n\t\t\tthrow new java.io.EOFException();\n \n byte li = (byte) bl;\n\n int len;\n\t\tif ((li & ((byte) 0x80)) != 0)\n\t\t{\n\t\t\tif (li == ((byte) 0xC0))\n\t\t\t{ \n\t\t\t\tlen = in.readInt();\n \t\t\t}\n\t\t\telse if (li == ((byte) 0xA0))\n\t\t\t{\n\t\t\t\tlen = in.readUnsignedShort();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlen = li & 0x1F;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n \n\t\t\t// old length in bits\n\t\t\tint v2 = in.read();\n\t\t\tint v3 = in.read();\n\t\t\tint v4 = in.read();\n\t\t\tif (v2 == -1 || v3 == -1 || v4 == -1)\n\t\t\t\tthrow new java.io.EOFException();\n int lenInBits = (((bl & 0xff) << 24) | ((v2 & 0xff) << 16) | ((v3 & 0xff) << 8) | (v4 & 0xff));\n\n\t\t\tlen = lenInBits / 8;\n\t\t\tif ((lenInBits % 8) != 0)\n\t\t\t\tlen++;\n \t\t}\n\t\treturn len;\n\t}", "public byte[] read();", "@Override\n public void read(DataInput in) throws IOException {\n int cordinatesSize = in.readInt();\n\n ByteArrayInputStream bi = new ByteArrayInputStream(b.toByteArray());\n ObjectInputStream o = new ObjectInputStream(bi);\n\n for(Coordinate coordinate : cordinates){\n try {\n coordinate = (Coordinate)o.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "public void loadFromStream(InputStream is) throws IOException {\n\t\tfor (int i = 0; i <= mem.length; i++) {\n\t\t\tint data = is.read();\n\t\t\tif (data == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmem[i] = data;\n\t\t}\n\t\tif (is.read() != -1) {\n\t\t\tlogger.log(Level.WARNING, \"Truncating boot.rom to \" + mem.length);\n\t\t}\n\t}", "protected void unserialize(InputStream paramInputStream) throws IOException {\n/* 336 */ this.m_index_ = new char[this.m_dataOffset_];\n/* 337 */ DataInputStream dataInputStream = new DataInputStream(paramInputStream);\n/* 338 */ for (byte b = 0; b < this.m_dataOffset_; b++) {\n/* 339 */ this.m_index_[b] = dataInputStream.readChar();\n/* */ }\n/* */ }", "public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }", "public void restore(DataInputStream dis) throws Exception;", "@attribute(value = \"\", required = false)\t\r\n\tpublic void setBinaryData(Boolean data) {\r\n\t\tthis.binaryFile = data;\r\n\t}", "void readObject(InputSerializer in) throws java.io.IOException;", "public void readExternal(ObjectInput in) throws IOException, FileNotFoundException, ClassNotFoundException{\n\t\tSystem.out.println(\"Inside readExternal()\");\n\t\tthis.age = in.readInt();\n\t\tthis.name = (String) in.readObject();\n\t\tthis.address = (String) in.readObject();\n\t\tthis.job = (String) in.readObject();\n\t}", "public abstract void load(IntLongsCol col, DataInputStream output) throws IOException;", "@Override\n\tpublic void loadData(Bundle bundle) {\n\t}", "void deserialize(@NotNull InputStream in) throws IOException;", "private void load(byte[] encodedData, int offset, int len, String file){\n if(ArcNativesLoader.loaded){\n try{\n //read with stb_image, which is slightly faster for large images and supports more formats\n long[] nativeData = new long[3];\n pixels = loadJni(nativeData, encodedData, offset, len);\n if(pixels == null) throw new ArcRuntimeException(\"Error loading pixmap from image data: \" + getFailureReason() + (file == null ? \"\" : \" (\" + file + \")\"));\n\n handle = nativeData[0];\n width = (int)nativeData[1];\n height = (int)nativeData[2];\n pixels.position(0).limit(pixels.capacity());\n }catch(ArcRuntimeException e){\n //stb_image bug? some PNGs fail with \"corrupt JPEG\" as the error, try the Java implementation if so\n if(e.getMessage() != null && e.getMessage().contains(\"Corrupt JPEG\")){\n try{\n loadJava(encodedData, offset, len, file);\n return;\n }catch(Exception ignored){\n //I did my best, fall through and throw the original exception\n }\n }\n throw e;\n }\n }else{\n loadJava(encodedData, offset, len, file);\n }\n }", "protected void load(DataInputStream is)\n throws ClassNotFoundException, IOException,\n InstantiationException, IllegalAccessException {\n\n super.load(is);\n StartingFunds = (float)is.readInt();\n NumTestTraders = is.readInt();\n NumSteps = is.readInt();\n }", "public abstract void load();", "private void read() throws IOException {\n // The first byte of every data frame\n int firstByte;\n\n // Loop until end of stream is reached.\n while ((firstByte = bis.read()) != -1) {\n // Data contained in the first byte\n // int fin = (firstByte << 24) >>> 31;\n // int rsv1 = (firstByte << 25) >>> 31;\n // int rsv2 = (firstByte << 26) >>> 31;\n // int rsv3 = (firstByte << 27) >>> 31;\n int opcode = (firstByte << 28) >>> 28;\n\n // Reads the second byte\n int secondByte = bis.read();\n\n // Data contained in the second byte\n // int mask = (secondByte << 24) >>> 31;\n int payloadLength = (secondByte << 25) >>> 25;\n\n // If the length of payload data is less than 126, that's the\n // final\n // payload length\n // Otherwise, it must be calculated as follows\n if (payloadLength == 126) {\n // Attempts to read the next 2 bytes\n byte[] nextTwoBytes = new byte[2];\n for (int i = 0; i < 2; i++) {\n byte b = (byte) bis.read();\n nextTwoBytes[i] = b;\n }\n\n // Those last 2 bytes will be interpreted as a 16-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{0, 0, nextTwoBytes[0], nextTwoBytes[1]};\n payloadLength = Utils.fromByteArray(integer);\n } else if (payloadLength == 127) {\n // Attempts to read the next 8 bytes\n byte[] nextEightBytes = new byte[8];\n for (int i = 0; i < 8; i++) {\n byte b = (byte) bis.read();\n nextEightBytes[i] = b;\n }\n\n // Only the last 4 bytes matter because Java doesn't support\n // arrays with more than 2^31 -1 elements, so a 64-bit\n // unsigned\n // integer cannot be processed\n // Those last 4 bytes will be interpreted as a 32-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{nextEightBytes[4], nextEightBytes[5], nextEightBytes[6],\n nextEightBytes[7]};\n payloadLength = Utils.fromByteArray(integer);\n }\n\n // Attempts to read the payload data\n byte[] data = new byte[payloadLength];\n for (int i = 0; i < payloadLength; i++) {\n byte b = (byte) bis.read();\n data[i] = b;\n }\n\n // Execute the action depending on the opcode\n switch (opcode) {\n case OPCODE_CONTINUATION:\n // Should be implemented\n break;\n case OPCODE_TEXT:\n notifyOnTextReceived(new String(data, Charset.forName(\"UTF-8\")));\n break;\n case OPCODE_BINARY:\n notifyOnBinaryReceived(data);\n break;\n case OPCODE_CLOSE:\n closeInternal();\n notifyOnCloseReceived();\n return;\n case OPCODE_PING:\n notifyOnPingReceived(data);\n sendPong(data);\n break;\n case OPCODE_PONG:\n notifyOnPongReceived(data);\n break;\n default:\n closeInternal();\n Exception e = new UnknownOpcodeException(\"Unknown opcode: 0x\" + Integer.toHexString(opcode));\n notifyOnException(e);\n return;\n }\n }\n\n // If there are not more data to be read,\n // and if the connection didn't receive a close frame,\n // an IOException must be thrown because the connection didn't close\n // gracefully\n throw new IOException(\"Unexpected end of stream\");\n }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "Object getRawData();", "InputStream deserialize(InputStream toDeserialize);", "protected byte[] getBinaryData(Resource resource, @SuppressWarnings(\"unused\") SlingHttpServletRequest request) throws IOException {\n InputStream is = resource.adaptTo(InputStream.class);\n if (is == null) {\n return null;\n }\n try {\n return IOUtils.toByteArray(is);\n }\n finally {\n is.close();\n }\n }", "public void processRaw(String rawfilepath){\n\t\tbyte tempbyte[] = new byte[131072];\n\t\ttempbyte = loadBytes(rawfilepath);\n\t\tfor (int i=0; i < header.length; i++){\n\t\t\theader[i]= tempbyte[i];\n\t\t}\n\t\tfor (int i = 0; i < EEPROM.length;){\n\t\t\tEEPROM[i] = tempbyte[i+1024];\n\t\t}\n\t\torganizeEEPROM();\n\t\tprocessData();\n\t\tsavefile();\n\t}", "public abstract void load(LongFloatsCol col, DataInputStream output) throws IOException;", "private void addBinaryData(Document doc, OutputStream out, String tempDir) throws TransformerException {\n InputStream xsl = Thread.currentThread().getContextClassLoader()\n .getResourceAsStream(\"data/xslt/bytestreams.xsl\");\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n\n Transformer transformer = transformerFactory.newTransformer(new StreamSource(xsl));\n transformer.setParameter(\"tempDir\", tempDir);\n\n Source xmlSource = new DocumentSource(doc);\n\n Result outputTarget = new StreamResult(out); // new\n // FileWriter(outFile));\n\n log.debug(\"starting bytestream transformation ...\");\n transformer.transform(xmlSource, outputTarget);\n log.debug(\"FINISHED bytestream transformation!\");\n }", "private void readBinary(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// check if access to this file is allowed\r\n\t\tif (!fileAccessAllowed(READ_BINARY))\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// use P1 and P2 as offset\r\n\t\tshort offset = Util.makeShort(buffer[ISO7816.OFFSET_P1], buffer[ISO7816.OFFSET_P2]);\r\n\t\tif (offset < 0)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tshort le = apdu.setOutgoing();\r\n\t\t// impossible to start reading from offset large than size of file\t\t\t\t\r\n\t\tif (selectedFile == masterFile)\r\n\t\t\tISOException.throwIt(ISO7816.SW_FILE_INVALID); //~allow_dead_code Dead because fileAccessAllowed() checks that selectedFile instanceof ElementaryFile and masterFile is not an ElementaryFile.\r\n\t\t//@ open selected_file_types(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);\r\n\t\tshort size = ((ElementaryFile) selectedFile).getCurrentSize();\r\n\t\tif (offset > size)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// number of bytes in file starting from offset\r\n\t\tshort remaining = (short) (size - offset);\r\n\t\tif (le == 0) {\r\n\t\t\tif (remaining < 256) {\r\n\t\t\t\t// wrong Le field\r\n\t\t\t\t// SW2 encodes the exact number of available data bytes\r\n\t\t\t\tshort sw = (short) (ISO7816.SW_CORRECT_LENGTH_00 | remaining);\r\n\t\t\t\tISOException.throwIt(sw);\r\n\t\t\t} else\r\n\t\t\t\t// Le = 0 is interpreted as 256 bytes\r\n\t\t\t\tle = 256;\r\n\t\t}\r\n\t\t// only read out the remaining bytes\r\n\t\tif (le > remaining) {\r\n\t\t\tle = remaining;\r\n\t\t}\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength(le);\r\n\t\t// write selected file in APDU\r\n\t\t//VF bug; was apdu.sendBytesLong(((ElementaryFile) selectedFile).getData(), offset, le);\r\n\t\t//VF probleem: originele lijn was apdu.sendBytesLong(ef.getData(), offset, le);\r\n\t\t// het probleem hiermee is dat de getData()-methode een ElementaryFile nodig heeft, en dat\r\n\t\t// sendBytesLong vereist dat het resultaat niet null is. De niet-null vereiste zit geencodeerd\r\n\t\t// in ElementaryFile, dus als je dat predicaat opent, dan weet VF dat de data niet-null is, maar\r\n\t\t// dan werkt de call op getData niet. Als je de ElementaryFile gesloten laat, dan lukt de call naar\r\n\t\t// getData, maar weet je niet dat het niet-null is.\r\n\t\tElementaryFile ef = (ElementaryFile)selectedFile;\r\n\t\tbyte[] bf = ef.getData();\r\n\t\t//@ open [1/2]ef.ElementaryFile(?d1, ?d2, ?d3, ?d4, ?d5, ?info); // hard to eliminate\r\n\t\tapdu.sendBytesLong(bf, offset, le);\r\n\t\t////@ close [1/2]ef.ElementaryFile(d1, d2, d3, d4, d5, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "boolean hasBinaryData();", "boolean supportsBinaryInProc();", "void setData(byte[] data);", "public byte[] deserializeBinFile(byte[] buf){\n int size = buf.length;\n ByteBuffer buffer = ByteBuffer.wrap(buf);\n msgType = buffer.getShort(0);\n byte[] srcIP_temp = new byte[15];\n System.arraycopy(buf, 2, srcIP_temp, 0, 15);\n String srcIP_str = new String(srcIP_temp);\n srcIP = srcIP_str.trim();\n srcPort = buffer.getInt(17);\n desCost = buffer.getFloat(21);\n byte[] desIP_temp = new byte[15];\n System.arraycopy(buf, 25, desIP_temp, 0, 15);\n String desIP_str = new String(desIP_temp);\n desIP = desIP_str.trim();\n desPort = buffer.getInt(40);\n byte[] filenameBuf = new byte[filenameSize];\n System.arraycopy(buf, 44, filenameBuf, 0, filenameSize);\n String filename_str = new String(filenameBuf);\n filename = filename_str.trim();\n offset = buffer.getInt(44 + filenameSize);\n checksum = buffer.getShort(44+filenameSize+offsetSize);\n int pos = 44+filenameSize+offsetSize+2;\n if(pos>=size) return null;\n byte[] binBytes = new byte[size-pos];\n System.arraycopy(buf, pos, binBytes, 0, binBytes.length);\n return binBytes;//the returned bin array which does not include the offset.\n }", "public void loadTagBuffer() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n }\r\n\r\n if (fLength < FileDicomBaseInner.BUFFER_SIZE) {\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n } else if (tagBuffer == null) {\r\n tagBuffer = new byte[FileDicomBaseInner.BUFFER_SIZE];\r\n } else if (tagBuffer.length < FileDicomBaseInner.BUFFER_SIZE) {\r\n tagBuffer = new byte[FileDicomBaseInner.BUFFER_SIZE];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "public abstract void readTagPayload(DataInput in) throws IOException;", "public BrickStructure loadStructureFromBinaryFile(File file) {\n\t\tthrow new NullPointerException();\n\t}" ]
[ "0.66478354", "0.6465541", "0.64491856", "0.63368446", "0.6181049", "0.6176214", "0.607263", "0.6044849", "0.60324466", "0.60324466", "0.60324466", "0.60324466", "0.6021887", "0.60140324", "0.5969334", "0.59557366", "0.59527266", "0.5925325", "0.5918995", "0.5914638", "0.5914557", "0.59136057", "0.5900453", "0.58904016", "0.58751136", "0.586007", "0.58542705", "0.5832332", "0.58135134", "0.5797836", "0.5794186", "0.5790491", "0.57810235", "0.57790387", "0.57732373", "0.57724845", "0.57615143", "0.5754409", "0.5744483", "0.5744483", "0.5718658", "0.57143426", "0.570975", "0.5708742", "0.56918854", "0.565843", "0.56255203", "0.56152254", "0.56152254", "0.5609947", "0.560522", "0.5604553", "0.5580067", "0.5572479", "0.5548415", "0.55421084", "0.55338943", "0.55323553", "0.5512643", "0.55071634", "0.549269", "0.54901415", "0.54875135", "0.5486432", "0.54810655", "0.5479796", "0.547699", "0.5469419", "0.5469419", "0.54683405", "0.54675573", "0.54637", "0.54534024", "0.5452916", "0.54308194", "0.54258287", "0.5425017", "0.5415907", "0.5405781", "0.53936315", "0.53757495", "0.53720325", "0.5368614", "0.5368044", "0.53672487", "0.5362388", "0.53623533", "0.5361565", "0.53608984", "0.5358878", "0.535548", "0.53515154", "0.53452885", "0.53428036", "0.5337569", "0.53250366", "0.53225434", "0.5321853", "0.53178984", "0.5315797", "0.5315314" ]
0.0
-1
Making it as singleton to access the userInfo and session in other places
public static TwitterApplication getInstance() { return application; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }", "SessionManager get();", "public interface ISessionService {\n\n /**\n * Indicates what's the current server's bank.\n * @return\n */\n shared.data.Bank getBank();\n\n /**\n * Sets the current server's bank at startup.\n * Should not be changed once server is online.\n * @param bank\n */\n void setBank(shared.data.Bank bank);\n\n /**\n * Returns a file logger where to write the logs for the server.\n * @return\n */\n IFileLogger log();\n}", "public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}", "Session getCurrentSession();", "Session getCurrentSession();", "public abstract I_SessionInfo getSessionInfo(I_SessionName sessionName);", "public SessionManager(API api) {\n _api = api;\n }", "protected Session getSession() { return session; }", "public abstract I_SessionInfo getSession(I_SessionName sessionName);", "private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "Session getSession();", "Session getSession();", "public interface SessionManager {\n void getSession(String request);\n}", "public SessionService() {\n user = new User();\n project = new Project();\n project.setId(-1);\n project.setName(\"не выбран\");\n logged = false;\n textUpdated = false;\n }", "private Session() {\n }", "private Session() {\n }", "private SingletonEager(){\n \n }", "protected abstract SESSION getThisAsSession();", "protected Session getSession() {\n return sessionUtility.getSession();\n }", "SessionManagerImpl() {\n }", "public static JWTLoginModuleDataHolder getInstance() {\n return instance;\n }", "protected final Session getSession() {\n return sessionTracker.getSession();\n }", "public static UserManagerImpl getInstance()\r\n\t{\r\n\t\treturn singleton;\r\n\t}", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}", "public interface User\n extends HttpSessionBindingListener, TurbineUserDelegate, TurbineUser\n{\n /** The 'perm storage' key name for the create_date field. */\n String CREATE_DATE = \"CREATE_DATE\";\n\n /** The 'perm storage' key name for the last_login field. */\n String LAST_LOGIN = \"LAST_LOGIN\";\n\n /** The 'perm storage' key for the confirm_value field. */\n String CONFIRM_VALUE = \"CONFIRM_VALUE\";\n\n /** This is the value that is stored in the database for confirmed users */\n String CONFIRM_DATA = \"CONFIRMED\";\n\n /** The 'perm storage' key name for the access counter. */\n String ACCESS_COUNTER = \"_access_counter\";\n\n /** The 'temp storage' key name for the session access counter */\n String SESSION_ACCESS_COUNTER = \"_session_access_counter\";\n\n /** The 'temp storage' key name for the 'has logged in' flag */\n String HAS_LOGGED_IN = \"_has_logged_in\";\n\n /** The session key for the User object. */\n String SESSION_KEY = \"turbine.user\";\n\n /**\n * Gets the access counter for a user from perm storage.\n *\n * @return The access counter for the user.\n */\n int getAccessCounter();\n\n /**\n * Gets the access counter for a user during a session.\n *\n * @return The access counter for the user for the session.\n */\n int getAccessCounterForSession();\n\n /**\n * Gets the last access date for this User. This is the last time\n * that the user object was referenced.\n *\n * @return A Java Date with the last access date for the user.\n */\n Date getLastAccessDate();\n\n /**\n * Gets the create date for this User. This is the time at which\n * the user object was created.\n *\n * @return A Java Date with the date of creation for the user.\n */\n Date getCreateDate();\n\n /**\n * Returns the user's last login date.\n *\n * @return A Java Date with the last login date for the user.\n */\n Date getLastLogin();\n\n /**\n * Get an object from permanent storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getPerm(String name);\n\n /**\n * Get an object from permanent storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getPerm(String name, Object def);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getPermStorage();\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getTempStorage();\n\n /**\n * Get an object from temporary storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getTemp(String name);\n\n /**\n * Get an object from temporary storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getTemp(String name, Object def);\n\n /**\n * This sets whether or not someone has logged in. hasLoggedIn()\n * returns this value.\n *\n * @param value Whether someone has logged in or not.\n */\n void setHasLoggedIn(Boolean value);\n\n /**\n * The user is considered logged in if they have not timed out.\n *\n * @return True if the user has logged in.\n */\n boolean hasLoggedIn();\n\n /**\n * Increments the permanent hit counter for the user.\n */\n void incrementAccessCounter();\n\n /**\n * Increments the session hit counter for the user.\n */\n void incrementAccessCounterForSession();\n\n /**\n * Remove an object from temporary storage and return the object.\n *\n * @param name The name of the object to remove.\n * @return An Object.\n */\n Object removeTemp(String name);\n\n /**\n * Sets the access counter for a user, saved in perm storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounter(int cnt);\n\n /**\n * Sets the session access counter for a user, saved in temp\n * storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounterForSession(int cnt);\n\n /**\n * Sets the last access date for this User. This is the last time\n * that the user object was referenced.\n */\n void setLastAccessDate();\n\n /**\n * Set last login date/time.\n *\n * @param lastLogin The last login date.\n */\n void setLastLogin(Date lastLogin);\n\n /**\n * Put an object into permanent storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setPerm(String name,\n Object value);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setPermStorage(Map<String, Object> storage);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setTempStorage(Map<String, Object> storage);\n\n /**\n * Put an object into temporary storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setTemp(String name, Object value);\n\n /**\n * Sets the creation date for this user.\n *\n * @param date Creation date\n */\n void setCreateDate(Date date);\n\n /**\n * This method reports whether or not the user has been confirmed\n * in the system by checking the TurbineUserPeer.CONFIRM_VALUE\n * column to see if it is equal to CONFIRM_DATA.\n *\n * @return True if the user has been confirmed.\n */\n boolean isConfirmed();\n\n /**\n * Sets the confirmation value.\n *\n * @param value The confirmation key value.\n */\n void setConfirmed(String value);\n\n /**\n * Gets the confirmation value.\n *\n * @return The confirmed value\n */\n String getConfirmed();\n\n /**\n * Updates the last login date in the database.\n *\n * @throws Exception A generic exception.\n */\n\n void updateLastLogin()\n throws Exception;\n}", "public UserSession(User user) {\n\n }", "public UserInfo getUserInfo() {\r\n return userInfo;\r\n }", "private Session() {\n userId = -1;\n onUserDeletion = null;\n }", "public static UserManager getInstance() {\r\n\t\treturn instance; // way to create a singleton, other ways is in Headfirst Design Patterns book\r\n\t}", "public static Session getSession() {\n return session;\n }", "public PSUserSession getSession();", "public static SessionKeeper getInstance(){\r\n if (sessionKeeperInstance == null) sessionKeeperInstance = new SessionKeeper();\r\n return sessionKeeperInstance;\r\n }", "public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}", "public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }", "public Session getSession() { return session; }", "public UserInfo getUserInfo() {\n return userInfo;\n }", "private SparkeyServiceSingleton(){}", "private UserInterface() {\r\n\t\tif (yesOrNo(\"Look for saved data and use it?\")) {\r\n\t\t\tretrieve();\r\n\t\t} else {\r\n\t\t\tstore = Store.instance();\r\n\t\t}\r\n\t}", "public SessionService session() {\n return service;\n }", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "private SingletonLectorPropiedades() {\n\t}", "public static AuthenticationData getInstance() {\n\n if(authenticationData == null){\n authenticationData = new AuthenticationData();\n }\n return authenticationData;\n }", "public PppoeSessionInfo() {\n }", "public Session getSession();", "protected final Session getSession() {\n\t\treturn m_sess;\n\t}", "final protected RobotSessionGlobals getSession() {\n return mSession;\n }", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "Shared shared();", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "public AuthStorageSession() { \n }", "public SessionInfo getSessionInfo() {\n\t\treturn sessionInfo;\n\t}", "private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }", "public User getSession(){\n\t\treturn this.session;\n\t}", "AuthenticationSessionModel getAuthenticationSession();", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "public jkt.hms.masters.business.MasSession getSession () {\n\t\treturn session;\n\t}", "private SessionFactoryUtils() {\n super();\n }", "public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }", "private void loggedInUser() {\n\t\t\n\t}", "public interface Globals {\n\n Integer USER_TYPE_ADMIN = 0;\n Integer USER_TYPE_USER = 1;\n\n String SESSION_KEY = \"session_admin\";\n String ERROR_MSG = \"session_err_msg\";\n String LOGIN_KEY = \"login_xinyuewulian\";\n\n /**\n * 显示内容\n */\n Map<Integer,String> MAP_USER_HASH_TYPE = new HashMap<Integer,String>(){\n {\n put(USER_TYPE_ADMIN,\"管理员\");\n put(USER_TYPE_USER,\"普通用户\");\n }\n };\n\n /**\n * 下拉列表\n */\n Map<Integer,String> MAP_USER_LINKED_TYPE = new LinkedHashMap<>(MAP_USER_HASH_TYPE);\n\n\n /**\n * 显示内容\n */\n Map<Integer,String> MAP_PARAM_HASH_TYPE = new HashMap<Integer,String>(){\n {\n put(0,\"可编辑可删除\");\n put(1,\"可编辑不可删除\");\n put(2,\"只读\");\n }\n };\n\n /**\n * 下拉列表\n */\n Map<Integer,String> MAP_PARAM_LINKED_TYPE = new LinkedHashMap<>(MAP_PARAM_HASH_TYPE);\n\n /**\n * 显示内容\n */\n Map<Integer,String> MAP_SYSTEM_HASH_TYPE = new HashMap<Integer,String>(){\n {\n put(0,\"Android系统\");\n put(1,\"IOS系统\");\n }\n };\n\n /**\n * 下拉列表\n */\n Map<Integer,String> MAP_SYSTEM_LINKED_TYPE = new LinkedHashMap<>(MAP_SYSTEM_HASH_TYPE);\n\n\n /**\n * 显示内容\n */\n Map<Integer,String> MAP_STATE_HASH_TYPE = new HashMap<Integer,String>(){\n {\n put(1,\"启用\");\n put(-1,\"停用\");\n }\n };\n\n /**\n * 下拉列表\n */\n Map<Integer,String> MAP_STATE_LINKED_TYPE = new LinkedHashMap<>(MAP_STATE_HASH_TYPE);\n\n\n /**\n * 显示内容\n */\n List<String> DATE_FORMAT_LIST = new ArrayList<String>(){\n {\n add(\"yyyy\");\n add(\"yyyyMM\");\n add(\"yyyyMMdd\");\n add(\"yyyyMMddHH\");\n add(\"yyyyMMddHHmm\");\n }\n };\n}", "private AuthenticationData() {\n\n }", "@Override\r\n public void onModuleLoad() {\r\n //register auto refreshing timer\r\n// autoRefresh = new Timer() {\r\n// @Override\r\n// public void run() {\r\n// Shared.EVENT_BUS.fireEvent(new UIRefreshEvent());\r\n// }\r\n// };\r\n// autoRefresh.scheduleRepeating(AUTO_REFRESH_INTERVAL);\r\n \r\n \r\n //read cookies to recover previous session\r\n if (cookie.getSeesionID().isEmpty()) {\r\n //create new session\r\n newSession();\r\n }else{\r\n //try to rebind the old session\r\n Shared.RPC.getSession(cookie.getSeesionID(), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s == null){\r\n //the session is absent on server\r\n Info.display(\"Expired\", \"Your session is expired, please sign in again\");\r\n newSession();\r\n }else{\r\n Shared.MY_SESSION = s; \r\n //try to auto sign in using saved accountKey\r\n if (cookie.getAccountKey(s).isEmpty() || s.getAccount() == null){\r\n //not to keep signed in / or not yet signed in\r\n //do nothing, wait for signing in\r\n }else{\r\n //try to sign in\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGN_IN)); //didn't set the account key because setting it result in overwrite the cookies\r\n Shared.RPC.signInAndBindSession(s.getAccount(), s, cookie.getAccountKey(s), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n //login successful\r\n Shared.MY_SESSION = s;\r\n //dispatch sign in event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_IN));\r\n } else {\r\n Info.display(\"Incorrect\", \"Please check your password and try again\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n }); \r\n }\r\n }\r\n }\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n \r\n\r\n\r\n \r\n \r\n res.common_css().ensureInjected(); \r\n Widget loginpage = new LoginPage();\r\n RootPanel.get().add(loginpage);\r\n\r\n //add event handler for SignEvent event\r\n Shared.EVENT_BUS.addHandler(SignEvent.TYPE, new SignEvent.SignEventHandler(){\r\n @Override\r\n public void onSign(SignEvent event){\r\n //process sign_in\r\n //process signed_in\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }\r\n });\r\n \r\n \r\n }", "public LocalSession session() { return session; }", "private Session session(Properties props) {\n return Session.getInstance(props,\n new Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"happinessbarometer2014\");\n }\n }\n );\n }", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }", "@Override\n\tpublic MemberVO getSession() {\n\t\treturn null;\n\t}", "@Around(\"singletonsScope()\")\n \tpublic Object aroundSingletons(ProceedingJoinPoint jp) throws Throwable {\n\n Class<?> singClass = jp.getSignature().getDeclaringType();\n logger.info(\"Creating singleton for class: {}\", singClass);\n\n Object singObj = this.singletons.get(singClass);\n if (singObj == null) {\n logger.info(\"First time singleton creation, adding to map\");\n singObj = jp.proceed();\n this.singletons.put(singClass, singObj);\n }\n logger.debug(\"Object: \" + singObj);\n return singObj;\n }", "@Override\r\npublic void setSession(Map<String, Object> arg0) {\n\t\r\n}", "@Local\npublic interface UserSession extends Service {\n\n\t/**\n\t * Getter for the user name.\n\t *\n\t * @return the user name\n\t */\n\tString getUserName();\n\n\t/**\n\t * Setter for the\n\t *\n\t * @param userName\n\t */\n\tvoid setUserName(String userName);\n}", "protected AccessionSessionBean getgermplasm$AccessionSessionBean() {\n return (AccessionSessionBean) getBean(\"germplasm$AccessionSessionBean\");\n }", "public static UserController getInstance(){\n if(INSTANCE == null){\n synchronized(UserController.class){\n if(INSTANCE==null){\n INSTANCE = new UserController();\n }\n }\n }\n else\n {\n return INSTANCE; \n }\n return INSTANCE;\n }", "private LogIn() {}", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "private SingletonObject() {\n\n\t}", "public static SingleObject getInstance(){\n return instance;\n }", "protected abstract SESSION newSessionObject() throws EX;", "public EhcacheSessionDataStorage() {\n this(SESSION_NAME);\n }", "public MainSessionBean() {\r\n init();\r\n }", "public static Login getInstance(){\n if (login==null){\n login=new Login();\n }\n return login;\n }", "public interface SessionService {\n\n Session addSession(Session session);\n Session getSession(Long id);\n boolean deleteSession(Long id);\n List<Session> getSessions();\n boolean updateRecord(Long id, String record);\n}", "UserInfo getUserInfo();", "public static EnduserApi getSharedInstance() {\n if (EnduserApi.sharedInstance == null) {\n throw new NullPointerException(\"Instance is null. Please use getSharedInstance(apikey, context) \" +\n \"or setSharedInstance\");\n }\n return EnduserApi.sharedInstance;\n }", "public Session getSession() {\n return session;\n }", "private Single<SessionEntity> newSession(UserEntity userEntity) {\n return this.authApi.getToken().flatMap(requestTokenEntity ->\n this.authApi.validateToken(\n new ValidateTokenEntity(\n userEntity.getTMDBUsername(),\n userEntity.getTMDBPassword(),\n requestTokenEntity.getRequestToken()\n )\n ).doOnError((e)-> {\n updateUser(new SessionEntity(false, \"\"), userEntity);\n createUserSession();\n })\n .flatMap(validatedRequestToken ->\n this.authApi.createSession(validatedRequestToken.getRequestToken()).doOnSuccess(sessionEntity -> {\n if (!sessionEntity.isSuccess()) {\n //TODO - refreshSession few times and return guest session.\n }\n\n updateUser(sessionEntity, userEntity);\n }\n )\n ));\n }", "public static KmUserMstr getUserDetails(HttpServletRequest request)\r\n\t{\r\n\t\tKmUserMstr userBean = new KmUserMstr();\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tuserBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t}\r\n\t\treturn userBean;\r\n\t}", "private Singleton(){}", "User getCurrentLoggedInUser();", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "public interface SessionManager {\n\n /**\n * Return the distributable flag for the sessions supported by\n * this SessionManager.\n */\n public boolean getDistributable();\n\n\n /**\n * Set the distributable flag for the sessions supported by this\n * SessionManager. If this flag is set, all user data objects added to\n * sessions associated with this manager must implement Serializable.\n *\n * @param distributable The new distributable flag\n */\n public void setDistributable(boolean distributable);\n\n /**\n * Return the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n */\n public int getMaxInactiveInterval();\n\n /**\n * Set the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n *\n * @param interval The new default value\n */\n public void setMaxInactiveInterval(int interval);\n\n /**\n * Returns the total number of sessions created by this manager.\n *\n * @return Total number of sessions created by this manager.\n */\n public long getSessionCounter();\n\n\n /**\n * Sets the total number of sessions created by this manager.\n *\n * @param sessionCounter Total number of sessions created by this manager.\n */\n public void setSessionCounter(long sessionCounter);\n\n\n /**\n * Gets the maximum number of sessions that have been active at the same\n * time.\n *\n * @return Maximum number of sessions that have been active at the same\n * time\n */\n public int getMaxActive();\n\n\n /**\n * (Re)sets the maximum number of sessions that have been active at the\n * same time.\n *\n * @param maxActive Maximum number of sessions that have been active at\n * the same time.\n */\n public void setMaxActive(int maxActive);\n\n\n /**\n * Gets the number of currently active sessions.\n *\n * @return Number of currently active sessions\n */\n public int getActiveSessions();\n\n\n /**\n * Gets the number of sessions that have expired.\n *\n * @return Number of sessions that have expired\n */\n public long getExpiredSessions();\n\n\n /**\n * Sets the number of sessions that have expired.\n *\n * @param expiredSessions Number of sessions that have expired\n */\n public void setExpiredSessions(long expiredSessions);\n\n\n /**\n * Gets the number of sessions that were not created because the maximum\n * number of active sessions was reached.\n *\n * @return Number of rejected sessions\n */\n public int getRejectedSessions();\n\n\n /**\n * Gets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @return Longest time (in seconds) that an expired session had been\n * alive.\n */\n public int getSessionMaxAliveTime();\n\n\n /**\n * Sets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @param sessionMaxAliveTime Longest time (in seconds) that an expired\n * session had been alive.\n */\n public void setSessionMaxAliveTime(int sessionMaxAliveTime);\n\n\n /**\n * Gets the average time (in seconds) that expired sessions had been\n * alive. This may be based on sample data.\n *\n * @return Average time (in seconds) that expired sessions had been\n * alive.\n */\n public int getSessionAverageAliveTime();\n\n\n /**\n * Gets the current rate of session creation (in session per minute). This\n * may be based on sample data.\n *\n * @return The current rate (in sessions per minute) of session creation\n */\n public int getSessionCreateRate();\n\n\n /**\n * Gets the current rate of session expiration (in session per minute). This\n * may be based on sample data\n *\n * @return The current rate (in sessions per minute) of session expiration\n */\n public int getSessionExpireRate();\n // --------------------------------------------------------- Public Methods\n\n\n /**\n * Add this Session to the set of active Sessions for this SessionManager.\n *\n * @param session Session to be added\n */\n public void add(Session session);\n\n /**\n * Change the session ID of the current session to a new randomly generated\n * session ID.\n *\n * @param session The session to change the session ID for\n */\n public void changeSessionId(Session session);\n\n\n /**\n * Get a session from the recycled ones or create a new empty one.\n * The PersistentManager manager does not need to create session data\n * because it reads it from the Store.\n */\n public Session createEmptySession();\n\n\n /**\n * Construct and return a new session object, based on the default\n * settings specified by this SessionManager's properties. The session\n * id specified will be used as the session id.\n * If a new session cannot be created for any reason, return\n * <code>null</code>.\n *\n * @param sessionId The session id which should be used to create the\n * new session; if <code>null</code>, the session\n * id will be assigned by this method, and available via the getId()\n * method of the returned session.\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n */\n public Session createSession(String sessionId);\n\n\n /**\n * Return the active Session, associated with this SessionManager, with the\n * specified session id (if any); otherwise return <code>null</code>.\n *\n * @param id The session id for the session to be returned\n *\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n * @exception IOException if an input/output error occurs while\n * processing this request\n */\n public Session findSession(String id) throws IOException;\n\n\n /**\n * Return the set of active Sessions associated with this SessionManager.\n * If this SessionManager has no active Sessions, a zero-length array is returned.\n */\n public Session[] findSessions();\n\n\n /**\n * Load any currently active sessions that were previously unloaded\n * to the appropriate persistence mechanism, if any. If persistence is not\n * supported, this method returns without doing anything.\n *\n * @exception ClassNotFoundException if a serialized class cannot be\n * found during the reload\n * @exception IOException if an input/output error occurs\n */\n public void load() throws ClassNotFoundException, IOException;\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n */\n public void remove(Session session);\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n * @param update Should the expiration statistics be updated\n */\n public void remove(Session session, boolean update);\n\n /**\n * Save any currently active sessions in the appropriate persistence\n * mechanism, if any. If persistence is not supported, this method\n * returns without doing anything.\n *\n * @exception IOException if an input/output error occurs\n */\n public void unload() throws IOException;\n\n /**\n * This method will be invoked by the context/container on a periodic\n * basis and allows the manager to implement\n * a method that executes periodic tasks, such as expiring sessions etc.\n */\n public void backgroundProcess();\n\n}", "public static DynaStoreSession getDynaStoreSession(RequestContext req,Map mapData){\r\n\t\tDynaStoreSession dynaSession=new DynaStoreSession(req,mapData);\r\n\t\treturn dynaSession;\r\n\t}", "public void setSession(Session session) {\n\tthis.session = session; \r\n}" ]
[ "0.7180131", "0.65388584", "0.64306015", "0.63453734", "0.62269974", "0.62228215", "0.62228215", "0.61714476", "0.6138943", "0.61223745", "0.61038977", "0.6069935", "0.60657436", "0.606218", "0.606218", "0.6053052", "0.6040933", "0.602509", "0.602509", "0.59933245", "0.5989676", "0.59768397", "0.59689975", "0.5966943", "0.5940442", "0.59213585", "0.59088916", "0.59035033", "0.5901623", "0.58963203", "0.58928084", "0.58848786", "0.58798206", "0.5864686", "0.5861017", "0.585042", "0.5842226", "0.58390456", "0.582875", "0.5820407", "0.5809056", "0.5792759", "0.578812", "0.5769763", "0.5765733", "0.5763196", "0.575106", "0.5737519", "0.5733205", "0.573089", "0.5715123", "0.5712748", "0.5708505", "0.5697729", "0.56931657", "0.56886727", "0.5687234", "0.5687234", "0.5685072", "0.56736463", "0.56686884", "0.56666005", "0.564952", "0.56463593", "0.5621025", "0.56192005", "0.5618674", "0.5618449", "0.5612279", "0.56002694", "0.5594074", "0.55900747", "0.5588114", "0.5580299", "0.55756474", "0.5574919", "0.5572148", "0.5571689", "0.5565587", "0.5562257", "0.5559926", "0.5556841", "0.5539649", "0.55378795", "0.5537173", "0.55367106", "0.5534092", "0.5532678", "0.5525224", "0.552188", "0.5507275", "0.5504485", "0.55010486", "0.5498658", "0.5493994", "0.5491231", "0.54898316", "0.54880923", "0.5479472", "0.5478816", "0.5478487" ]
0.0
-1
Created by LGD on 2019/08/14.
public interface UserDao { List<User> selectUsers(); List<User> selectUserslistPage(Map<String,Object> map); User selectUserByName(Map<String,Object> map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private static void cajas() {\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\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "public Pitonyak_09_02() {\r\n }", "Petunia() {\r\n\t\t}", "private TMCourse() {\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "private UsineJoueur() {}", "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 public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "Consumable() {\n\t}", "private Singletion3() {}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\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\tpublic void create() {\n\t\t\n\t}", "private final zzgy zzgb() {\n }", "private void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }" ]
[ "0.57302386", "0.5695185", "0.54698515", "0.54570127", "0.5419008", "0.53743076", "0.5349697", "0.5349697", "0.53463453", "0.53452253", "0.5282926", "0.5263043", "0.52340496", "0.5233991", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.5229024", "0.5220279", "0.521583", "0.52119166", "0.5196163", "0.51929826", "0.5170535", "0.5165438", "0.5165404", "0.51630497", "0.5157584", "0.5149022", "0.51449174", "0.5144568", "0.51432425", "0.5141937", "0.51415235", "0.51228523", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.51154166", "0.5108226", "0.5107085", "0.51011574", "0.5093442", "0.50872463", "0.5080473", "0.50759995", "0.5074789", "0.50719285", "0.506663", "0.5064476", "0.50631523", "0.50571257", "0.50508153", "0.5043214", "0.50372386", "0.5036488", "0.50351334", "0.5031168", "0.5031168", "0.5031168", "0.5030882", "0.5020033", "0.5020033", "0.50173235", "0.50173235", "0.50173235", "0.50173235", "0.50173235", "0.50119054", "0.49965048", "0.4995573", "0.4995108", "0.49845332", "0.4975829", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755", "0.49755" ]
0.0
-1
/ Every subclass must to implement this magic method.
public abstract Object eval();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\n\tpublic void anular() {\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\tprotected void getExras() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected abstract Set method_1559();", "@Override\r\n\tpublic void rozmnozovat() {\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\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}" ]
[ "0.6833513", "0.66930574", "0.6673571", "0.65751165", "0.65100396", "0.6505202", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.6492737", "0.64884263", "0.64884263", "0.64884263", "0.6470326", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.6456019", "0.64149815", "0.63894063", "0.63894063", "0.63894063", "0.6388331", "0.63059705", "0.63059705", "0.628086", "0.6213007", "0.6210516", "0.6196015", "0.6190931", "0.614979", "0.6131816", "0.61113477", "0.60979176", "0.60979176", "0.6096466", "0.607365", "0.6057631", "0.605665", "0.605665", "0.605665", "0.60565865", "0.60518694", "0.6029547", "0.6023305", "0.6022981", "0.6022981", "0.6022981", "0.6022981", "0.6022981", "0.6022981", "0.5968822", "0.5968822", "0.5961535", "0.5954639", "0.59540987", "0.5937775", "0.59303224", "0.5917182", "0.59164387", "0.59138775", "0.5911599", "0.5907524", "0.59060663", "0.59045094", "0.5894892", "0.5891525", "0.58834004", "0.58767515", "0.58751565", "0.58751565", "0.58751565", "0.586851", "0.5856887", "0.5853306", "0.5851661", "0.5851007", "0.58465683" ]
0.0
-1
Clear the choice selection.
public void clearChoiceSelect() { choiceSelect = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearChoiceSelect() {\n choiceSelect = -1;\n }", "public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }", "void clearSelection();", "public void clearSelection() {\n buttonGroup.clearSelection();\n }", "public void clearSelection() {\n getElement().clearSelection();\n }", "public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }", "public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "private void toClear()\n {\n tfPaintId.setText(\"\");\n tfName.setText(\"\");\n tfPrice.setText(\"\");\n tfColor.setText(\"\");\n rwCombo.setSelectedIndex(0);\n bCombo.setSelectedIndex(0);\n typeCombo.setSelectedIndex(0);\n tfQuantity.setText(\"\");\n bg.clearSelection();\n \n }", "public void setClear()\n\t{\n\t\tsbm_consignCom1.db.remove(text_BookingID.getSelectedItem());\n\t\tsbm_consignCom1.cb.setSelectedItem(\"\");\n\t\ttext_advance.setText(\"\");\n\t\ttext_adults.setText(\"\");\n\t\ttext_children.setText(\"\");\n\t}", "public void clearSelection()\n/* */ {\n/* 166 */ if (isSelectionEmpty()) return;\n/* 167 */ clearSelectionImpl();\n/* 168 */ fireValueChanged(DateSelectionEvent.EventType.SELECTION_CLEARED);\n/* */ }", "public void clearSelection()\r\n {\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n selectionModel.clearSelection();\r\n }", "public void removeAllOptions() {\n\t\toptGroup.getOptions().clear();\n\t\tsetText(\"\");\n\t}", "public abstract void clearAllSelections();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tROOM.setSelectedItem(\"\");\n\t\t\t\ttxtrent.setText(\"\");\n\t\t\t\ttxtSeat.setText(\"\");\n\t\t\t\tgrp.clearSelection();\n\t\t\t}", "@Override\n public void clear() {\n sortOrder = null;\n selection = Selection.with();\n }", "public void clearSelection() {\n\t\ttable.clearSelection();\n\t}", "private void clear() {\n\n machrefno.setText(null);\n machname.setText(null);\n manu.setSelectedItem(null);\n Date.setDate(null);\n dept.setSelectedItem(null);\n stat.setSelectedItem(null);\n \n }", "public void clearCombo() {\n\t\tcombo = false;\n\t}", "public void removeSelection() {\n this.selection = null;\n }", "public void ClearSearch(){\n \n SearchTF.setText(\"\");\n jComboBox1.setSelectedIndex(0);\n }", "public static void reset() {\n\t\tselectedAtts.clear();\n\t}", "public void reset() {\r\n availableOptionsModel.getObject().clear();\r\n selectedOptionsModel.getObject().clear();\r\n paletteForm.visitChildren(FormComponent.class, new IVisitor<Component>() {\r\n @Override\r\n public Object component(Component component) {\r\n ((FormComponent<?>) component).clearInput();\r\n return Component.IVisitor.CONTINUE_TRAVERSAL;\r\n }\r\n });\r\n paletteForm.getModelObject().setSearchString(\"\");\r\n }", "public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }", "public void clear() {\n\t\tsuper.clear();\n\t\tthis.modelList.clear();\n\t\tif (elementoSeleccionar != null) {\n\t\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t\t}\n\t}", "public void deselectAll() {\n\t\tselected.clear();\n\t}", "private void clearBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n modelTxt.setText(\"\");\n catCombo.setSelectedIndex(0);\n rentTxt.setText(\"\");\n }", "public void resetSelectPresentation();", "public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }", "public void clearAllSelected() {\n getSelectHelper().clearAllSelected();\n }", "public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}", "@Override\n public void clear() {\n view.setText(\"\");\n view.setSelection(view.getText().length());\n }", "public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }", "public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }", "public void reset() {\n\n\t\trbNone.setSelected(true);\n\t\tquizIDField.clear();\n\t\tfilter();\n\t\t\n\t}", "public void reset()\n\t{\n\t\tthis.resetSelected();\n\t\tthis.clearMsgArea();\n\t}", "public abstract void clearSelection(TextAppearance appearance);", "public void reset() {\n txtCutiID.setText(\"\");\n txtTglAwal.setText(\"\");\n txtTglAkhir.setText(\"\");\n txtKet.setText(\"\");\n cmbCutiKhususID.setSelectedItem(\"\");\n }", "public void clear() {\n lb.setText(\"\");\n }", "@Override\n public void onNothingSelected(AdapterView<?> parent) {\n choice=0;\n }", "@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}", "private void btnClearActionPerformed(java.awt.event.ActionEvent evt) {\n txtSentence.setText(\"\");\n Result.setText(\"\");\n Vowel.setSelected(false);\n Notvowel.setSelected(false);\n V3.setSelected(false);\n }", "public Builder clearSelect() {\n\n select_ = getDefaultInstance().getSelect();\n onChanged();\n return this;\n }", "public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }", "@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}", "private void clearEverything(){\n partTime.setSelected(false);\n fullTime.setSelected(false);\n management.setSelected(false);\n addIT.setSelected(false);\n addCS.setSelected(false);\n addECE.setSelected(false);\n dateAddText.clear();\n nameAddText.clear();\n hourlyAddText.clear();\n annualAddText.clear();\n managerRadio.setSelected(false);\n dHeadRadio.setSelected(false);\n directorRadio.setSelected(false);\n\n removeCS.setSelected(false);\n removeECE.setSelected(false);\n removeIT.setSelected(false);\n dateRemoveText.clear();\n nameRemoveText.clear();\n\n setCS.setSelected(false);\n setECE.setSelected(false);\n setIT.setSelected(false);\n dateSetText.clear();\n nameSetText.clear();\n hoursSetText.clear();\n\n }", "public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}", "public void clear()\n\t\t{\n\t\t\ttxtCustomerName.setText(\"\");\n\t\t\ttxtAddress.setText(\"\");\n\t\t\ttxtContact.setText(\"\");\n\t\t\ttxtProduct.setText(\"\");\n\t\t\ttxtSerialNo.setText(\"\");\n\t\t\ttxtModuleNo.setText(\"\");\n\t\t\ttxtComplaintNo.setText(\"\");\n\t\t\tCategorycomboBox.setSelectedItem(\"Sent\");\n\t\t}", "public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }", "private void resetValue() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.quesTxt.setText(\"\");\n\t\tthis.ansTxt.setText(\"\");\n\t\tthis.quizDescTxt.setText(\"\");\n\t\tif (this.quizTypeJcb.getItemCount() > 0) { // if type number is not 0, then select first one\n\t\t\tthis.quizTypeJcb.setSelectedIndex(0);\n\t\t}\n\t}", "public void clearMealBrowserFields(){\n mealMethod.clear();\n browseMealNutritionOne.setText(\"\");\n browseMealNutritionTwo.setText(\"\");\n mealIngred.getItems().clear();\n comboMealSelection.getSelectionModel().clearSelection();\n }", "@Override\n public void clear() //Modify to take in Authenication ID for future logging function\n {\n super.clear();\n comboBoxModelSelectedItem = null;\n modelListenersNotify();\n }", "public void clearSelectionSquare() {\r\n\r\n\t\tsetSize(0, 0);\r\n\r\n\t}", "protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}", "public void clearAnswer(){\r\n textField1.setText(\"\");\r\n }", "public void onClear(View v) {\r\n /* Clears all selected radio buttons to default */\r\n radioGroup.clearCheck();\r\n }", "void reset() {\n colorSelectedList = new HashSet<>();\n }", "private void btn_clearAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearAllActionPerformed\n \n //Code to remove all selected items \n txt_inDate.setDate(null);\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setText(\"\");\n }", "public void resetForm() {\n selectedTipo = null;\n }", "public void reset() {\n price = 0;\n itemNumbers.clear();\n selectedOptions.clear();\n setupGUI();\n }", "@attribute(value = \"\", required = false, defaultValue=\"false\")\r\n\tpublic void removeAll() {\r\n\t\tcombo.removeAll();\r\n\t}", "@FXML\n public void clearLunchPlanner(){\n //get the day selection\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (selectedDay != null){\n selectedDay.setLunch(null);\n lunchCombo.getSelectionModel().clearSelection();\n weekList.refresh();\n } else {\n System.out.println(\"No Day Selection made\");\n }\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "protected void clear() {\r\n setValue(getDefault());\r\n }", "public void clearGame() {\n\t\tselectedObjects.clear();\n\t}", "public void clearSelectedFontSize()\r\n\t{\r\n\t\t// deselect the currently selected item in the Font Size list if there is one\r\n\t\tfontSizeList.clearSelection();\r\n\t}", "public void clearInterface(){\n spinnerstd.setSelection(0);\n month.setSelection(0);\n }", "@VisibleForTesting\n void cancelProvisionalSelection() {\n mProvisionalSelection.clear();\n }", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "@Override\n\tpublic void unselect() {\n\t}", "public void resetSelected()\n\t{\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tthis.selected[i] = false;\n\t\t}\n\t}", "public void reset(){\r\n\t\tdialogToDisplay=0;\r\n\t\tqueuedDialog=0;\r\n\t\toptionSelection=null;\r\n\t\tdone=false;\r\n\t}", "public void clearLunchNutrition(){\n lunchNutritionOne.setText(\"\");\n lunchNutritionTwo.setText(\"\");\n }", "public void clearSelectedSquares() {\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}", "public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }", "@FXML\n public void limpaCidade(){\n \ttxtNome.setText(\"\");\n \ttxtUf.getSelectionModel().clearSelection();\n }", "private void clearSelector() {\n \n selector_ = getDefaultInstance().getSelector();\n }", "@Override\n public void deselectGolem() {\n }", "public void clear () {\n\t\treset();\n\t}", "@Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n //Changes all text views to nothing\n asiaCapital.setText(\"\");\n asiaLanguage.setText(\"\");\n asiaCurrency.setText(\"\");\n asiaVisa.setText(\"\");\n }", "public void ClearAllThings(ActionEvent actionEvent) {\n questionName.clear();\n question.clear();\n subjects.setValue(0);\n className.setValue(0);\n answer.clear();\n points.clear();\n hint.clear();\n easy.setSelected(false);\n medium.setSelected(false);\n hard.setSelected(false);\n }", "public void clearTrip(Boolean displayMessage) {\n\n items = null;\n\n question1 = null;\n question2 = null;\n question3 = null;\n\n if (displayMessage) {\n Methods.showMessage(\"Information\", \"Cleared!\", \"All Selections are Reset!\");\n }\n }", "private void jButtonClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonClearActionPerformed\n // TODO add your handling code here:\n jTextFieldActivityType.setText(\"\");\n jDateChooserStart.setDate(null);\n jDateChooserEnd.setDate(null);\n }", "public void removeSelections() {\n selectedItems.clear();\n notifyDataSetChanged();\n }", "public void deselect();", "private void clear() {\r\n\t\tareaTexto.setText(\"\");\r\n\t}", "public void clearComboBox() {\n\t\tremove(QueryCombo);\n\t\tQueryCombo = new JComboBox();\n\t\tQueryCombo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tMObjQueryResult qr = null;\n\t\t\t\tqr = (MObjQueryResult) QueryCombo.getSelectedItem();\n\t\t\t\tif (qr != null) {\n\t\t\t\t\tqr.clearSelection();\n\t\t\t\t\tQueryScrollPane.setViewportView(qr);\n\t\t\t\t} else\n\t\t\t\t\tQueryScrollPane.setViewportView(dummy);\n\t\t\t}\n\t\t});\n\t\tadd(QueryCombo, BorderLayout.NORTH);\n\t}", "@FXML\n public void clearBreakfastPlanner(){\n //get the day selection\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (selectedDay != null){\n selectedDay.setBreakfast(null);\n breakfastCombo.getSelectionModel().clearSelection();\n weekList.refresh();\n } else {\n System.out.println(\"No Day Selection made\");\n }\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "public final void clearForm() {\n\t\tlb.addItem(\"\");\n\t\tlb.clear();\n\t}", "public void resetSelectedCases() {\n Component[] contenu = this.getComponents();\n for (int i = 0; i < contenu.length; i++) {\n if (contenu[i].getClass().equals(CaseJeu.class)) {\n CaseJeu c = (CaseJeu) contenu[i];\n if (c.getEtat().equals(Case.Etat.SELECTIONE)) {\n c.setEtat(Case.Etat.RIEN);\n }\n }\n }\n }", "private void clearStateInfo(){\r\n cmbState.removeAllItems();\r\n }", "public void clearEditMode()\n\t{\n\t\tpromptTarget = \"\";\n\t\tpromptType = \"\";\n\t\tcs = lastCs;\n\t}", "private void reset() {\n\t\tlevel.getLogic().resetBoard();\n\t\tlevelView.refresh();\n\t\tlevelView.clearSelectedWords();\n\t}", "private void getClearButtonSemantics() {\n //TODO implement method\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getResultsTextArea().setText(\"\");\n searchView.getSearchValueTextField().requestFocus();\n }", "private void clearList() {\n for (JRadioButton task : toDoButtonList){\n task.setText(\"\");\n }\n }", "public void clearButton(View view)\n {\n question1.clearCheck();\n question2.clearCheck();\n question33.clearCheck();\n question44.clearCheck();\n question55.clearCheck();\n score.setText(\"\");\n }", "public void reset()\n\t{\n\t\tthis.sourceUnit.setSelectedIndex(0);\n\t\tthis.destUnit.setSelectedIndex(0);\n\t\tthis.input.setText(\"\");\n\t\tthis.outputLabel.setText(\"\");\n\t}", "@FXML\n public void clearDinnerPlanner(){\n //get the day selection\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (selectedDay != null){\n selectedDay.setDinner(null);\n dinnerCombo.getSelectionModel().clearSelection();\n weekList.refresh();\n } else {\n System.out.println(\"No Day Selection made\");\n }\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "public void clear() {\n doClear();\n }", "public void reset(View view) {\n //Clear radio buttons\n//Clear radio buttons\n questionOne.clearCheck();\n questionTwo.clearCheck();\n questionThree.clearCheck();\n questionFour.clearCheck();\n questionFive.clearCheck();\n questionSix.clearCheck();\n questionSeven.clearCheck();\n\n //Clear EditText\n questionEightAnswer.getText().clear();\n\n //Clear checkboxes\n questionNineAnswerOne.setChecked(false);\n questionNineAnswerTwo.setChecked(false);\n questionNineAnswerThree.setChecked(false);\n questionNineAnswerFour.setChecked(false);\n\n questionTenAnswerOne.setChecked(false);\n questionTenAnswerTwo.setChecked(false);\n questionTenAnswerThree.setChecked(false);\n questionTenAnswerFour.setChecked(false);\n }", "public void clear() throws ChangeVetoException;" ]
[ "0.88620317", "0.7845655", "0.764469", "0.7594514", "0.7530107", "0.75209075", "0.74152434", "0.73318523", "0.7260807", "0.71938735", "0.7169397", "0.71429807", "0.7138146", "0.7137264", "0.7136168", "0.71130484", "0.7099428", "0.70966816", "0.7092649", "0.7041154", "0.70324653", "0.69908875", "0.6987877", "0.69844776", "0.6981943", "0.6966154", "0.6951459", "0.6899505", "0.68798816", "0.6873652", "0.6873129", "0.6851447", "0.6849518", "0.68440384", "0.6823867", "0.67989445", "0.6767907", "0.6766278", "0.67512774", "0.67193395", "0.67071635", "0.67068195", "0.6675276", "0.66714746", "0.66702104", "0.66618645", "0.66487354", "0.66418356", "0.6638214", "0.66326284", "0.66293454", "0.6621122", "0.6580464", "0.65770376", "0.6546965", "0.6543122", "0.653832", "0.65298986", "0.6498215", "0.6496075", "0.64896506", "0.64854324", "0.64388007", "0.6435981", "0.6434903", "0.64284426", "0.64067787", "0.64038825", "0.6399983", "0.63978714", "0.6381863", "0.6378595", "0.637018", "0.6369775", "0.6338751", "0.6329354", "0.63270354", "0.6285005", "0.62844205", "0.6271463", "0.6270483", "0.62689805", "0.6267486", "0.6261436", "0.62576544", "0.6257521", "0.6251797", "0.6248645", "0.62484825", "0.62482613", "0.62386054", "0.6229129", "0.6227005", "0.6222037", "0.62182176", "0.6217925", "0.6215882", "0.6196976", "0.6193925", "0.6192812" ]
0.88692325
0
Check if DTSMethod1 is current selection for choice.
public boolean ifDTSMethod1() { return choiceSelect == DTS_METHOD1_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "boolean applicable(Selection selection);", "public abstract boolean hasSelection();", "public boolean isSelectionChanged();", "public boolean getIsChosen();", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "public boolean ifAvto() {\n return choiceSelect == AVTO_CHOICE;\n }", "public void getChoice()\n {\n }", "@Override\r\n\tpublic boolean isChosen() {\n\t\treturn false;\r\n\t}", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "public String button1_action() {\n getSessionBean1().setSelected_algos(listbox1.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_tiers(listbox2.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_runs(listbox3.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_storageelems(listbox4.getValueAsStringArray(this.getContext()));\n //getSessionBean1().setSelected_branches(listbox5.getValueAsStringArray(this.getContext()));\n \n //String selected_primary = (String)dropDown1.getSelected().toString();\n //log(\"Selected Primary is\"+selected_primary);\n \n if ( dropDown1.getSelected() != null ||\n getSessionBean1().getSelected_algos().length !=0 || \n getSessionBean1().getSelected_tiers().length !=0 ||\n getSessionBean1().getSelected_runs().length != 0 ||\n getSessionBean1().getSelected_storageelems().length !=0 \n //getSessionBean1().getSelected_branches().length !=0\n ) {\n getSessionBean1().setItems_selected(\"1\");\n }\n return null;\n }", "public boolean isTimeToSelect();", "public boolean ifAvia() {\n return choiceSelect == AVIA_CHOICE;\n }", "public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }", "public String verifySelection() {\n\t\tList<TransactionType> selections = transactionTypes(selections2());\n\t\tif (selections.isEmpty())\n\t\t\treturn \"Site must be selected\";\n\t\tif (!couplings.hasCouplings())\n\t\t\treturn null;\n\t\tif (selections.size() == 1)\n\t\t\tif (couplings.from() == selections.get(0))\n\t\t\t\treturn ActorType.getActorType(couplings.from()).getName() + \" is selected so \" + ActorType.getActorType(couplings.to()).getName() + \" must be selected\";\n\t\treturn null;\n\t}", "public void chooseForMe() {\n }", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "private void checkUsingAdaptation() {\n if (tsUseAdaptation.isSelected()) {\n tfAdaptationTime.setEnabled(true);\n tfAdaptationParam.setEnabled(true);\n } else {\n tfAdaptationTime.setEnabled(false);\n tfAdaptationParam.setEnabled(false);\n }\n }", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "boolean getUserChooseTrigger();", "public String getSelectCheckMethod() {\n return m_selectCheckMethod;\n }", "public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "public boolean isChosen() {\n\t\treturn chosen;\n\t}", "public String selectedAnswer()\n {\n \n if(jrbOption1.isSelected())\n \n return\"Answer1\";\n else if(jrbOption2.isSelected())\n return\"Answer2\";\n else if(jrbOption3.isSelected())\n return\"Answer3\";\n else if(jrbOption4.isSelected())\n return\"Answer4\";\n else return null;\n}", "public abstract void selectQuestion();", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public boolean choiceChosen(CharSequence choice, @PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return false;\n }\n return TextUtils.equals(choice, mPageSummary.get(page));\n }", "public boolean isSelectionChanged() {\n return selectionChanged;\n }", "public boolean isSelectionListener() {\n return true;\n }", "public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }", "boolean isPickEnabled();", "public void setSelectCheckMethod(String name) {\n m_selectCheckMethod = name;\n }", "@objid (\"58ecd897-1664-48d8-b3fb-730128135689\")\n @Override\n public boolean isAvailable(AbstractDiagram diagram, ISelection selection) {\n if (SelectionHelper.size(selection) != 1) {\n return false;\n }\n \n // In a BPMN diagram\n if (!(diagram instanceof BpmnSubProcessDiagram) && !(diagram instanceof BpmnProcessCollaborationDiagram)) {\n return false;\n }\n \n MObject elt = SelectionHelper.getFirst(selection, MObject.class);\n return elt != null && !this.targetMetaclass.equals(elt.getMClass().getName());\n }", "public abstract void select(boolean select);", "public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}", "public void selectChangeSecurityQuestionsOption() {\n\t\ttry {\n\t\t\n\t\t\t//Utility.wait(changeSecurityQuestions);\n\t\t\tchangeSecurityQuestions.click();\n\t\t\tUtility.simpleWait(6000);\n\t\t\tLog.addMessage(\"Change Security Questions option selected\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to select Change Security Questions option\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to slect Change Security Questions option\");\n\t\t}\n\t}", "protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }", "public boolean isSelectingAction() {\n return false;\n }", "boolean isSetMethod();", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "public boolean matchesSelectionType(int type) {\n\t\tif (type == DBRecord.SELECTED && selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.UNSELECTED && !selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.SELECTED_OR_NOT)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }", "public static boolean isSelectGameTypeDone() {\r\n\t\tboolean gameTypeSelected = false;\r\n\t\t\r\n\t\t//Check if the game type has been selected.\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameTypeSelected) FrameUtils.showDialogBox(\"A Game Type must be selected.\");\r\n\t\t\t\t\r\n\t\t//Saves the game type.\r\n\t\tsaveGameType();\r\n\t\t\r\n\t\treturn gameTypeSelected;\r\n\t}", "public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}", "public boolean canSelectionChange() {\n return true;\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(10)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object onselectionchange();", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }", "public boolean isOption(ClickOption option) {\n\t\treturn this.option == option;\n\t}", "@Test\n\tpublic void testApplyToOptions_SetEquate_Selection() {\n\n\t\t// put the cursor on a scalar\n\t\tputCursorOnOperand(0x1004bbd, 0);\n\n\t\t// make a selection containing the scalar above.\n\t\tmakeSelection(tool, program, addr(\"1004bbd\"), addr(\"1004bc5\"));\n\n\t\tSetEquateDialog d = showSetEquateDialog();\n\n\t\tJRadioButton applyToCurrentButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToCurrent\");\n\t\tfinal JRadioButton applyToSelectionButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToSelection\");\n\t\tfinal JRadioButton applyToAllButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToAll\");\n\t\tJCheckBox overwriteExistingEquatesButton =\n\t\t\t(JCheckBox) findComponentByName(d.getComponent(), \"Overwrite\");\n\n\t\t//change as of 7.0 - dialog should come up with \"current location\" enabled.\n\t\tassertNotNull(applyToCurrentButton);\n\t\tassertTrue(applyToCurrentButton.isEnabled());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\n\t\t//have selection in this case so should be enabled but not selected\n\t\tassertNotNull(applyToSelectionButton);\n\t\tassertTrue(applyToSelectionButton.isEnabled());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\n\t\t//entire program should be enabled but not selected\n\t\tassertNotNull(applyToAllButton);\n\t\tassertTrue(applyToAllButton.isEnabled());\n\t\tassertFalse(applyToAllButton.isSelected());\n\n\t\t//overwrite existing should be visible and enabled, but not selected\n\t\tassertTrue(overwriteExistingEquatesButton.isVisible());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\t//select applyToSelection and verify that the other buttons respond accordingly\n\t\tapplyToSelectionButton.setSelected(true);\n\t\trunSwing(\n\t\t\t() -> applyToSelectionButton.getActionListeners()[0].actionPerformed(null));\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tassertFalse(applyToAllButton.isSelected());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\tclose(d);\n\t}", "private boolean hasSpinnerPrompt(String value) {\n if (value.contains(\"select\")) {\n return true;\n }\n return false;\n }", "public int chooseFromReservationMenu() {\n\t\tfinal int NEW_RESERVATION =1;\t\t\t\t\t\t\t\t\t//option from the reservations sub menu\n\t\tfinal int VIEW_RESERVATION =2;\n\t\tfinal int CANCEL_RESERVATION =3;\n\n\t\tuserChoice = keyboard.nextInt();\n\n\t\tint scenario = 0; \n\t\tif (userChoice == NEW_RESERVATION)\n\t\t\tscenario = 1;\n\t\telse if(userChoice == VIEW_RESERVATION)\n\t\t\tscenario = 2;\n\t\telse if(userChoice == CANCEL_RESERVATION)\n\t\t\tscenario = 3;\n\t\telse\n\t\t\tscenario = 4;\n\n\t\treturn scenario;\t\t\t\t\t\t\t\t\t\t\t\t\t//int scenario returned is entered into a 'switch'\n\t}", "void filledOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb3.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strFill[0]) { // if \"No\" selected\r\n System.out.println(\"No of menu Filled is selected.\");\r\n System.out.println(\"calling method notFilled().\");\r\n ge.notFilled(gra); // call method notFilled() of class PaintTool\r\n System.out.println(\"method notFilled() executed.\");\r\n } else if (selStr == strFill[1]) { // if \"Yes\" seleted\r\n System.out.println(\"Yes of menu Filled is selected.\");\r\n System.out.println(\"calling method filled().\");\r\n ge.filled(gra); // call method filled() of class PaintTool\r\n System.out.println(\"method filled() executed.\");\r\n }\r\n }", "public boolean getSelected()\n {\n return selected; \n }", "public byte enableDownSelection() {\n byte isDownSelected = 0;\n if (itemFocused == UISettings.MENU || itemFocused == UISettings.IMAGE_MENU) {\n if (bannerHandler.isBannerSelect()) {\n isDownSelected = 3;\n itemFocused = UISettings.BANNER;\n lastItemFocused = UISettings.BANNER;\n reLoadFooterMenu();\n } else isDownSelected = 1;\n } else if (itemFocused == UISettings.BANNER) {\n if(isImageView>0){\n if(iImageMenu.isMenuPresent()){\n itemFocused = UISettings.IMAGE_MENU;\n lastItemFocused = UISettings.IMAGE_MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n } else if (iMenu.isMenuPresent()) {\n itemFocused = UISettings.MENU;\n lastItemFocused = UISettings.MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n }\n return isDownSelected;\n }", "private void checkPaymentMethod() {\n toolbar.setTitle(R.string.payment_method);\n PaymentMethodFragment paymentMethodFragment = new PaymentMethodFragment();\n displaySelectedFragment(paymentMethodFragment);\n }", "public boolean isSelected(Date date)\n/* */ {\n/* 200 */ Contract.asNotNull(date, \"date must not be null\");\n/* 201 */ return this.selectedDates.contains(date);\n/* */ }", "public void method(int choice) {\n switch(choice) {\n case 1:\n method1();\n break;\n case 2:\n method2();\n break;\n default:\n System.out.println(\"Choice not available. Default choice:\");\n method1();\n\n }\n }", "public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }", "public boolean forceSelection();", "private static boolean hasSelectionListener( Text text ) {\n Button defButton = text.getShell().getDefaultButton();\n // TODO [rst] On GTK, the SelectionListener is also off when the default\n // button is invisible or disabled. Check with Windows and repair.\n boolean hasDefaultButton = defButton != null && defButton.isVisible();\n return !hasDefaultButton && SelectionEvent.hasListener( text );\n }", "@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }", "public boolean supportsCurrentTimestampSelection() {\n \t\treturn false;\n \t}", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "public void doButtonEinfuegen() {\n\t\tDialogSelectionDjinn dsd = new DialogSelectionDjinn((Frame) this.owner, \"Auswahl Tabellenspalte\",\n\t\t\t\tnew DefaultListViewComponentFactory((allts ? this.tabelle.getDiagramm().getFieldCache()\n\t\t\t\t\t\t: new Vector<Object>(Arrays.asList(this.tabelle.getColumns())))));\n\t\tif (dsd.isSelected()) {\n\t\t\tVector v = dsd.getSelection();\n\t\t\tVector values = new Vector();\n\t\t\tfor (int i = 0, len = v.size(); i < len; i++) {\n\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\tvalues.addElement(v.elementAt(i));\n\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\tvalues.addElement(new ToStringContainer((TabellenspaltenModel) v.elementAt(i), this.tabelle));\n\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createOrderMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createSelectionMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0, len = values.size(); i < len; i++) {\n\t\t\t\tboolean found = false;\n\t\t\t\tfor (int j = 0, lenj = this.tabellenspalten.size(); j < lenj; j++) {\n\t\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\t\tTabellenspaltenModel tsm = (TabellenspaltenModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (values.elementAt(i) == tsm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\t\tToStringContainer tsc = (ToStringContainer) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((ToStringContainer) values.elementAt(i)).getTabellenspalte() == tsc) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\t\tOrderMemberModel omm = (OrderMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((OrderMemberModel) values.elementAt(i)).getOrderColumn() == omm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\t\tSelectionMemberModel smm = (SelectionMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((SelectionMemberModel) values.elementAt(i)).getColumn() == smm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!found) {\n\t\t\t\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\t\t\t\tthis.tabellenspalten.add(this.anzeige.getSelectedRow(), values.get(i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.tabellenspalten.add(values.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "protected abstract boolean isEnabledForSelection(T1 object, Vector<T2> globalSelection);", "@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}", "public boolean isSetChoiceId() {\r\n return this.choiceId != null;\r\n }", "public IAnswer select() throws NoPossibleAnswersException;", "protected void onSelectionPerformed(boolean success) {\n }", "@Override // com.oneplus.settings.ringtone.OPRingtoneBaseActivity\n public void updateSelected() {\n if (this.mSystemRings == null) {\n }\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }", "boolean winsAgainst(Selection selection);", "public boolean onContextItemSelected(MenuItem item)\n {\n //find out which menu item was pressed\n switch (item.getItemId())\n {\n //calling Call method\n case R.id.option1:\n Call();\n return true;\n //calling SendSms method\n case R.id.option2:\n SendSms();\n return true;\n default:\n return false;\n }\n }", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean beforeMasterSelectionChange();", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "boolean accepts(String optionName);", "public boolean isDefaultChoice()\r\n\t{\r\n\t\treturn defaultChoice;\r\n\t}", "@Override\n public boolean test() {\n return parentName.equals(themesComboBox.target().getSelectedItem().toString());\n }", "public abstract String chooseAnswer();", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();" ]
[ "0.67182827", "0.6499104", "0.64751774", "0.6344835", "0.61538166", "0.6122073", "0.59887606", "0.595102", "0.5941999", "0.5884908", "0.58678997", "0.5773483", "0.56885546", "0.5630225", "0.5611544", "0.5586108", "0.55750334", "0.55708", "0.5527156", "0.55202174", "0.5455579", "0.5437177", "0.5424853", "0.5403719", "0.5396641", "0.5389347", "0.5385164", "0.53776765", "0.53740126", "0.53690594", "0.5365132", "0.53446376", "0.53353053", "0.533067", "0.5329487", "0.5306985", "0.5296784", "0.5278365", "0.5260678", "0.52548105", "0.52518636", "0.5243934", "0.52364415", "0.5235526", "0.5227508", "0.52222615", "0.52172536", "0.5213041", "0.5212577", "0.52083105", "0.5201412", "0.52000827", "0.5199847", "0.51968247", "0.5195233", "0.51892525", "0.51888067", "0.51793414", "0.51740867", "0.5170915", "0.51669466", "0.5161114", "0.51496345", "0.5147357", "0.5145787", "0.5145551", "0.5140573", "0.513238", "0.5131992", "0.51304656", "0.51268804", "0.51268023", "0.512474", "0.5122368", "0.5121885", "0.5121454", "0.5113282", "0.5111434", "0.51067567", "0.50904715", "0.50792533", "0.5077568", "0.5049901", "0.5047958", "0.5044661", "0.50335133", "0.503165", "0.5029068", "0.50218016", "0.50147045", "0.50131446", "0.5007364", "0.50071096", "0.5006039", "0.50033224", "0.49988192", "0.49974102", "0.4995956", "0.4995956", "0.4995956" ]
0.7910006
0
Check if DTSMethod236 is current selection for choice.
public boolean ifDTSMethod236() { return choiceSelect == DTS_METHOD236_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Selection selection);", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "public boolean ifAvto() {\n return choiceSelect == AVTO_CHOICE;\n }", "public abstract boolean hasSelection();", "public boolean ifAvia() {\n return choiceSelect == AVIA_CHOICE;\n }", "public boolean isTimeToSelect();", "public boolean isSelectionChanged();", "@Override\r\n\tpublic boolean isChosen() {\n\t\treturn false;\r\n\t}", "public boolean getIsChosen();", "private void checkUsingAdaptation() {\n if (tsUseAdaptation.isSelected()) {\n tfAdaptationTime.setEnabled(true);\n tfAdaptationParam.setEnabled(true);\n } else {\n tfAdaptationTime.setEnabled(false);\n tfAdaptationParam.setEnabled(false);\n }\n }", "public String verifySelection() {\n\t\tList<TransactionType> selections = transactionTypes(selections2());\n\t\tif (selections.isEmpty())\n\t\t\treturn \"Site must be selected\";\n\t\tif (!couplings.hasCouplings())\n\t\t\treturn null;\n\t\tif (selections.size() == 1)\n\t\t\tif (couplings.from() == selections.get(0))\n\t\t\t\treturn ActorType.getActorType(couplings.from()).getName() + \" is selected so \" + ActorType.getActorType(couplings.to()).getName() + \" must be selected\";\n\t\treturn null;\n\t}", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "public boolean supportsCurrentTimestampSelection() {\n \t\treturn false;\n \t}", "public void getChoice()\n {\n }", "boolean isPickEnabled();", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "protected boolean isCurrentLidSelected() {\n HydroDisplayManager displayManager = HydroDisplayManager.getInstance();\n\n currentLid = displayManager.getCurrentLid();\n\n if (currentLid == null) {\n MessageDialog.openError(getParent(), \"Invalid Selection\",\n \"You must select a site first\");\n return false;\n }\n\n return true;\n }", "public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }", "public String getSelectCheckMethod() {\n return m_selectCheckMethod;\n }", "public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }", "public boolean isSelectingWeapon() {\n return false;\n }", "public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }", "public void selectChangeSecurityQuestionsOption() {\n\t\ttry {\n\t\t\n\t\t\t//Utility.wait(changeSecurityQuestions);\n\t\t\tchangeSecurityQuestions.click();\n\t\t\tUtility.simpleWait(6000);\n\t\t\tLog.addMessage(\"Change Security Questions option selected\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to select Change Security Questions option\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to slect Change Security Questions option\");\n\t\t}\n\t}", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }", "public boolean isChosen() {\n\t\treturn chosen;\n\t}", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "public boolean isSelectingAction() {\n return false;\n }", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public static boolean isSelectGameTypeDone() {\r\n\t\tboolean gameTypeSelected = false;\r\n\t\t\r\n\t\t//Check if the game type has been selected.\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameTypeSelected) FrameUtils.showDialogBox(\"A Game Type must be selected.\");\r\n\t\t\t\t\r\n\t\t//Saves the game type.\r\n\t\tsaveGameType();\r\n\t\t\r\n\t\treturn gameTypeSelected;\r\n\t}", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}", "private boolean hasSpinnerPrompt(String value) {\n if (value.contains(\"select\")) {\n return true;\n }\n return false;\n }", "public byte enableDownSelection() {\n byte isDownSelected = 0;\n if (itemFocused == UISettings.MENU || itemFocused == UISettings.IMAGE_MENU) {\n if (bannerHandler.isBannerSelect()) {\n isDownSelected = 3;\n itemFocused = UISettings.BANNER;\n lastItemFocused = UISettings.BANNER;\n reLoadFooterMenu();\n } else isDownSelected = 1;\n } else if (itemFocused == UISettings.BANNER) {\n if(isImageView>0){\n if(iImageMenu.isMenuPresent()){\n itemFocused = UISettings.IMAGE_MENU;\n lastItemFocused = UISettings.IMAGE_MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n } else if (iMenu.isMenuPresent()) {\n itemFocused = UISettings.MENU;\n lastItemFocused = UISettings.MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n }\n return isDownSelected;\n }", "public boolean isOption(ClickOption option) {\n\t\treturn this.option == option;\n\t}", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isSetChoiceId() {\r\n return this.choiceId != null;\r\n }", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }", "public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "boolean hasArtilleryFactorySelected();", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "boolean getUserChooseTrigger();", "public boolean isSelectionListener() {\n return true;\n }", "public boolean isSelectionChanged() {\n return selectionChanged;\n }", "protected boolean isAutoTickUnitSelection() { return this.autoTickUnitSelection; }", "public void chooseForMe() {\n }", "public boolean isScheduleSelected() {\r\n return scheduleSelected;\r\n }", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }", "@Override // com.oneplus.settings.ringtone.OPRingtoneBaseActivity\n public void updateSelected() {\n if (this.mSystemRings == null) {\n }\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "public boolean choiceChosen(CharSequence choice, @PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return false;\n }\n return TextUtils.equals(choice, mPageSummary.get(page));\n }", "public int getCurrentChoice() {\n return currentChoice;\n }", "public boolean isExtraTurnSelected() {\n\t\treturn isExtraTurnCheckBox.isSelected();\n\t}", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "public void setSelectCheckMethod(String name) {\n m_selectCheckMethod = name;\n }", "public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }", "public String selectedAnswer()\n {\n \n if(jrbOption1.isSelected())\n \n return\"Answer1\";\n else if(jrbOption2.isSelected())\n return\"Answer2\";\n else if(jrbOption3.isSelected())\n return\"Answer3\";\n else if(jrbOption4.isSelected())\n return\"Answer4\";\n else return null;\n}", "public int chooseFromReservationMenu() {\n\t\tfinal int NEW_RESERVATION =1;\t\t\t\t\t\t\t\t\t//option from the reservations sub menu\n\t\tfinal int VIEW_RESERVATION =2;\n\t\tfinal int CANCEL_RESERVATION =3;\n\n\t\tuserChoice = keyboard.nextInt();\n\n\t\tint scenario = 0; \n\t\tif (userChoice == NEW_RESERVATION)\n\t\t\tscenario = 1;\n\t\telse if(userChoice == VIEW_RESERVATION)\n\t\t\tscenario = 2;\n\t\telse if(userChoice == CANCEL_RESERVATION)\n\t\t\tscenario = 3;\n\t\telse\n\t\t\tscenario = 4;\n\n\t\treturn scenario;\t\t\t\t\t\t\t\t\t\t\t\t\t//int scenario returned is entered into a 'switch'\n\t}", "@Override\n public void showDifficultySelection() {\n calledMethods.add(\"showDifficultySelection\");\n }", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "public boolean IsEnableOptionMenu() {\n if (this.f12125b.mo8885u()) {\n C2331d.m10114a((Activity) this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);\n return false;\n } else if (!this.f12125b.mo8871g()) {\n return false;\n } else {\n if (!((Boolean) this.f12125b.f12207ad.mo3217b()).booleanValue()) {\n return false;\n }\n if (!C2274o.m9889M(this.f12125b.mo8842J()) && !C2274o.m9890N(this.f12125b.mo8842J())) {\n return true;\n }\n C2331d.m10114a((Activity) this, C2328a.ON_CANNOT_CHANGE_SETUP, (Bundle) null);\n return false;\n }\n }", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(10)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object onselectionchange();", "public boolean matchesSelectionType(int type) {\n\t\tif (type == DBRecord.SELECTED && selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.UNSELECTED && !selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.SELECTED_OR_NOT)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private boolean formSelectedAsChanged( HttpServletRequest request )\n {\n String strFormSelectedNewValue = request.getParameter( FormsConstants.PARAMETER_ID_FORM );\n boolean bIdFormHasChanged = false;\n if ( strFormSelectedNewValue != null )\n {\n bIdFormHasChanged = !strFormSelectedNewValue.equals( _strFormSelectedValue );\n _strFormSelectedValue = strFormSelectedNewValue;\n }\n\n return bIdFormHasChanged;\n }", "public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "@objid (\"58ecd897-1664-48d8-b3fb-730128135689\")\n @Override\n public boolean isAvailable(AbstractDiagram diagram, ISelection selection) {\n if (SelectionHelper.size(selection) != 1) {\n return false;\n }\n \n // In a BPMN diagram\n if (!(diagram instanceof BpmnSubProcessDiagram) && !(diagram instanceof BpmnProcessCollaborationDiagram)) {\n return false;\n }\n \n MObject elt = SelectionHelper.getFirst(selection, MObject.class);\n return elt != null && !this.targetMetaclass.equals(elt.getMClass().getName());\n }", "public static int getDrawingTool(){ return selectedDrawingTool; }", "private static boolean hasSelectionListener( Text text ) {\n Button defButton = text.getShell().getDefaultButton();\n // TODO [rst] On GTK, the SelectionListener is also off when the default\n // button is invisible or disabled. Check with Windows and repair.\n boolean hasDefaultButton = defButton != null && defButton.isVisible();\n return !hasDefaultButton && SelectionEvent.hasListener( text );\n }", "boolean winsAgainst(Selection selection);", "public String button1_action() {\n getSessionBean1().setSelected_algos(listbox1.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_tiers(listbox2.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_runs(listbox3.getValueAsStringArray(this.getContext()));\n getSessionBean1().setSelected_storageelems(listbox4.getValueAsStringArray(this.getContext()));\n //getSessionBean1().setSelected_branches(listbox5.getValueAsStringArray(this.getContext()));\n \n //String selected_primary = (String)dropDown1.getSelected().toString();\n //log(\"Selected Primary is\"+selected_primary);\n \n if ( dropDown1.getSelected() != null ||\n getSessionBean1().getSelected_algos().length !=0 || \n getSessionBean1().getSelected_tiers().length !=0 ||\n getSessionBean1().getSelected_runs().length != 0 ||\n getSessionBean1().getSelected_storageelems().length !=0 \n //getSessionBean1().getSelected_branches().length !=0\n ) {\n getSessionBean1().setItems_selected(\"1\");\n }\n return null;\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean canSelectionChange() {\n return true;\n }", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "boolean hasIronSelected();", "public abstract void selectQuestion();", "public boolean requiresSelectVarious() {\n\t\treturn false;\r\n\t}", "private void checkPaymentMethod() {\n toolbar.setTitle(R.string.payment_method);\n PaymentMethodFragment paymentMethodFragment = new PaymentMethodFragment();\n displaySelectedFragment(paymentMethodFragment);\n }", "public boolean isSelectedPredefinedCourse(){\n if(predefinedCourseName == null) return false;\n else return true;\n }", "public void selectSlot() {\n\t\t\r\n\t}", "public boolean isSelectionToolAllowedToChangeResourceType() {\n\treturn true;\n}", "void filledOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb3.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strFill[0]) { // if \"No\" selected\r\n System.out.println(\"No of menu Filled is selected.\");\r\n System.out.println(\"calling method notFilled().\");\r\n ge.notFilled(gra); // call method notFilled() of class PaintTool\r\n System.out.println(\"method notFilled() executed.\");\r\n } else if (selStr == strFill[1]) { // if \"Yes\" seleted\r\n System.out.println(\"Yes of menu Filled is selected.\");\r\n System.out.println(\"calling method filled().\");\r\n ge.filled(gra); // call method filled() of class PaintTool\r\n System.out.println(\"method filled() executed.\");\r\n }\r\n }", "boolean isSetMethod();", "public boolean canDeflect() {\n\t\tif (deflectTime == true) {\n\t\t\tdeflectTime = false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void selectionChanged(JavaTextSelection selection) {\n try {\n setEnabled(RefactoringAvailabilityTester.isGeneralizeTypeAvailable(selection));\n } catch (JavaModelException e) {\n setEnabled(false);\n }\n }" ]
[ "0.7095103", "0.7054127", "0.703974", "0.6236012", "0.61579835", "0.6045717", "0.5952492", "0.5874483", "0.58713496", "0.57674515", "0.5713185", "0.57123387", "0.5699262", "0.5626624", "0.5624726", "0.5602467", "0.55878186", "0.55471337", "0.554432", "0.55114853", "0.54911315", "0.5462937", "0.54575664", "0.54471624", "0.5445844", "0.5442605", "0.5434507", "0.5433735", "0.54245776", "0.54230326", "0.54071176", "0.5402315", "0.5400766", "0.53945947", "0.53943825", "0.53589475", "0.5355733", "0.53468156", "0.5318081", "0.53118116", "0.5304928", "0.53010553", "0.52985525", "0.5291004", "0.5268501", "0.5267616", "0.526111", "0.525883", "0.52487123", "0.52254695", "0.5221383", "0.5201136", "0.5196474", "0.51856995", "0.5179138", "0.5177522", "0.51702344", "0.5169058", "0.516853", "0.5161389", "0.51583695", "0.5150615", "0.5138506", "0.51287436", "0.5110942", "0.5098472", "0.5092391", "0.5088963", "0.5086552", "0.50696623", "0.50674933", "0.50664806", "0.50658333", "0.5064157", "0.50545", "0.5044796", "0.5041926", "0.5039232", "0.5032747", "0.5030347", "0.50253177", "0.50242484", "0.5024035", "0.50218284", "0.50208557", "0.5018876", "0.5013801", "0.50137126", "0.5010403", "0.4999661", "0.49991038", "0.49979287", "0.49891663", "0.49862528", "0.49851465", "0.4962741", "0.4959214", "0.49578655", "0.4957614", "0.4954942" ]
0.7949679
0
Check if DTSMethod46 is current selection for choice.
public boolean ifDTSMethod46() { return choiceSelect == DTS_METHOD46_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod56() {\n return choiceSelect == DTS_METHOD56_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Selection selection);", "public abstract boolean hasSelection();", "public boolean ifAvto() {\n return choiceSelect == AVTO_CHOICE;\n }", "public boolean getIsChosen();", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "public boolean isSelectionChanged();", "@Override\r\n\tpublic boolean isChosen() {\n\t\treturn false;\r\n\t}", "public boolean ifAvia() {\n return choiceSelect == AVIA_CHOICE;\n }", "protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }", "public void getChoice()\n {\n }", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isChosen() {\n\t\treturn chosen;\n\t}", "public boolean isTimeToSelect();", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "public String verifySelection() {\n\t\tList<TransactionType> selections = transactionTypes(selections2());\n\t\tif (selections.isEmpty())\n\t\t\treturn \"Site must be selected\";\n\t\tif (!couplings.hasCouplings())\n\t\t\treturn null;\n\t\tif (selections.size() == 1)\n\t\t\tif (couplings.from() == selections.get(0))\n\t\t\t\treturn ActorType.getActorType(couplings.from()).getName() + \" is selected so \" + ActorType.getActorType(couplings.to()).getName() + \" must be selected\";\n\t\treturn null;\n\t}", "public boolean supportsCurrentTimestampSelection() {\n \t\treturn false;\n \t}", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "public String getSelectCheckMethod() {\n return m_selectCheckMethod;\n }", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }", "public byte enableDownSelection() {\n byte isDownSelected = 0;\n if (itemFocused == UISettings.MENU || itemFocused == UISettings.IMAGE_MENU) {\n if (bannerHandler.isBannerSelect()) {\n isDownSelected = 3;\n itemFocused = UISettings.BANNER;\n lastItemFocused = UISettings.BANNER;\n reLoadFooterMenu();\n } else isDownSelected = 1;\n } else if (itemFocused == UISettings.BANNER) {\n if(isImageView>0){\n if(iImageMenu.isMenuPresent()){\n itemFocused = UISettings.IMAGE_MENU;\n lastItemFocused = UISettings.IMAGE_MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n } else if (iMenu.isMenuPresent()) {\n itemFocused = UISettings.MENU;\n lastItemFocused = UISettings.MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n }\n return isDownSelected;\n }", "public boolean isSelectingWeapon() {\n return false;\n }", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "boolean isPickEnabled();", "public static boolean isSelectGameTypeDone() {\r\n\t\tboolean gameTypeSelected = false;\r\n\t\t\r\n\t\t//Check if the game type has been selected.\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameTypeSelected) FrameUtils.showDialogBox(\"A Game Type must be selected.\");\r\n\t\t\t\t\r\n\t\t//Saves the game type.\r\n\t\tsaveGameType();\r\n\t\t\r\n\t\treturn gameTypeSelected;\r\n\t}", "protected boolean isCurrentLidSelected() {\n HydroDisplayManager displayManager = HydroDisplayManager.getInstance();\n\n currentLid = displayManager.getCurrentLid();\n\n if (currentLid == null) {\n MessageDialog.openError(getParent(), \"Invalid Selection\",\n \"You must select a site first\");\n return false;\n }\n\n return true;\n }", "public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}", "@objid (\"58ecd897-1664-48d8-b3fb-730128135689\")\n @Override\n public boolean isAvailable(AbstractDiagram diagram, ISelection selection) {\n if (SelectionHelper.size(selection) != 1) {\n return false;\n }\n \n // In a BPMN diagram\n if (!(diagram instanceof BpmnSubProcessDiagram) && !(diagram instanceof BpmnProcessCollaborationDiagram)) {\n return false;\n }\n \n MObject elt = SelectionHelper.getFirst(selection, MObject.class);\n return elt != null && !this.targetMetaclass.equals(elt.getMClass().getName());\n }", "public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "boolean getUserChooseTrigger();", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "private void checkUsingAdaptation() {\n if (tsUseAdaptation.isSelected()) {\n tfAdaptationTime.setEnabled(true);\n tfAdaptationParam.setEnabled(true);\n } else {\n tfAdaptationTime.setEnabled(false);\n tfAdaptationParam.setEnabled(false);\n }\n }", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }", "public boolean isSelectionChanged() {\n return selectionChanged;\n }", "public boolean isSetChoiceId() {\r\n return this.choiceId != null;\r\n }", "private boolean hasSpinnerPrompt(String value) {\n if (value.contains(\"select\")) {\n return true;\n }\n return false;\n }", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }", "public void chooseForMe() {\n }", "@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}", "public boolean choiceChosen(CharSequence choice, @PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return false;\n }\n return TextUtils.equals(choice, mPageSummary.get(page));\n }", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "public boolean isSelectingAction() {\n return false;\n }", "private void checkPaymentMethod() {\n toolbar.setTitle(R.string.payment_method);\n PaymentMethodFragment paymentMethodFragment = new PaymentMethodFragment();\n displaySelectedFragment(paymentMethodFragment);\n }", "public boolean getSelected()\n {\n return selected; \n }", "protected boolean isAutoTickUnitSelection() { return this.autoTickUnitSelection; }", "public boolean isSelectionListener() {\n return true;\n }", "public static boolean isDealerSelectionDone() {\r\n\t\tboolean dealerSelected = false;\r\n\t\t\r\n\t\t//Check if the dealer has been selected.\r\n\t\tif (GameSetup.player1IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player2IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player3IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (GameSetup.player4IsDealer.getState()) {\r\n\t\t\t\tdealerSelected = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!dealerSelected) FrameUtils.showDialogBox(\"A dealer must be selected.\");\r\n\t\t\r\n\t\t//Save who the dealer is.\r\n\t\tsaveDealerName();\r\n\t\t\t\r\n\t\treturn dealerSelected;\r\n\t}", "boolean hasArtilleryFactorySelected();", "public int getCurrentChoice() {\n return currentChoice;\n }", "public void selectChangeSecurityQuestionsOption() {\n\t\ttry {\n\t\t\n\t\t\t//Utility.wait(changeSecurityQuestions);\n\t\t\tchangeSecurityQuestions.click();\n\t\t\tUtility.simpleWait(6000);\n\t\t\tLog.addMessage(\"Change Security Questions option selected\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to select Change Security Questions option\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to slect Change Security Questions option\");\n\t\t}\n\t}", "public boolean isSelected() { \n \treturn selection != null; \n }", "@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "public boolean canSelectionChange() {\n return true;\n }", "public String selectedAnswer()\n {\n \n if(jrbOption1.isSelected())\n \n return\"Answer1\";\n else if(jrbOption2.isSelected())\n return\"Answer2\";\n else if(jrbOption3.isSelected())\n return\"Answer3\";\n else if(jrbOption4.isSelected())\n return\"Answer4\";\n else return null;\n}", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isContactSelected() {\n\t\treturn (currentContact != null);\n\t}", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "public boolean isOption(ClickOption option) {\n\t\treturn this.option == option;\n\t}", "public boolean isDefaultChoice()\r\n\t{\r\n\t\treturn defaultChoice;\r\n\t}", "@Override // com.oneplus.settings.ringtone.OPRingtoneBaseActivity\n public void updateSelected() {\n if (this.mSystemRings == null) {\n }\n }", "boolean isSetMethod();", "public void setSelectCheckMethod(String name) {\n m_selectCheckMethod = name;\n }", "boolean hasIronSelected();", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(10)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object onselectionchange();", "public boolean isSelectorNeeded() {\n if (!m_selectChecked) {\n if (m_selectorType != NestingCustomBase.SELECTION_UNCHECKED) {\n \n // before reporting selector needed, make sure at least once child is going to be present\n for (int i = 0; i < m_values.size(); i++) {\n DataNode node = (DataNode)m_values.get(i);\n if (!node.isIgnored()) {\n m_selectNeeded = true;\n break;\n }\n }\n \n }\n m_selectChecked = true;\n }\n return m_selectNeeded;\n }", "@Override\n public void selectionChanged(JavaTextSelection selection) {\n try {\n setEnabled(RefactoringAvailabilityTester.isGeneralizeTypeAvailable(selection));\n } catch (JavaModelException e) {\n setEnabled(false);\n }\n }", "public abstract void selectQuestion();", "public Choice getChoice() {\n return choice;\n }", "public abstract void select(boolean select);", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "public boolean matchesSelectionType(int type) {\n\t\tif (type == DBRecord.SELECTED && selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.UNSELECTED && !selected)\n\t\t\treturn true;\n\t\telse if (type == DBRecord.SELECTED_OR_NOT)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@Override\n public boolean test() {\n return parentName.equals(themesComboBox.target().getSelectedItem().toString());\n }", "public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public boolean isScheduleSelected() {\r\n return scheduleSelected;\r\n }", "public boolean requiresSelectVarious() {\n\t\treturn false;\r\n\t}", "@Override\r\n public boolean isAvailable() {\r\n if (getView() == null)\r\n return false;\r\n return getView().getSelectedUsers(true) != null || getView().getSelectedQueries(true) != null;\r\n }", "public boolean forceSelection();", "private boolean formSelectedAsChanged( HttpServletRequest request )\n {\n String strFormSelectedNewValue = request.getParameter( FormsConstants.PARAMETER_ID_FORM );\n boolean bIdFormHasChanged = false;\n if ( strFormSelectedNewValue != null )\n {\n bIdFormHasChanged = !strFormSelectedNewValue.equals( _strFormSelectedValue );\n _strFormSelectedValue = strFormSelectedNewValue;\n }\n\n return bIdFormHasChanged;\n }", "protected void onSelectionPerformed(boolean success) {\n }", "public boolean canHandle(Object selection);", "boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }", "public int getChoice() {\n\t\treturn choice;\n\t}", "private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }", "protected String getChoiceName() {\n\t\treturn choiceOption.getOptionName();\n\t}" ]
[ "0.7570505", "0.7303171", "0.72695917", "0.64577335", "0.6185057", "0.6095977", "0.59864694", "0.5965979", "0.59209836", "0.5910037", "0.59068745", "0.5830403", "0.57694286", "0.5764161", "0.5736806", "0.57165736", "0.56742656", "0.5623018", "0.562053", "0.55999327", "0.5591437", "0.5549554", "0.5487237", "0.5466355", "0.5465912", "0.5450817", "0.544453", "0.543687", "0.5436483", "0.5430699", "0.54213166", "0.5414623", "0.54143953", "0.54111636", "0.5410198", "0.54094154", "0.54070544", "0.5406572", "0.5403375", "0.5403323", "0.53989303", "0.5384627", "0.53756636", "0.5351569", "0.5350705", "0.5333196", "0.5328144", "0.53244597", "0.530676", "0.5303397", "0.5301599", "0.5296403", "0.52941465", "0.5287432", "0.5272935", "0.5272679", "0.527094", "0.5265285", "0.52494735", "0.5246888", "0.5241156", "0.52339435", "0.5233678", "0.52280307", "0.52121973", "0.5205596", "0.51985353", "0.5194421", "0.51793224", "0.51745564", "0.516095", "0.5154456", "0.5152642", "0.51500577", "0.5129558", "0.512672", "0.512191", "0.5116344", "0.5116162", "0.51126593", "0.5102637", "0.5098926", "0.5098184", "0.50956833", "0.5091863", "0.50831664", "0.5082172", "0.5078634", "0.50783783", "0.5075767", "0.50674736", "0.50658846", "0.50500613", "0.5044977", "0.5043862", "0.5042738", "0.50423294", "0.5039687", "0.5036288", "0.5034815" ]
0.7779857
0
Check if DTSMethod56 is current selection for choice.
public boolean ifDTSMethod56() { return choiceSelect == DTS_METHOD56_CHOICE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean ifDTSMethod236() {\n return choiceSelect == DTS_METHOD236_CHOICE;\n }", "public boolean ifDTSMethod46() {\n return choiceSelect == DTS_METHOD46_CHOICE;\n }", "public boolean ifDTSMethod1() {\n return choiceSelect == DTS_METHOD1_CHOICE;\n }", "boolean applicable(Selection selection);", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "public boolean ifAvto() {\n return choiceSelect == AVTO_CHOICE;\n }", "public abstract boolean hasSelection();", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "public boolean getIsChosen();", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isTimeToSelect();", "public boolean ifAvia() {\n return choiceSelect == AVIA_CHOICE;\n }", "public boolean isSelectionChanged();", "public String getSelectCheckMethod() {\n return m_selectCheckMethod;\n }", "public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }", "@Override\r\n\tpublic boolean isChosen() {\n\t\treturn false;\r\n\t}", "public void getChoice()\n {\n }", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "private void checkUsingAdaptation() {\n if (tsUseAdaptation.isSelected()) {\n tfAdaptationTime.setEnabled(true);\n tfAdaptationParam.setEnabled(true);\n } else {\n tfAdaptationTime.setEnabled(false);\n tfAdaptationParam.setEnabled(false);\n }\n }", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "public void selectChangeSecurityQuestionsOption() {\n\t\ttry {\n\t\t\n\t\t\t//Utility.wait(changeSecurityQuestions);\n\t\t\tchangeSecurityQuestions.click();\n\t\t\tUtility.simpleWait(6000);\n\t\t\tLog.addMessage(\"Change Security Questions option selected\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to select Change Security Questions option\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to slect Change Security Questions option\");\n\t\t}\n\t}", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "public byte enableDownSelection() {\n byte isDownSelected = 0;\n if (itemFocused == UISettings.MENU || itemFocused == UISettings.IMAGE_MENU) {\n if (bannerHandler.isBannerSelect()) {\n isDownSelected = 3;\n itemFocused = UISettings.BANNER;\n lastItemFocused = UISettings.BANNER;\n reLoadFooterMenu();\n } else isDownSelected = 1;\n } else if (itemFocused == UISettings.BANNER) {\n if(isImageView>0){\n if(iImageMenu.isMenuPresent()){\n itemFocused = UISettings.IMAGE_MENU;\n lastItemFocused = UISettings.IMAGE_MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n } else if (iMenu.isMenuPresent()) {\n itemFocused = UISettings.MENU;\n lastItemFocused = UISettings.MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n }\n return isDownSelected;\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}", "public String verifySelection() {\n\t\tList<TransactionType> selections = transactionTypes(selections2());\n\t\tif (selections.isEmpty())\n\t\t\treturn \"Site must be selected\";\n\t\tif (!couplings.hasCouplings())\n\t\t\treturn null;\n\t\tif (selections.size() == 1)\n\t\t\tif (couplings.from() == selections.get(0))\n\t\t\t\treturn ActorType.getActorType(couplings.from()).getName() + \" is selected so \" + ActorType.getActorType(couplings.to()).getName() + \" must be selected\";\n\t\treturn null;\n\t}", "public boolean supportsCurrentTimestampSelection() {\n \t\treturn false;\n \t}", "protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }", "public boolean isChosen() {\n\t\treturn chosen;\n\t}", "private void checkPaymentMethod() {\n toolbar.setTitle(R.string.payment_method);\n PaymentMethodFragment paymentMethodFragment = new PaymentMethodFragment();\n displaySelectedFragment(paymentMethodFragment);\n }", "public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "public static boolean isSelectGameTypeDone() {\r\n\t\tboolean gameTypeSelected = false;\r\n\t\t\r\n\t\t//Check if the game type has been selected.\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tgameTypeSelected = true;\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameTypeSelected) FrameUtils.showDialogBox(\"A Game Type must be selected.\");\r\n\t\t\t\t\r\n\t\t//Saves the game type.\r\n\t\tsaveGameType();\r\n\t\t\r\n\t\treturn gameTypeSelected;\r\n\t}", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "boolean hasArtilleryFactorySelected();", "private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }", "public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }", "public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}", "public boolean select() {\n\n // The applet declines to be selected\n // if the pin is blocked.\n if ( pin.getTriesRemaining() == 0 )\n return false;\n\n return true;\n\n }", "protected boolean isCurrentLidSelected() {\n HydroDisplayManager displayManager = HydroDisplayManager.getInstance();\n\n currentLid = displayManager.getCurrentLid();\n\n if (currentLid == null) {\n MessageDialog.openError(getParent(), \"Invalid Selection\",\n \"You must select a site first\");\n return false;\n }\n\n return true;\n }", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "private boolean hasSpinnerPrompt(String value) {\n if (value.contains(\"select\")) {\n return true;\n }\n return false;\n }", "@objid (\"58ecd897-1664-48d8-b3fb-730128135689\")\n @Override\n public boolean isAvailable(AbstractDiagram diagram, ISelection selection) {\n if (SelectionHelper.size(selection) != 1) {\n return false;\n }\n \n // In a BPMN diagram\n if (!(diagram instanceof BpmnSubProcessDiagram) && !(diagram instanceof BpmnProcessCollaborationDiagram)) {\n return false;\n }\n \n MObject elt = SelectionHelper.getFirst(selection, MObject.class);\n return elt != null && !this.targetMetaclass.equals(elt.getMClass().getName());\n }", "public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}", "public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}", "boolean isPickEnabled();", "@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }", "public int chooseFromReservationMenu() {\n\t\tfinal int NEW_RESERVATION =1;\t\t\t\t\t\t\t\t\t//option from the reservations sub menu\n\t\tfinal int VIEW_RESERVATION =2;\n\t\tfinal int CANCEL_RESERVATION =3;\n\n\t\tuserChoice = keyboard.nextInt();\n\n\t\tint scenario = 0; \n\t\tif (userChoice == NEW_RESERVATION)\n\t\t\tscenario = 1;\n\t\telse if(userChoice == VIEW_RESERVATION)\n\t\t\tscenario = 2;\n\t\telse if(userChoice == CANCEL_RESERVATION)\n\t\t\tscenario = 3;\n\t\telse\n\t\t\tscenario = 4;\n\n\t\treturn scenario;\t\t\t\t\t\t\t\t\t\t\t\t\t//int scenario returned is entered into a 'switch'\n\t}", "public String selectedAnswer()\n {\n \n if(jrbOption1.isSelected())\n \n return\"Answer1\";\n else if(jrbOption2.isSelected())\n return\"Answer2\";\n else if(jrbOption3.isSelected())\n return\"Answer3\";\n else if(jrbOption4.isSelected())\n return\"Answer4\";\n else return null;\n}", "boolean getUserChooseTrigger();", "protected boolean isAutoTickUnitSelection() { return this.autoTickUnitSelection; }", "public void setSelectCheckMethod(String name) {\n m_selectCheckMethod = name;\n }", "private boolean CheckParkSelection() {\n\t\tif (Park_ComboBox.getSelectionModel().isEmpty()) {\n\t\t\tif (!Park_ComboBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPark_ComboBox.getStyleClass().add(\"error\");\n\t\t\tParkNote.setText(\"* Select park\");\n\t\t\treturn false;\n\t\t}\n\t\tPark_ComboBox.getStyleClass().remove(\"error\");\n\t\tParkNote.setText(\"*\");\n\t\treturn true;\n\t}", "@Test\n\tpublic void testApplyToOptions_SetEquate_Selection() {\n\n\t\t// put the cursor on a scalar\n\t\tputCursorOnOperand(0x1004bbd, 0);\n\n\t\t// make a selection containing the scalar above.\n\t\tmakeSelection(tool, program, addr(\"1004bbd\"), addr(\"1004bc5\"));\n\n\t\tSetEquateDialog d = showSetEquateDialog();\n\n\t\tJRadioButton applyToCurrentButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToCurrent\");\n\t\tfinal JRadioButton applyToSelectionButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToSelection\");\n\t\tfinal JRadioButton applyToAllButton =\n\t\t\t(JRadioButton) findComponentByName(d.getComponent(), \"applyToAll\");\n\t\tJCheckBox overwriteExistingEquatesButton =\n\t\t\t(JCheckBox) findComponentByName(d.getComponent(), \"Overwrite\");\n\n\t\t//change as of 7.0 - dialog should come up with \"current location\" enabled.\n\t\tassertNotNull(applyToCurrentButton);\n\t\tassertTrue(applyToCurrentButton.isEnabled());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\n\t\t//have selection in this case so should be enabled but not selected\n\t\tassertNotNull(applyToSelectionButton);\n\t\tassertTrue(applyToSelectionButton.isEnabled());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\n\t\t//entire program should be enabled but not selected\n\t\tassertNotNull(applyToAllButton);\n\t\tassertTrue(applyToAllButton.isEnabled());\n\t\tassertFalse(applyToAllButton.isSelected());\n\n\t\t//overwrite existing should be visible and enabled, but not selected\n\t\tassertTrue(overwriteExistingEquatesButton.isVisible());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\t//select applyToSelection and verify that the other buttons respond accordingly\n\t\tapplyToSelectionButton.setSelected(true);\n\t\trunSwing(\n\t\t\t() -> applyToSelectionButton.getActionListeners()[0].actionPerformed(null));\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tassertFalse(applyToAllButton.isSelected());\n\t\tassertFalse(applyToCurrentButton.isSelected());\n\t\tassertTrue(applyToSelectionButton.isSelected());\n\t\tassertTrue(overwriteExistingEquatesButton.isEnabled());\n\t\tassertFalse(overwriteExistingEquatesButton.isSelected());\n\n\t\tclose(d);\n\t}", "void filledOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb3.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strFill[0]) { // if \"No\" selected\r\n System.out.println(\"No of menu Filled is selected.\");\r\n System.out.println(\"calling method notFilled().\");\r\n ge.notFilled(gra); // call method notFilled() of class PaintTool\r\n System.out.println(\"method notFilled() executed.\");\r\n } else if (selStr == strFill[1]) { // if \"Yes\" seleted\r\n System.out.println(\"Yes of menu Filled is selected.\");\r\n System.out.println(\"calling method filled().\");\r\n ge.filled(gra); // call method filled() of class PaintTool\r\n System.out.println(\"method filled() executed.\");\r\n }\r\n }", "public void chooseForMe() {\n }", "@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\tint position = gameSpinner.getSelectedItemPosition();\n\t\t\t\t\t\tif (macGames[+position] != \"-- Choose sport --\") {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"You have selected \" + macGames[+position],\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();*/\n\t\t\t\t\t\t\tchosenGame = macGames[+position];\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private boolean formSelectedAsChanged( HttpServletRequest request )\n {\n String strFormSelectedNewValue = request.getParameter( FormsConstants.PARAMETER_ID_FORM );\n boolean bIdFormHasChanged = false;\n if ( strFormSelectedNewValue != null )\n {\n bIdFormHasChanged = !strFormSelectedNewValue.equals( _strFormSelectedValue );\n _strFormSelectedValue = strFormSelectedNewValue;\n }\n\n return bIdFormHasChanged;\n }", "public boolean isSelectingWeapon() {\n return false;\n }", "public boolean isOption(ClickOption option) {\n\t\treturn this.option == option;\n\t}", "public boolean isSelectionChanged() {\n return selectionChanged;\n }", "boolean captureChoice(Scanner sc);", "public boolean isSelected(Date date)\n/* */ {\n/* 200 */ Contract.asNotNull(date, \"date must not be null\");\n/* 201 */ return this.selectedDates.contains(date);\n/* */ }", "public abstract void selectQuestion();", "private boolean handleDemoMenuCommands(String command, boolean backCommandIsNotGiven) {\n boolean anAlgorithmWasSelected = command.equals(\"1\") || command.equals(\"2\") || command.equals(\"3\");\n\n if (anAlgorithmWasSelected) {\n intSelect.start();\n } else if (command.equalsIgnoreCase(\"x\")) {\n backCommandIsNotGiven = false;\n }\n return backCommandIsNotGiven;\n }", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public boolean choiceChosen(CharSequence choice, @PAGE int page) {\n if (!mPageSummary.containsKey(page)) {\n return false;\n }\n return TextUtils.equals(choice, mPageSummary.get(page));\n }", "public boolean isSelectingAction() {\n return false;\n }", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "private native boolean selectSlot0(int slotIndex);", "public boolean isScheduleSelected() {\r\n return scheduleSelected;\r\n }", "@Override\n public boolean isPromptAnswered() {\n return ((mSelectedIndex >= 0 && mSelectedIndex < mChoices.size()) || (mSelectedIndex >= 0 && mSelectedIndex < mChoices\n .size() + mCustomChoices.size()));\n }", "@DISPID(-2147412032) //= 0x800117c0. The runtime will prefer the VTID if present\n @VTID(10)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object onselectionchange();", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "protected boolean menu() {\n\t\tint selection = 0;\n\t\twhile(selection != 6) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please select your choice:\\n\" +\n\t\t\t\t\t\"1 - Play Human vs AI Game\\n\" +\n\t\t\t\t\t\"2 - Play AI vs AI Game\\n\" +\n\t\t\t\t\t\"3 - Quit\\n\" );\n\t\t\ttry {\n\t\t\t\tselection = Integer.parseInt(getFromUser(\"Enter selection: \"));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"Invalid Input - type the number corresponding to your selection\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tswitch(selection){\n\t\t\t\tcase 1: case 2: board = Factory.instance().makeBoard(selection); break;\n\t\t\t\tcase 3: quit(); break;\n\t\t\t\tdefault: System.out.println(\"Invalid Input\");\n\t\t\t}\n\t\t\tif(selection >= 1 && selection <= 4 && board != null){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSetChoiceId() {\r\n return this.choiceId != null;\r\n }", "public abstract void select(boolean select);", "public int getCurrentChoice() {\n return currentChoice;\n }", "public boolean isSelectionListener() {\n return true;\n }", "@Override // com.oneplus.settings.ringtone.OPRingtoneBaseActivity\n public void updateSelected() {\n if (this.mSystemRings == null) {\n }\n }", "public boolean getSelected()\n {\n return selected; \n }", "boolean isSetMethod();", "public static boolean isDealerSelectionDone() {\r\n\t\tboolean dealerSelected = false;\r\n\t\t\r\n\t\t//Check if the dealer has been selected.\r\n\t\tif (GameSetup.player1IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player2IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\tif (GameSetup.player3IsDealer.getState()) {\r\n\t\t\tdealerSelected = true;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (GameSetup.player4IsDealer.getState()) {\r\n\t\t\t\tdealerSelected = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!dealerSelected) FrameUtils.showDialogBox(\"A dealer must be selected.\");\r\n\t\t\r\n\t\t//Save who the dealer is.\r\n\t\tsaveDealerName();\r\n\t\t\t\r\n\t\treturn dealerSelected;\r\n\t}", "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public void SpecialRateplan_selection(String Rateplan) throws InterruptedException\r\n\t{\r\n\t\tif(SeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).isDisplayed())\r\n\t\t{\r\n\t\t\tSeleniumRepo.driver.findElement(By.xpath(\"//label[text()='\"+Rateplan+\"']\")).click();\r\n\t\t\t//System.out.println(\"Rateplan selected successfully\");\r\n\t\t\ttest.log(Status.INFO, \"Rateplan selected successfully\");\r\n\r\n\t\t\tThread.sleep(2000);\t\r\n\t\t\tif (Specialdone.isDisplayed()) \r\n\t\t\t{\r\n\t\t\t\tSpecialdone.click();\r\n\t\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\t\t//System.out.println(\"Clicked on done\");\r\n\t\t\t\tlogger.info(\"Clicked on done\");\r\n\t\t\t\ttest.log(Status.INFO, \"Clicked on done\");\r\n\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"not Clicked on done\");\r\n\t\t\t\tlogger.error(\"not Clicked on done\");\r\n\t\t\t\ttest.log(Status.FAIL, \"not Clicked on done\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttest.log(Status.FAIL, \"Element is not present\");\r\n\r\n\t\t}\t\r\n\t}", "boolean winsAgainst(Selection selection);", "public boolean isSelected() { \n \treturn selection != null; \n }", "public boolean isSelectedPredefinedCourse(){\n if(predefinedCourseName == null) return false;\n else return true;\n }", "boolean hasIronSelected();", "@Override\r\n public boolean isAvailable() {\r\n if (getView() == null)\r\n return false;\r\n return getView().getSelectedUsers(true) != null || getView().getSelectedQueries(true) != null;\r\n }", "public boolean validateDefaultRadioButtonSelection() {\n\n\t\tboolean b = AttDefaultShowRadioBtn.isSelected();\n\t\tSystem.out.println(\"VISHNU its getting value as:...........\"+b);\n\t\tif(b){\n\t\t\treturn true;\n\t\t}else {\n\t\t\tSystem.out.println(\"Invalid Default redio button selection\");\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasValidItemSelected() {\n return !(autoComplete.getSelection() == null || ((Comboitem)autoComplete.getSelection()).getValue() == null);\n }", "public boolean IsEnableOptionMenu() {\n if (this.f12125b.mo8885u()) {\n C2331d.m10114a((Activity) this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);\n return false;\n } else if (!this.f12125b.mo8871g()) {\n return false;\n } else {\n if (!((Boolean) this.f12125b.f12207ad.mo3217b()).booleanValue()) {\n return false;\n }\n if (!C2274o.m9889M(this.f12125b.mo8842J()) && !C2274o.m9890N(this.f12125b.mo8842J())) {\n return true;\n }\n C2331d.m10114a((Activity) this, C2328a.ON_CANNOT_CHANGE_SETUP, (Bundle) null);\n return false;\n }\n }", "public boolean isExtraTurnSelected() {\n\t\treturn isExtraTurnCheckBox.isSelected();\n\t}" ]
[ "0.7572974", "0.73130107", "0.71896166", "0.61439353", "0.6086557", "0.5930736", "0.5926791", "0.5841875", "0.5824043", "0.5790095", "0.5735219", "0.5720455", "0.5684107", "0.5667196", "0.5656735", "0.5652286", "0.56347775", "0.5622156", "0.56056833", "0.5560165", "0.55142176", "0.5509347", "0.54958004", "0.54827434", "0.54734373", "0.54337555", "0.54246795", "0.54171544", "0.54139423", "0.5367692", "0.5366697", "0.53616", "0.5353159", "0.5345501", "0.5336894", "0.53349715", "0.53019065", "0.52928203", "0.5290807", "0.5278311", "0.52772003", "0.5275662", "0.52665865", "0.52645576", "0.52536064", "0.52503014", "0.52445865", "0.5244222", "0.52410394", "0.5229144", "0.52238154", "0.5219768", "0.5211589", "0.52078515", "0.5195736", "0.5189908", "0.51774335", "0.5177377", "0.5171979", "0.5146426", "0.5144413", "0.51413095", "0.51381564", "0.5127278", "0.512715", "0.5125607", "0.5124232", "0.5100318", "0.5096003", "0.50937086", "0.5078776", "0.50745314", "0.50742257", "0.50736856", "0.5071338", "0.5068604", "0.5062223", "0.5056045", "0.50548583", "0.50447744", "0.50440216", "0.50436556", "0.5043454", "0.50406754", "0.50265735", "0.5020365", "0.5017856", "0.5017258", "0.50120527", "0.50113773", "0.5008979", "0.49964488", "0.49928463", "0.49841905", "0.4979965", "0.49710748", "0.49693844", "0.49664932", "0.49610558", "0.4954222" ]
0.78771824
0
Queries the size of the instruction in bytes. The size is the size of the instruction itself plus all operands.
public int getInstructionSize() { return instructionSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOperandSize(String operand, int type) {\n\t\tint size = -1;\n\t\tif (Op.matches(type, Op.SIZEQUALI)) {\n\t\t\tif (operand.equals(\"BYTE\")) {\n\t\t\t\tsize = 1;\n\t\t\t}\n\t\t\tif (operand.equals(\"WORD\")) {\n\t\t\t\tsize = 2;\n\t\t\t}\n\t\t\tif (operand.equals(\"DWORD\")) {\n\t\t\t\tsize = 4;\n\t\t\t}\n\t\t\tif (operand.equals(\"QWORD\")) {\n\t\t\t\tsize = 8;\n\t\t\t}\n\t\t} else if (Op.matches(type, Op.REG)) {\n\t\t\tsize = dataspace.getRegisterSize(operand);\n\t\t} else if (Op.matches(type, Op.IMM)) {\n\t\t\tlong arg = Long.parseLong(operand);\n\t\t\tsize = getOperandSize(arg);\n\t\t} else if (Op.matches(type, Op.FPUREG)) {\n\t\t\tsize = 8;\n\t\t} else if (type == Op.CHARS) {\n\t\t\tsize = roundToOpSize(operand.replaceAll(\"'\", \"\").length());\n\t\t} else if (type == Op.STRING) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn size;\n\t}", "private JCExpression getSize() {\n if (refSym.isStatic()) {\n return Call(attributeSizeName(refSym));\n } else {\n return m().Conditional(EQnull(selector()),\n Int(0),\n Call(selector(), attributeSizeName(refSym)));\n }\n }", "static int size_of_code(String instruction){\n\t\tint size = 0;\n\t\tString code = instruction.split(\" \")[0];\n\t\tswitch(code){\n\t\tcase \"MOV\":\n\t\t\tsize = size_of_mov(instruction);\n\t\t\tbreak;\n\t\tcase \"MVI\":\n\t\t\tsize = size_of_mvi(instruction);\n\t\t\tbreak;\n\t\tcase \"LXI\":\n\t\t\tsize = size_of_lxi(instruction);\n\t\t\tbreak;\n\t\tcase \"LDA\":\n\t\t\tsize = size_of_lda(instruction);\n\t\t\tbreak;\n\t\tcase \"STA\":\n\t\t\tsize = size_of_sta(instruction);\n\t\t\tbreak;\n\t\tcase \"LHLD\":\n\t\t\tsize = size_of_lhld(instruction);\n\t\t\tbreak;\n\t\tcase \"SHLD\":\n\t\t\tsize = size_of_shld(instruction);\n\t\t\tbreak;\n\t\tcase \"LDAX\":\n\t\t\tsize = size_of_ldax(instruction);\n\t\t\tbreak;\n\t\tcase \"STAX\": \n\t\t\tsize = size_of_stax(instruction);\n\t\t\tbreak;\n\t\tcase \"XCHG\":\n\t\t\tsize = size_of_xchg(instruction);\n\t\t\tbreak;\n\t\tcase \"ADD\":\n\t\t\tsize = size_of_add(instruction);\n\t\t\tbreak;\n\t\tcase \"ADC\":\n\t\t\tsize = size_of_adc(instruction);\n\t\t\tbreak;\n\t\tcase \"ADI\":\n\t\t\tsize = size_of_adi(instruction);\n\t\t\tbreak;\n\t\tcase \"ACI\":\n\t\t\tsize = size_of_aci(instruction);\n\t\t\tbreak;\n\t\tcase \"DAD\":\n\t\t\tsize = size_of_dad(instruction);\n\t\t\tbreak;\n\t\tcase \"SUB\":\n\t\t\tsize = size_of_sub(instruction);\n\t\t\tbreak;\n\t\tcase \"SBB\":\n\t\t\tsize = size_of_sbb(instruction);\n\t\t\tbreak;\n\t\tcase \"SUI\":\n\t\t\tsize = size_of_sui(instruction);\n\t\t\tbreak;\n\t\tcase \"INR\":\n\t\t\tsize = size_of_inr(instruction);\n\t\t\tbreak;\n\t\tcase \"DCR\":\n\t\t\tsize = size_of_dcr(instruction);\n\t\t\tbreak;\n\t\tcase \"INX\":\n\t\t\tsize = size_of_inx(instruction);\n\t\t\tbreak;\n\t\tcase \"DCX\":\n\t\t\tsize = size_of_dcx(instruction);\n\t\t\tbreak;\n\t\tcase \"DAA\":\n\t\t\tsize = size_of_daa(instruction);\n\t\tcase \"ANA\":\n\t\t\tsize = size_of_ana(instruction);\n\t\t\tbreak;\n\t\tcase \"ANI\":\n\t\t\tsize = size_of_ani(instruction);\n\t\t\tbreak;\n\t\tcase \"ORA\":\n\t\t\tsize = size_of_ora(instruction);\n\t\t\tbreak;\n\t\tcase \"ORI\":\n\t\t\tsize = size_of_ori(instruction);\n\t\t\tbreak;\n\t\tcase \"XRA\":\n\t\t\tsize = size_of_xra(instruction);\n\t\t\tbreak;\n\t\tcase \"XRI\":\n\t\t\tsize = size_of_xri(instruction);\n\t\t\tbreak;\n\t\tcase \"CMA\":\n\t\t\tsize = size_of_cma(instruction);\n\t\t\tbreak;\n\t\tcase \"CMC\":\n\t\t\tsize = size_of_cmc(instruction);\n\t\t\tbreak;\n\t\tcase \"STC\":\n\t\t\tsize = size_of_stc(instruction);\n\t\t\tbreak;\n\t\tcase \"CMP\":\n\t\t\tsize = size_of_cmp(instruction);\n\t\t\tbreak;\n\t\tcase \"CPI\":\n\t\t\tsize = size_of_cpi(instruction);\n\t\t\tbreak;\n\t\tcase \"RLC\":\n\t\t\tsize = size_of_rlc(instruction);\n\t\t\tbreak;\n\t\tcase \"RRC\":\n\t\t\tsize = size_of_rrc(instruction);\n\t\t\tbreak;\n\t\tcase \"RAL\":\n\t\t\tsize = size_of_ral(instruction);\n\t\t\tbreak;\n\t\tcase \"RAR\":\n\t\t\tsize = size_of_rar(instruction);\n\t\t\tbreak;\n\t\tcase \"JMP\":\n\t\t\tsize = size_of_jmp(instruction);\n\t\t\tbreak;\n\t\tcase \"JZ\":\n\t\t\tsize = size_of_jz(instruction);\n\t\t\tbreak;\n\t\tcase \"JNZ\":\n\t\t\tsize = size_of_jnz(instruction);\n\t\t\tbreak;\n\t\tcase \"JC\":\n\t\t\tsize = size_of_jc(instruction);\n\t\t\tbreak;\n\t\tcase \"JNC\":\n\t\t\tsize = size_of_jnc(instruction);\n\t\t\tbreak;\n\t\tcase \"JP\":\n\t\t\tsize = size_of_jp(instruction);\n\t\t\tbreak;\n\t\tcase \"JM\":\n\t\t\tsize = size_of_jm(instruction);\n\t\t\tbreak;\n\t\tcase \"JPE\":\n\t\t\tsize = size_of_jpe(instruction);\n\t\t\tbreak;\n\t\tcase \"JPO\":\n\t\t\tsize = size_of_jpo(instruction);\n\t\t\tbreak;\n\t\tcase \"CALL\":\n\t\t\tsize = size_of_call(instruction);\n\t\t\tbreak;\n\t\tcase \"CZ\":\n\t\t\tsize = size_of_cz(instruction);\n\t\t\tbreak;\n\t\tcase \"CNZ\":\n\t\t\tsize = size_of_cnz(instruction);\n\t\t\tbreak;\n\t\tcase \"CC\":\n\t\t\tsize = size_of_cc(instruction);\n\t\t\tbreak;\n\t\tcase \"CNC\":\n\t\t\tsize = size_of_cnc(instruction);\n\t\t\tbreak;\n\t\tcase \"CP\":\n\t\t\tsize = size_of_cp(instruction);\n\t\t\tbreak;\n\t\tcase \"CM\":\n\t\t\tsize = size_of_cm(instruction);\n\t\t\tbreak;\n\t\tcase \"CPE\":\n\t\t\tsize = size_of_cpe(instruction);\n\t\t\tbreak;\n\t\tcase \"CPO\":\n\t\t\tsize = size_of_cpo(instruction);\n\t\t\tbreak;\n\t\tcase \"RET\":\n\t\t\tsize = size_of_ret(instruction);\n\t\t\tbreak;\n\t\tcase \"RZ\":\n\t\t\tsize = size_of_rz(instruction);\n\t\t\tbreak;\n\t\tcase \"RNZ\":\n\t\t\tsize = size_of_rnz(instruction);\n\t\t\tbreak;\n\t\tcase \"RC\":\n\t\t\tsize = size_of_rc(instruction);\n\t\t\tbreak;\n\t\tcase \"RNC\":\n\t\t\tsize = size_of_rnc(instruction);\n\t\t\tbreak;\n\t\tcase \"RP\":\n\t\t\tsize = size_of_rp(instruction);\n\t\t\tbreak;\n\t\tcase \"RM\":\n\t\t\tsize = size_of_rm(instruction);\n\t\t\tbreak;\n\t\tcase \"RPE\":\n\t\t\tsize = size_of_rpe(instruction);\n\t\t\tbreak;\n\t\tcase \"RPO\":\n\t\t\tsize = size_of_rpo(instruction);\n\t\t\tbreak;\n\t\tcase \"PCHL\":\n\t\t\tsize = size_of_pchl(instruction);\n\t\t\tbreak;\n\t\tcase \"IN\":\n\t\t\tsize = size_of_in(instruction);\n\t\t\tbreak;\n\t\tcase \"OUT\":\n\t\t\tsize = size_of_out(instruction);\n\t\t\tbreak;\n\t\tcase \"PUSH\":\n\t\t\tsize = size_of_push(instruction);\n\t\t\tbreak;\n\t\tcase \"POP\":\n\t\t\tsize = size_of_pop(instruction);\n\t\t\tbreak;\n\t\tcase \"XTHL\":\n\t\t\tsize = size_of_xthl(instruction);\n\t\t\tbreak;\n\t\tcase \"SPHL\":\n\t\t\tsize = size_of_sphl(instruction);\n\t\t\tbreak;\n\t\t}\n\t\treturn size;\n\t}", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "public static int size_length() {\n return (8 / 8);\n }", "public int getSize() {\n\t\tif (type == Attribute.Type.Int) {\r\n\t\t\treturn INT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Char) {\r\n\t\t\treturn CHAR_SIZE * length;\r\n\t\t} else if (type == Attribute.Type.Long) {\r\n\t\t\treturn LONG_SIZE;\r\n\t\t} else if (type == Attribute.Type.Float) {\r\n\t\t\treturn FLOAT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Double) {\r\n\t\t\treturn DOUBLE_SIZE;\r\n\t\t} else if (type == Attribute.Type.DateTime){\r\n\t\t\treturn LONG_SIZE;\r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public int getTotalSize();", "public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}", "public static byte getSize() {\n return SIZE;\n }", "int getTotalSize();", "public static int size_count() {\n return (16 / 8);\n }", "public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }", "public int getResultSize() {\r\n return getAttributeAsInt(\"resultSize\");\r\n }", "public static int size_cost() {\n return (16 / 8);\n }", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "public static int size_infos_size_data() {\n return (8 / 8);\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public long size() {\n\t\treturn size;\n\t}", "public long getSize() {\n\t\treturn size;\n\t}", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "public int getSize() throws Exception {\n int size = 0;\n java.util.Vector fieldVector = getFieldVector();\n for (int i = 0; i < fieldVector.size(); i++) {\n Field field = (Field) (fieldVector.elementAt(i));\n Class type = field.getType();\n if (type == Byte.TYPE) {\n size += 1;\n }\n else if (type == Short.TYPE) {\n size += 2;\n }\n else if (type == Integer.TYPE) {\n size += 4;\n }\n else if (type == Long.TYPE) {\n size += 8;\n }\n else if (type == Double.TYPE) {\n size += 8;\n }\n else if (type.getName().equals(\"[B\")) {\n size += ( (byte[]) (field.get(this))).length;\n }\n }\n return size;\n }", "public long getSize();", "int getResultSize() throws RemoteException;", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public static int size_addr() {\n return (16 / 8);\n }", "long getSize();", "public int sizeof() {\n return Type.getSourceABI().getPointerSize();\n }", "public final int size() {\n\t\treturn opstack.size();\n\t}", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "@Override\r\n\tpublic int getSize() {\r\n\t\treturn getBitSize() / stridePolicy.getStride();\r\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public int getSize() {\n return iSize;\n }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public int size() {\n return doSize();\n }", "public int getSize() {\n\t\treturn width + length;\n\t}", "public static int getOperandSize(long operand) {\n\t\tif (operand < 0) {\n\t\t\toperand *= (-1);\n\t\t\toperand -= 1;\n\t\t\tif ((operand & 127) == operand) {\n\t\t\t\treturn 1;\n\t\t\t} else if ((operand & ((1 << 15) - 1)) == operand) {\n\t\t\t\treturn 2;\n\t\t\t} else if ((operand & ((1 << 31) - 1)) == operand) {\n\t\t\t\treturn 4;\n\t\t\t} else {\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t} else {\n\t\t\tif ((operand & 255) == operand) {\n\t\t\t\treturn 1;\n\t\t\t} else if ((operand & 65535) == operand) {\n\t\t\t\treturn 2;\n\t\t\t} else if ((operand & Long.parseLong(\"4294967295\")) == operand) {\n\t\t\t\treturn 4;\n\t\t\t} else {\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t}\n\t}", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public int size() {\n return bytes.length;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public final long getSize() { return size; }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize() {\n int size = 5; // 1 (code) + 2 (data length) + 2 (# of constants)\n try {\n for (Iterator<String> i = constants.iterator(); i.hasNext();) {\n size += (i.next().getBytes(\"UTF-8\").length + 1); // Unicode, null-terminated\n }\n } catch (UnsupportedEncodingException e) {\n // UTF-8 should be available..\n }\n return size;\n }", "public Integer getSize() {\n return size;\n }", "public long getSize() {\r\n return size;\r\n }", "long sizeInBytes() throws IOException;", "public final int getSize() {\n return size;\n }", "public int getSize() {\n\t\treturn _size;\n\t}", "public long getByteCount() {\n return byteCount;\n }", "public long getSize() {\n return size;\n }", "public static int getSIZE() {\n return SIZE;\n }", "public static int size_hop() {\n return (8 / 8);\n }", "int getSize ();", "public long getSize() {\n return mSize;\n }", "public static int size_infos_type() {\n return (16 / 8);\n }", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public int getMemberSize() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: idiv \n // 1: istore_0 /* this */\n // 2: aconst_null \n // 3: nop \n // 4: fload_1 \n // 5: dadd \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -------------------------------------------\n // 0 6 0 this Lcom/sun/xml/xsom/impl/UnionSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "double getSize();", "public final String getSizeAttribute() {\n return getAttributeValue(\"size\");\n }", "public abstract long estimateMemorySize();", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }", "public long size();", "public int get_size();", "public int get_size();", "public int getLength() {\n return mySize.getLength();\n }", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}", "public int getSize() {\n\t\treturn size;\n\t}" ]
[ "0.6808811", "0.6790219", "0.6722286", "0.6668761", "0.665329", "0.6507825", "0.64821947", "0.64632994", "0.6401137", "0.6344265", "0.6328329", "0.631582", "0.63151735", "0.6305254", "0.6240459", "0.62129146", "0.62076586", "0.62072456", "0.6203255", "0.6198841", "0.6191554", "0.618999", "0.61861366", "0.61749816", "0.61700547", "0.6163223", "0.61583227", "0.6138253", "0.61320424", "0.6130278", "0.6128075", "0.61257464", "0.6120165", "0.6113543", "0.61087704", "0.60950017", "0.6088233", "0.6068852", "0.6068731", "0.6068731", "0.6068731", "0.6068731", "0.6060211", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.60593706", "0.6057672", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.6056867", "0.60457355", "0.60406584", "0.6039525", "0.6038675", "0.60348964", "0.6034003", "0.60321134", "0.6031987", "0.6031501", "0.60283166", "0.6024158", "0.6023061", "0.600229", "0.59932655", "0.5986895", "0.59822345", "0.59821814", "0.5981193", "0.5978767", "0.5978361", "0.5974382", "0.5970667", "0.596711", "0.596711", "0.59666353", "0.59650165", "0.59650165", "0.59650165", "0.59650165", "0.59650165", "0.59650165", "0.59650165", "0.59650165" ]
0.73437124
0
Helper method that dumps the result set of an arbitrary SQL query to the connector's logs.
private static void logQueryResults(OracleConnection connection, String query) throws SQLException { connection.query(query, rs -> { int columns = rs.getMetaData().getColumnCount(); List<String> columnNames = new ArrayList<>(); for (int index = 1; index <= columns; ++index) { columnNames.add(rs.getMetaData().getColumnName(index)); } LOGGER.debug("{}", columnNames); while (rs.next()) { List<Object> columnValues = new ArrayList<>(); for (int index = 1; index <= columns; ++index) { columnValues.add(rs.getObject(index)); } LOGGER.debug("{}", columnValues); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void recordQueryResultSet(String logLevel, Result result)\n {\n Recorder.SQLRecord(result, getRecordMetadata(), logLevel);\n }", "private void dumpResultMapping ()\r\n {\r\n for (Entry<Result, Set<Candidate>> entry : connection.getResultMap().\r\n entrySet()) {\r\n logger.debug(\"Result: {}\", entry.getKey());\r\n\r\n for (Candidate candidate : entry.getValue()) {\r\n logger.debug(\"* candidate: {}\", candidate);\r\n }\r\n }\r\n }", "public static void recordQueryAndIdealResultSet(String logLevel, Result result, IdealResultSet idealResultSet)\n {\n Recorder.SQLRecord(result, idealResultSet, getRecordMetadata(), logLevel);\n }", "public static void recordIdealResultSet(String logLevel, IdealResultSet idealResultSet)\n {\n Recorder.SQLRecord(idealResultSet, getRecordMetadata(), logLevel);\n }", "public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }", "public static void dump(ResultSet rs) throws SQLException {\n ResultSetMetaData meta = rs.getMetaData();\n int colmax = meta.getColumnCount();\n int i;\n Object o = null;\n\n // the result set is a cursor into the data. You can only\n // point to one row at a time\n // assume we are pointing to BEFORE the first row\n // rs.next() points to next row and returns true\n // or false if there is no next row, which breaks the loop\n for (; rs.next(); ) {\n for (i = 0; i < colmax; ++i) {\n o = rs.getObject(i + 1); // Is SQL the first column is indexed\n\n // with 1 not 0\n System.out.print(o.toString() + \" \");\n }\n\n System.out.println(\" \");\n }\n }", "private void dumpQuery(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataReqFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------query data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------query data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }", "public List<Map<String, Object>> queryForListWithLog(final String sql) {\n return queryForListWithLog(proxyDataSource, sql);\n }", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public List<Map<String, Object>> queryForListWithLog(final DataSource dataSource, final String sql) {\n log.info(\"Query SQL: {}\", sql);\n try (Connection connection = dataSource.getConnection()) {\n ResultSet resultSet = connection.createStatement().executeQuery(sql);\n return transformResultSetToList(resultSet);\n } catch (final SQLException ex) {\n throw new RuntimeException(ex);\n }\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "private void printResultSet(ResultSet rs) {\n\t\twhile(rs.hasNext()) {\t\n\t\t\tQuerySolution qs = rs.next();\n\t\t\tSystem.out.println(qs.toString());\n\t\t}\n\t\tSystem.out.println(\"------\");\n\t}", "private static void flushResult(IQueryResult result) throws IOException\n {\n while (result.next()) {\n System.out.println(result.getValueArray().toString());\n }\n }", "private void writeResultSet(ResultSet resultSet) throws SQLException {\n while (resultSet.next()) {\n // it is possible to get the columns via name\n // also possible to get the columns via the column number\n // which starts at 1\n // e.g., resultSet.getSTring(2);\n String id = resultSet.getString(\"id\");\n String name = resultSet.getString(\"name\");\n String email = resultSet.getString(\"email\");\n String password = resultSet.getString(\"password\");\n String enc_type = resultSet.getString(\"enc_type\");\n System.out.println(\"ID: \" + id);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Email: \" + email);\n System.out.println(\"Password: \" + password);\n System.out.println(\"ENC Type: \" + enc_type);\n }\n }", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "public void PrintResult() {\n try {\n res.beforeFirst();\n int columnsNumber = res.getMetaData().getColumnCount();\n while (res.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n Object columnValue = res.getObject(i);\n System.out.print(res.getMetaData().getColumnName(i) + \" \" + columnValue);\n }\n System.out.println();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic List<Log> finLogALL() {\n\t\tString sql = \"SELECT * FROM t_log ORDER BY ASC\";\n\t\tList<Log> list = null;\n\t\ttry {\n\t\t\tlist = qr.query(sql, new BeanListHandler<Log>(Log.class));\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public static String getQueryResult(SQLquery query, Connection con) throws SQLException {\n\n //load selected database query and run it against database\n\n Statement stmt = con.createStatement();\n ResultSet result = stmt.executeQuery(query.sql);\n String output = \"\";\n\n /**\n * build output string\n */\n while (result.next()) {\n ResultSetMetaData rsmd = result.getMetaData();\n int columnsnumber = rsmd.getColumnCount();\n for (int i = 1; i < columnsnumber + 1; i++) {\n String name = rsmd.getColumnName(i);\n if (i == columnsnumber) {\n\n /**\n * add new line when last column is reached otherwise just add \",\" for CSV format\n */\n output = output + result.getString(name) + \"\\n\";\n } else {\n output = output + result.getString(name) + \",\";\n }\n }\n }\n /**\n * return output string\n */\n return output;\n }", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "public void writeSQL(SQLOutput stream) throws SQLException{\r\n}", "private QueryResponse loggedSolrQuery(String caller, SolrQuery solrQuery) throws SolrServerException, IOException {\n long solrNS = -System.nanoTime();\n QueryResponse rsp = solrServer.query(solrQuery, METHOD.POST);\n solrNS += System.nanoTime();\n String query = solrQuery.getQuery();\n query = query == null ? null : query.length() > 200 ? query.substring(0, 200) + \"...\" : query;\n/*\n log.debug(String.format(\"%s Solr response in %d ms (qtime=%d ms) with %d hits for query %s\", caller, solrNS / M, rsp.getQTime(),\n rsp.getResults().getNumFound(), query));\n */\n return rsp;\n }", "public abstract void toSQL(StringBuilder ret);", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public boolean isJdbcLoggingEnabled();", "public void printResults(ResultSet resultSet) throws SQLException {\n\t\tResultSetMetaData rsmd = resultSet.getMetaData();\n\t\tint columnsNumber = rsmd.getColumnCount();\n\t\tint count = 1;\n\t\twhile (resultSet.next()) {\n\t\t\tSystem.out.println(\"Record: \" + count);\n\t\t for (int i = 1; i <= columnsNumber; i++) {\n\t\t String columnValue = resultSet.getString(i);\n\t\t System.out.print(rsmd.getColumnName(i) + \": \" + columnValue + \", \");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t count++;\n\t\t}\n\t}", "void dumpQueries(PrintWriter pw, @Nullable Integer filteringAppId, DumpState dumpState,\n int[] users,\n QuadFunction<Integer, Integer, Integer, Boolean, String[]> getPackagesForUid);", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }", "public void proxyExecuteWithLog(final String sql, final int sleepSeconds) throws SQLException {\n log.info(\"proxy execute :{}\", sql);\n List<String> sqlList = Splitter.on(\";\").trimResults().omitEmptyStrings().splitToList(sql);\n try (Connection connection = proxyDataSource.getConnection()) {\n for (String each : sqlList) {\n connection.createStatement().execute(each);\n }\n }\n Awaitility.await().pollDelay(Math.max(sleepSeconds, 0L), TimeUnit.SECONDS).until(() -> true);\n }", "public void logBatch(String sql, int repeatTimes, long nanoTime) ;", "@Override\r\n\t\t\tpublic PrintWriter getLogWriter() throws SQLException {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic PrintWriter getLogWriter() throws SQLException {\n\t\t\t\treturn null;\r\n\t\t\t}", "private ArrayList<String> writeResultSet(ResultSet resultSet) throws SQLException {\n\t ArrayList<String> inter_result = new ArrayList<String>();\r\n\t\t while (resultSet.next()) {\r\n\t // it is possible to get the columns via name\r\n\t // also possible to get the columns via the column number\r\n\t // which starts at 1\r\n\t // e.g., resultSet.getSTring(2);\r\n\t String hotel_name = resultSet.getString(\"name\");\r\n\t inter_result.add(hotel_name);\r\n\t //String hotel_area = resultSet.getString(\"area\");\r\n\t System.out.println(\"Name: \" + hotel_name);\r\n\t //System.out.println(\"Area: \" + hotel_area);\r\n\r\n\t }\r\n\t return inter_result; \r\n\t }", "@Override\r\n\tpublic PrintWriter getLogWriter() throws SQLException {\n\t\treturn null;\r\n\t}", "public ArrayList<Log> GetLogs(){\n ArrayList<Log> LL = new ArrayList<>();\n try{\n String query = \"Select * from GeneralLog\";\n Statement stm = mssqlConecction.conn.createStatement();\n ResultSet rs = stm.executeQuery(query);\n while(rs.next()){\n Log l = new Log();\n l.action=rs.getString(\"action\");\n l.date = rs.getDate(\"date\");\n l.table = rs.getString(\"table\");\n l.new_value = rs.getString(\"new_value\");\n l.old_Value = rs.getString(\"old_value\");\n l.username = rs.getString(\"username\");\n LL.add(l);\n }\n return LL;\n }catch(Exception e){\n return null;\n }\n }", "public void sourceExecuteWithLog(final String sql) throws SQLException {\n log.info(\"source execute :{}\", sql);\n try (Connection connection = sourceDataSource.getConnection()) {\n connection.createStatement().execute(sql);\n }\n }", "<T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);", "public void logSQL(BindedCompiledSQL bsql, String sqlStatment, long nanoTime) ;", "public abstract ResultList executeQuery(DatabaseQuery query);", "public String toString() {\n return SQLStringVisitor.getSQLString(this);\n }", "public abstract String toSQL();", "public EnhancedResultSet dumpTable( String tableName ) {\n \t return query( \"SELECT * FROM \" + tableName + \";\" );\n \t}", "public abstract List<Log> getAll() throws DatabaseConfigException;", "public static void processResultSet(ResultSet sql) throws SQLException{\n\t ResultSet rs = sql;\n\t\tif (rs != null) {\n\t\t\twhile (rs.next()) {\n\t\t\t\tint rollno = rs.getInt(\"rollno\");\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tString email = rs.getString(\"email\");\n\t\t\t\tdouble cpi = rs.getDouble(\"cpi\");\n\t\t\t\tSystem.out.println(rollno + \"\\t\" + name + \"\\t\" + email + \"\\t\" + cpi);\n\t\t\t}\n\t\t}\n\t}", "public List<QueryHit> processQuery(String query) {\n // Do something!\n System.err.println(\"Processing query '\" + query + \"'\");\n return new ArrayList<QueryHit>();\n }", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }", "public void writeSQL(SQLOutput stream) throws SQLException {\n\t\tstream.writeBigDecimal(Helpers.bigDecOrNull(id));\n\t\tstream.writeString(Helpers.strOrNull(rt));\n\t\tstream.writeString(Helpers.strOrNull(name));\n\t\tstream.writeString(Helpers.strOrNull(description));\n\n\t}", "public abstract ResultList executeSQL(RawQuery rawQuery);", "private static String print(final ResultSet res) throws Exception {\n final StringBuilder sb = new StringBuilder();\n final ResultSetMetaData md = res.getMetaData();\n for(int i = 0; i < md.getColumnCount(); ++i) {\n sb.append(' ');\n sb.append(md.getColumnName(i + 1));\n sb.append(\" |\");\n }\n sb.append('\\n');\n while(res.next()) {\n for(int i = 0; i < md.getColumnCount(); ++i) {\n sb.append(' ');\n sb.append(res.getString(i + 1));\n sb.append(\" |\");\n }\n sb.append('\\n');\n }\n return sb.toString();\n }", "ResultSet runSQL(String query) {\n try {\n return connection.prepareStatement(query).executeQuery();\n }\n catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n }\n }", "public static /*synchronized*/ void addSelectionResultLog(long start, long end, int resultSize){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + QUERY_COUNT + \": \" + resultSize + \" trajectories in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "public void logToConsole(){\n logger.trace(\"Records total: \" + employees.size());\n }", "public void logSQL(BindedCompiledSQL bsql, long nanoTime) ;", "@Override\n\tpublic List<boardLIstDTO> myLogs(String user_id) throws Exception {\n\t\treturn sqlSession.selectList(namespace+\".myLogs\", user_id);\n\t}", "public ORM executeQuery(String query) {\n ResultSet rs = null;\n this.query =query;\n System.out.println(\"run: \" + this.query);\n //this.curId = 0;\n Statement statement;\n try {\n statement = this.conn.createStatement();\n rs = statement.executeQuery(this.query);\n //this.saveLog(0,\"\",query);\n } catch (SQLException e) {\n System.out.println( ColorCodes.ANSI_RED +\"ERROR in SQL: \" + this.query);\n // e.printStackTrace();\n }\n lastResultSet=rs;\n this.fields_values = \"\";\n return this;\n\n }", "public void log(ScreeningData message) {\n if (message == null) {\n throw new NullPointerException(\"message should not be null.\");\n }\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n try {\n conn = DbHelper.getConnection();\n stmt = conn.prepareStatement(\"INSERT INTO screening_result\" +\n \"(screening_result_id, dynamic_response_text, screening_response_id, create_user, \" +\n \" create_date, screening_task_id) VALUES(?, ?, ?, ?, ?, ?)\");\n stmt.setLong(1, idGen.nextId());\n stmt.setString(2, message.getResponseText());\n stmt.setLong(3, message.getResponseId());\n stmt.setLong(4, 1);\n stmt.setTimestamp(5, new Timestamp(System.currentTimeMillis()));\n stmt.setLong(6, request.getTaskId());\n\n if (!executeUpdate(stmt, maxRetries, retrySleepTime)) {\n throw new DatabaseException(\"Log result failed after \" + maxRetries + \" retries.\");\n }\n } catch (SQLException sqle) {\n throw new DatabaseException(\"Log result fails.\", sqle);\n } catch (RemoteException re) {\n throw new DatabaseException(\"ID generation fails.\", re);\n } finally {\n DbHelper.dispose(conn, stmt, rs);\n }\n }", "private void sampleQuery(final SQLManager sqlManager, final HttpServletResponse resp)\n throws IOException {\n try (Connection sql = sqlManager.getConnection()) {\n\n // Execute the query.\n final String query = \"SELECT 'Hello, world'\";\n try (PreparedStatement statement = sql.prepareStatement(query)) {\n \n // Gather results.\n try (ResultSet result = statement.executeQuery()) {\n if (result.next()) {\n resp.getWriter().println(result.getString(1));\n }\n }\n }\n \n } catch (SQLException e) {\n LOG.log(Level.SEVERE, \"SQLException\", e);\n resp.getWriter().println(\"Failed to execute database query.\");\n }\n }", "private void logFindAll(String ip) {\n\t\tRetailUnitOfMeasureController.logger.info(\n\t\t\t\tString.format(RetailUnitOfMeasureController.FIND_ALL_LOG_MESSAGE,\n\t\t\t\t\t\tthis.userInfo.getUserId(), ip));\n\t}", "public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }", "public String toSQL() {\n\t\tStringBuilder sBuider = new StringBuilder();\n\n\t\t\n\t\t\n\t\t\n\t\tString sTemp = sBuider.toString();\n\t\tSystem.out.println(this.getClass().getName() + \".toSQL(): SQL statements are \\n\" + sTemp);\n\t\t\n\t\tsBuider = null;\n\t\t\n\t\treturn sTemp;\n\t}", "public Object[] executeSQLQuery(final String sql) {\n\n long start = System.currentTimeMillis();\n List<?> queryResult = txTemplate\n .execute(new TransactionCallback<List<?>>() {\n @Override\n public List<?> doInTransaction(TransactionStatus status) {\n return getSession(false).createSQLQuery(sql).list();\n }\n });\n logger.debug(\"executeSQLQuery took: \"\n + (System.currentTimeMillis() - start) + \" ms\");\n return queryResult.toArray();\n }", "public String getSQL() {\n return query.getSQL();\n }", "private <T> List<T> executeQuery(Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeQuery\", new Object[] {key, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<T> data = new ArrayList<T>();\r\n\t\tObjectInputStream objectIn = null;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\trs = statement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tbyte[] buf = rs.getBytes(\"obj\");\r\n\t\t\t\tif (buf != null) {\r\n\t\t\t\t\tobjectIn = new ObjectInputStream(new ByteArrayInputStream(buf));\r\n\t\t\t\t}\r\n\t\t\t\tT deSerializedObject = (T) objectIn.readObject();\r\n\t\t\t\tdata.add(deSerializedObject);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\t\t\tif (objectIn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tobjectIn.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcleanupConnection(conn, rs, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeQuery\");\r\n\t\treturn data;\t\r\n\t}", "public void resultSetCollected(ResultSetCollector resultSetCollector);", "public List<DatabaseRow> accessDebugLogTableByName(String name) \r\n throws ServiceFailureException, SQLException;", "@Override\n\tpublic List<boardLIstDTO> serachList() throws Exception {\n\t\treturn sqlSession.selectList(namespace + \".share_Log_all_List\");\n\t}", "private void writeSpecificResult(GroupOfLogs res) throws ServiceFailureException {\r\n writeStartOfElement(\"Log\");\r\n \r\n if(res.getType().compareTo(\"Error\") == 0 || res.getType().compareTo(\"Critical\") == 0) {\r\n writeElementWithCharacters(\"info\", removeNonValidXMLCharacters(res.getIdentity()));\r\n } else {\r\n writeElementWithCharacters(\"info\", String.valueOf(res.getIdentity()));\r\n }\r\n \r\n writeElementWithCharacters(\"startID\", String.valueOf(res.getStartID()));\r\n writeElementWithCharacters(\"endID\", String.valueOf(res.getEndID()));\r\n writeElementWithCharacters(\"startDate\", res.getStartDate());\r\n writeElementWithCharacters(\"endDate\", res.getEndDate());\r\n writeElementWithCharacters(\"module\", String.valueOf(res.getModule()));\r\n writeElementWithCharacters(\"level\", String.valueOf(res.getLevel()));\r\n writeElementWithCharacters(\"type\", res.getType());\r\n writeElementWithCharacters(\"tid\", String.valueOf(res.getThreadID()));\r\n writeElementWithCharacters(\"pid\", String.valueOf(res.getProcessID()));\r\n writeElementWithCharacters(\"count\", String.valueOf(res.getCount()));\r\n writeEndOfElement();\r\n }", "private LogQueryResult\n\tconvertQueryResult( final AttributeList queryResult )\n\t{\n\t final AttributeList fieldAttrs = (AttributeList)((Attribute)queryResult.get( 0 )).getValue();\n\t final String[] fieldHeaders = new String[ fieldAttrs.size() ];\n\t assert( fieldHeaders.length == LogRecordFields.NUM_FIELDS );\n\t for( int i = 0; i < fieldHeaders.length; ++i )\n\t {\n\t final Attribute attr = (Attribute)fieldAttrs.get( i );\n\t fieldHeaders[ i ] = (String)attr.getValue();\n\t //System.out.println( fieldHeaders[ i ] );\n\t }\n\t \n\t // extract every record\n\t final List<List<Serializable>> records =\n\t TypeCast.asList( ((Attribute)queryResult.get( 1 )).getValue() );\n\t final LogQueryEntry[] entries = new LogQueryEntry[ records.size() ];\n\t for( int recordIdx = 0; recordIdx < records.size(); ++recordIdx )\n\t {\n\t final List<Serializable> record = records.get( recordIdx );\n\t TypeCast.checkList( record, Serializable.class );\n\t \n\t assert( record.size() == fieldHeaders.length );\n\t final Serializable[] fieldValues = new Serializable[ fieldHeaders.length ];\n\t for( int fieldIdx = 0; fieldIdx < fieldValues.length; ++fieldIdx )\n\t {\n\t fieldValues[ fieldIdx ] = record.get( fieldIdx );\n\t }\n\t \n\t entries[ recordIdx ] = new LogQueryEntryImpl( fieldValues );\n\t }\n\t \n\t return new LogQueryResultImpl( fieldHeaders, entries );\n\t}", "private void verifyAnalyzeOutput(String query, String message) throws Exception {\n List<QueryDataBatch>result = testRunAndReturn(QueryType.SQL, query);\n List<List<String>> output = new ArrayList<>();\n assertTrue(result.size() == 1);\n final QueryDataBatch batch = result.get(0);\n final RecordBatchLoader loader = new RecordBatchLoader(getDrillbitContext().getAllocator());\n loader.load(batch.getHeader().getDef(), batch.getData());\n output.add(new ArrayList<String>());\n for (VectorWrapper<?> vw: loader) {\n ValueVector.Accessor accessor = vw.getValueVector().getAccessor();\n Object o = accessor.getObject(0);\n output.get(0).add(o == null ? null: o.toString());\n }\n batch.release();\n loader.clear();\n assertTrue(output.get(0).size() == 2);\n assertEquals(message, output.get(0).get(1));\n }", "protected String getSQLString() {\n \t\treturn queryTranslator.getSQLString();\n \t}", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "public org.eclipse.stardust.engine.api.query.LogEntries\n getAllLogEntries(org.eclipse.stardust.engine.api.query.LogEntryQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;", "public void printStatistics() throws SQLException {\n\t\t\temployeeDAO.printStatistics();\n\t\t\t\n\t\t}", "Object executeSelectQuery(String sql) { return null;}", "public void executeQuery(Statement stmt, String query) throws SQLException {\n //check if it is select\n Boolean ret = stmt.execute(query);\n if (ret) {\n ResultSet result = stmt.executeQuery(query);\n ResultSetMetaData rsmd = result.getMetaData();\n int columnCount = rsmd.getColumnCount();\n // The column count starts from 1\n\n //ArrayList<String> column_names = new ArrayList<String>();\n for (int i = 1; i <= columnCount; i++) {\n String name = rsmd.getColumnName(i);\n //column_names.add(name);\n System.out.format(\"|%-30s \",name);\n // Do stuff with name\n }\n System.out.println();\n\n while (result.next()) {\n for (int i = 0; i < columnCount; i++) {\n System.out.format(\"|%-30s \",result.getString(i+1));\n }\n System.out.println();\n }\n // STEP 5: Clean-up environment\n result.close();\n }\n }", "List<Map<String,Object>> executeSelectQuery(String query) {\n\n\t\t// preparing the list for the retrieved statements in the database\n\t\tList<Map<String, Object>> statementsList = new ArrayList<>();\n\n\t\ttry {\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tstatement.setQueryTimeout(30); // set timeout to 30 sec.\n\n\t\t\t// the ResultSet represents a table of data retrieved in the database\n\t\t\tResultSet rs = statement.executeQuery(query);\n\n\t\t\t// the ResultSetMetaData represents all the metadata of the ResultSet\n\t\t\tResultSetMetaData rsmd = rs.getMetaData();\n\t\t\tint columnsNumber = rsmd.getColumnCount();\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tMap<String, Object> statementMap = new HashMap<>();\n\n\t\t\t\tfor (int i = 1; i <= columnsNumber; i++) {\n\n\t\t\t\t\tint columnType = rsmd.getColumnType(i);\n\n\t\t\t\t\tswitch (columnType) {\n\t\t\t\t\t\tcase Types.VARCHAR:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.NULL:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), null);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.CHAR:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.TIMESTAMP:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getTimestamp(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.DOUBLE:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getDouble(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.INTEGER:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.SMALLINT:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getInt(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase Types.DECIMAL:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getBigDecimal(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tstatementMap.put(rsmd.getColumnLabel(i), rs.getString(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// adding the Map to the statementsList\n\t\t\t\tstatementsList.add(statementMap);\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// in the end, we return the populated statementsList\n\t\treturn statementsList;\n\t}", "@Override\n public synchronized ResultSet executeQuery(String sql)\n throws SQLException {\n\n // tinySQL only supports one result set at a time, so\n // don't let them get another one, just in case it's\n // hanging out.\n //\n tinySQLResultSet trs;\n result = null; \n statementString = sql;\n\n // create a new tinySQLResultSet with the tsResultSet\n // returned from connection.executetinySQL()\n //\n if ( debug ) {\n System.out.println(\"executeQuery conn is \" + connection.toString());\n }\n trs = new tinySQLResultSet(connection.executetinySQL(this), this);\n return trs; \n }", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.createLoggingResultSet((ResultSet) null, (Statement) null);\n assertNotNull(proxy0);\n }", "public static void writeQueryResults(List<SearchResult> searchResults, BufferedWriter writer, int level)\n\t\t\tthrows IOException {\n\t\tif (!searchResults.isEmpty()) {\n\t\t\tIterator<SearchResult> result = searchResults.iterator();\n\t\t\tSearchResult firstResult = result.next();\n\t\t\twriteQueryResultsWriter(firstResult, writer, level);\n\n\t\t\twhile (result.hasNext()) {\n\t\t\t\tSearchResult nextResult = result.next();\n\t\t\t\twriter.write(\",\");\n\t\t\t\twriteQueryResultsWriter(nextResult, writer, level);\n\t\t\t}\n\t\t}\n\t}", "public com.sybase.collections.GenericList<com.sybase.persistence.LogRecord> getLogRecords()\n {\n return ru.terralink.mvideo.sap.LogRecordImpl.findByEntity(\"Orders\", keyToString());\n }", "protected abstract void streamData(ResultSet paramResultSet)\r\n/* 51: */ throws SQLException, IOException, DataAccessException;", "private void executeQuery() {\n }", "public PrintWriter getLogWriter() throws SQLException\n {\n return null;\n }", "@Override\n public Log map(ResultSet rs, StatementContext ctx) throws SQLException {\n var application = applicationRepository.findById(rs.getInt(1)).orElseThrow();\n return new Log(rs.getInt(1),application.getApp(),application.getPortApp(),application.getPortService(),application.getDockerInstance(),rs.getString(2),rs.getTimestamp(3).toInstant());\n }", "public static void printToScreen(ResultSetMetaData metaData, ResultSet results) throws SQLException {\n results.last();\n int numberOfRows = results.getRow();\n int numberOfColumns = metaData.getColumnCount();\n\n //store column names\n String[] columnNames = new String[numberOfColumns];\n for (int i = 1; i <= numberOfColumns; i++) {\n String columnName = metaData.getColumnName(i);\n columnNames[i - 1] = columnName;\n }\n\n //print results\n results.first();\n for (int i = 0; i < numberOfRows; i++) {\n\n String columnName = \"\";\n for (int c = 0; c < numberOfColumns; c++) {\n columnName = columnNames[c];\n String value;\n if (columnName.equals(\"population\")) {\n value = String.valueOf(results.getInt(columnName));\n } else {\n value = results.getString(columnName);\n }\n System.out.print(columnName + \"= \" + value + \" \");\n }\n System.out.println();\n results.next();\n }\n }", "public static String resultSetToString(final ResultSet aResultSet) {\r\n return resultSetToString(aResultSet, \", \", StringUtility.NEW_LINE);\r\n }", "private void appendSelectStatement() {\n builder.append(SELECT).append(getSelectedFields()).append(FROM);\n }", "public OperationLog[] SearchOperationLog (String opName, String opType, String wsName, String status, String[] domains,\r\n String userName, String token, String transID, Date start, Date end, String version_no)\r\n {\r\n\t if (version_no == null || version_no.equals(\"\"))\r\n\t\t version_no = \"VER_11\";\r\n\t \r\n OperationLog[] retArray = null;\r\n IDBAdapter db = null;\r\n ResultSet rs = null;\r\n try {\r\n String sql = \"select A.\"+this.OpLogID+\",B.\"+this.OperationName+\",B.\"+this.OperationType+\",C.\"+this.WebService+\",D.\"+this.NodeDomain;\r\n sql += \",A.\"+this.UserName+\",A.\"+this.TransID+\",E.\"+this.OperationLogStatus+\",A.\"+this.StartDate+\",A.\"+this.EndDate;\r\n sql += \" from \"+this.TableName+\" A,\"+this.OperationTableName+\" B,\"+this.WebServiceTableName+\" C,\";\r\n sql += this.NodeDomainTableName+\" D,\"+this.OperationLogStatusTableName+\" E\";\r\n sql += \" where A.\"+this.OperationID+\" = B.\"+this.OperationID+\" and A.\"+this.OpLogID+\" = E.\"+this.OpLogID;\r\n sql += \" and B.\"+this.WebServiceID+\" = C.\"+this.WebServiceID+\" (+) and B.\"+this.NodeDomainID+\" = D.\"+this.NodeDomainID;\r\n sql += \" and B.\"+this.VersionNo+\" = '\"+version_no+\"'\";//Added by Helen 20081030\r\n if (opName != null)\r\n sql += \" and B.\"+this.OperationName+\" = '\"+opName+\"'\";\r\n if (opType != null)\r\n sql += \" and B.\" + this.OperationType + \" = '\" + opType + \"'\";\r\n if (wsName != null)\r\n sql += \" and C.\"+this.WebService+\" = '\"+wsName+\"'\";\r\n if (domains != null && domains.length > 0) {\r\n sql += \" and (D.\"+this.NodeDomain+\" in (\";\r\n for (int i = 0; i < domains.length; i++) {\r\n if (i != 0) sql += \",\";\r\n sql += \"'\"+domains[i]+\"'\";\r\n }\r\n sql += \")\";\r\n sql += \" or (C.\" + this.WebService + \" = '\" + Phrase.WEB_METHOD_AUTHENTICATE + \"'\";\r\n sql += \" and A.\" + this.Token + \" in (select F.\" + this.Token + \" from \" + this.TableName + \" F\";\r\n sql += \", \" + this.OperationTableName + \" G, \" + this.NodeDomainTableName + \" H\";\r\n sql += \" where F.\" + this.OperationID + \" = G.\" + this.OperationID + \" and G.\" + this.NodeDomainID + \" = H.\" + this.NodeDomainID;\r\n sql += \" and H.\" + this.NodeDomain + \" in (\";\r\n for (int i = 0; i < domains.length; i++) {\r\n if (i != 0) sql += \",\";\r\n sql += \"'\"+domains[i]+\"'\";\r\n }\r\n sql += \")))\";\r\n sql += \" or (C.\" + this.WebService + \" = '\" + Phrase.WEB_METHOD_GETSERVICES + \"'\";\r\n sql += \" and A.SERVICE_TYPE in (\";\r\n for (int i = 0; i < domains.length; i++) {\r\n if (i != 0) sql += \",\";\r\n sql += \"'\"+domains[i]+\"'\";\r\n }\r\n sql += \"))\";\r\n sql += \" or (C.\" + this.WebService + \" = '\" + Phrase.WEB_METHOD_GETSTATUS + \"'\";\r\n sql += \" and A.\" + this.SuppliedTransID + \" in (select I.\" + this.TransID + \" from \" + this.TableName + \" I\";\r\n sql += \", \" + this.OperationTableName + \" J, \" + this.NodeDomainTableName + \" K\";\r\n sql += \" where I.\" + this.OperationID + \" = J.\" + this.OperationID + \" and J.\" + this.NodeDomainID + \" = K.\" + this.NodeDomainID;\r\n sql += \" and K.\" + this.NodeDomain + \" in (\";\r\n for (int i = 0; i < domains.length; i++) {\r\n if (i != 0) sql += \",\";\r\n sql += \"'\"+domains[i]+\"'\";\r\n }\r\n sql += \")))\";\r\n sql += \")\";\r\n }\r\n if (userName != null)\r\n sql += \" and upper(A.\"+this.UserName+\") like upper('%\"+userName+\"%')\";\r\n if (token != null)\r\n sql += \" and A.\"+this.Token+\" like '%\"+token+\"%'\";\r\n if (transID != null)\r\n sql += \" and (A.\"+this.TransID+\" like '%\"+transID+\"%' or A.\"+this.SuppliedTransID+\" like '%\"+transID+\"%')\";\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\r\n if (start != null)\r\n sql += \" and (A.\"+this.StartDate+\" > '\"+dateFormat.format(start)+\"' or A.\"+this.EndDate+\" > '\"+dateFormat.format(start)+\"')\";\r\n if (end != null) {\r\n Calendar cal = Calendar.getInstance(TimeZone.getDefault());\r\n cal.setTime(end);\r\n cal.add(Calendar.DAY_OF_MONTH,1);\r\n java.util.Date searchEnd = cal.getTime();\r\n sql += \" and (A.\"+this.StartDate+\" < '\"+dateFormat.format(searchEnd)+\"' or A.\"+this.EndDate+\" < '\"+dateFormat.format(searchEnd)+\"')\";\r\n }\r\n sql += \" and E.\"+this.OperationLogStatusID+\" = (select max(E2.\"+this.OperationLogStatusID+\")\";\r\n sql += \" from \"+this.OperationLogStatusTableName+\" E2 where E2.\"+this.OpLogID+\" = E.\"+this.OpLogID+\")\";\r\n if (status != null && !status.equals(\"\"))\r\n sql += \" and E.\"+this.OperationLogStatus+\" = '\"+status+\"'\";\r\n sql += \" and B.\"+this.VersionNo+\" = '\"+version_no+\"'\";\r\n sql += \" order by A.\"+this.OpLogID+\" desc\";\r\n db = this.GetNodeDB();\r\n rs = db.GetResultSet(sql);\r\n if (rs != null && rs.last() && rs.getRow() > 0) {\r\n retArray = new OperationLog[rs.getRow()];\r\n rs.beforeFirst();\r\n for (int i = 0; rs.next() && i < retArray.length; i++) {\r\n OperationLog temp = new OperationLog(rs.getInt(this.OpLogID));\r\n temp.SetOperationName(rs.getString(this.OperationName));\r\n temp.SetOperationType(rs.getString(this.OperationType));\r\n temp.SetDomain(rs.getString(this.NodeDomain));\r\n temp.SetUserName(rs.getString(this.UserName));\r\n temp.SetTransID(rs.getString(this.TransID));\r\n ArrayList statusList = new ArrayList();\r\n ArrayList tempList = new ArrayList();\r\n tempList.add(rs.getString(this.OperationLogStatus));\r\n statusList.add(tempList);\r\n temp.SetStatus(statusList);\r\n temp.SetStartDate(rs.getString(this.StartDate));\r\n temp.SetEndDate(rs.getString(this.EndDate));\r\n if (temp.GetOperationType() != null)\r\n if (temp.GetOperationType().equals(Phrase.WEB_SERVICE_OPERATION))\r\n temp.SetWebServiceName(rs.getString(this.WebService));\r\n retArray[i] = temp;\r\n }\r\n }\r\n } catch (Exception e) {\r\n this.LogException(\"Could Not Search Operation Log: \" + e.toString());\r\n } finally {\r\n try {\r\n if (rs != null)\r\n rs.close();\r\n if (db != null)\r\n db.Close();\r\n } catch (Exception e) {\r\n this.LogException(e.toString());\r\n }\r\n }\r\n return retArray;\r\n }", "public static void queryAndDataToCSV() throws IOException {\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"Graph\"+x+\".csv\"));\r\n\t\tArrayList<ArrayList<String>> dataset =ReadInDataset.finalDataset;\r\n\t\tfor (int i=0; i< dataset.size(); i++) {\r\n\t\t\tString entry= dataset.get(i).get(1)+\",\"+ dataset.get(i).get(2);\r\n\t\t\tif (i< Queries.NumberOfQueries) {\r\n\t\t\t\tfor (int x=0; x<(Queries.NumberOfDimensions/2)-1;x++) {\r\n\t\t\t\tentry = entry+\",\"+query.get(i).get(x).get(0) +\",\" +query.get(i).get(x).get(1);\r\n\t\t\t\tentry = entry+\",\"+query.get(i).get(x+1).get(0) +\",\" +query.get(i).get(x+1).get(1);\r\n\t\t\t\t\r\n\t\t\t}}\r\n\t\t\twriter.write(entry);\r\n\t\t\twriter.newLine();\r\n\t\t}\r\n\t\twriter.close();\r\n\t}", "private void getSelectStatements()\n\t{\n\t\tString[] sqlIn = new String[] {m_sqlOriginal};\n\t\tString[] sqlOut = null;\n\t\ttry\n\t\t{\n\t\t\tsqlOut = getSubSQL (sqlIn);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlog.log(Level.SEVERE, m_sqlOriginal, e);\n\t\t\tthrow new IllegalArgumentException(m_sqlOriginal);\n\t\t}\n\t\t//\ta sub-query was found\n\t\twhile (sqlIn.length != sqlOut.length)\n\t\t{\n\t\t\tsqlIn = sqlOut;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsqlOut = getSubSQL (sqlIn);\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlog.log(Level.SEVERE, m_sqlOriginal, e);\n\t\t\t\tthrow new IllegalArgumentException(sqlOut.length + \": \"+ m_sqlOriginal);\n\t\t\t}\n\t\t}\n\t\tm_sql = sqlOut;\n\t\t/** List & check **\n\t\tfor (int i = 0; i < m_sql.length; i++)\n\t\t{\n\t\t\tif (m_sql[i].indexOf(\"SELECT \",2) != -1)\n\t\t\t\tlog.log(Level.SEVERE, \"#\" + i + \" Has embedded SQL - \" + m_sql[i]);\n\t\t\telse\n\t\t\t\tlog.fine(\"#\" + i + \" - \" + m_sql[i]);\n\t\t}\n\t\t/** **/\n\t}", "String toSql();", "@Override\n public String toString() {\n return \"QueryMatchIterator{\" +\n \"log=\" + log +\n \", queryService=\" + queryService +\n \", totalResults=\" + totalResults +\n \", step=\" + step +\n \", results=\" + results +\n \", totalOffset=\" + totalOffset +\n \", matchesOffset=\" + matchesOffset +\n '}';\n }", "public String getSql() {\n return sql;\n }", "public void callQuery(String query) throws SQLException {\n for(int i = 0; i < queryHistory.size(); i++) {\n if(queryHistory.get(i).equalsIgnoreCase(query))\n data.get(i).OUPUTQUERY(data.get(i).getConversionArray(), data.get(i).getResultSet());\n }\n }", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "public List sqlQuery(String sql,Object... params);", "protected static List<List<?>> executeSql(IgniteEx node, String stmt, Object... args) {\n return node.context().query().querySqlFields(new SqlFieldsQuery(stmt).setArgs(args), true).getAll();\n }", "ResultSet getResultSet(String query) {\n try {\n Statement statement = connection.createStatement();\n return statement.executeQuery(query);\n } catch (Exception e) {\n logger.info(\"getResultSet \" + e.getStackTrace().toString());\n return null;\n }\n }", "public List<IEntity> query(IQuery query) throws SQLException;" ]
[ "0.63466305", "0.5953914", "0.593937", "0.57096905", "0.5658361", "0.5633387", "0.5531827", "0.54997075", "0.5497793", "0.54961497", "0.5458955", "0.54551727", "0.54253626", "0.5385952", "0.5361573", "0.5343325", "0.53368306", "0.53138083", "0.5276177", "0.5259403", "0.523884", "0.5140508", "0.51350975", "0.51274025", "0.51043296", "0.5083823", "0.5044657", "0.503393", "0.5032094", "0.50126594", "0.50079197", "0.50079197", "0.50029474", "0.49771062", "0.4975878", "0.49603087", "0.49327078", "0.49283528", "0.49145937", "0.49143857", "0.49073103", "0.49032825", "0.4892774", "0.48808828", "0.48747888", "0.48675665", "0.48603636", "0.48600578", "0.4854948", "0.48502573", "0.4842346", "0.48344642", "0.48256728", "0.481905", "0.48188844", "0.48164505", "0.48034567", "0.47989506", "0.4795235", "0.4793435", "0.47917667", "0.47815233", "0.47793382", "0.4761462", "0.4757354", "0.47454932", "0.47426298", "0.47413668", "0.47410497", "0.47356057", "0.47317153", "0.4726503", "0.47241992", "0.4723318", "0.47224247", "0.4714719", "0.47139448", "0.47029334", "0.47011277", "0.4698486", "0.46898487", "0.46767247", "0.46762323", "0.4673438", "0.46651366", "0.46557903", "0.46482894", "0.4609055", "0.46004543", "0.4595508", "0.45941347", "0.4585927", "0.45701817", "0.45658863", "0.45656437", "0.4562334", "0.4560181", "0.4560109", "0.45595813", "0.45581812" ]
0.7161913
0
creating the sideUp variable, which is needed in the getSide later
Coin()//method to initialize the coin with a side {//opening code for the coin method toss();//statement of using the later toss method to initialize the coin }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSide()//method to retrive the value of the SideUp String\r\n {//opening code for getSide method\r\n return sideUp;//getting the value for sideUp\r\n }", "public String getSideUp()\n {\n return sideUp;\n }", "public String getSide2() { return side2; }", "public void setSide(String side) {\n\t\tthis.side = side;\n\t}", "public String getSide() {\r\n return side;\r\n }", "Side getSide();", "public static short getAdversarySide(short side) {\r\n\treturn (short) Math.abs(side - 1);\r\n }", "public String getSide1() { return side1; }", "public double getSide1() {return side1;}", "double getside2(){\n\t\treturn side2;\n\t}", "public String getSide() {\n\t\treturn side;\n\t}", "public int getSideId() {\r\n return sideId;\r\n }", "public Side getSide() {\r\n\t\treturn side;\r\n\t}", "int side() {\n return s;\n }", "com.cantor.drop.aggregator.model.CFTrade.Side getSide();", "private Side secondSide(final Cell cell, final Side prev) {\n switch (cell.getCellNdx()) {\n case 8:\n case 12:\n case 14:\n return LEFT;\n case 1:\n case 9:\n case 13:\n return BOTTOM;\n case 2:\n case 3:\n case 11:\n return RIGHT;\n case 4:\n case 6:\n case 7:\n return TOP;\n case 5:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case LEFT:\n return cell.isFlipped() ? BOTTOM : TOP;\n case RIGHT:\n return cell.isFlipped() ? TOP : BOTTOM;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n case 10:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case BOTTOM:\n return cell.isFlipped() ? RIGHT : LEFT;\n case TOP:\n return cell.isFlipped() ? LEFT : RIGHT;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n default:\n final String m = \"Attempt to use a trivial Cell as a node: \" + cell;\n throw new IllegalStateException(m);\n }\n }", "public double getSide()\n\t{\n\t\treturn this.side;\n\t}", "public int side() {\n //YOUR CODE HERE\n\t return teamSide;\n }", "double getside1(){\n\t\treturn side1;\n\t}", "boolean hasSide();", "private String parentside(WAVLNode d,WAVLNode y) {\n\t if(d.right==y) {\r\n\t\t return \"right\";\r\n\t }\r\n\t else {\r\n\t\t return \"left\";\r\n\t }\r\n }", "public QuoteSide getQuoteSide(BookSide sideIn) {\n\t\tQuoteSide quoteSideCopy = null;\n\t\tquoteSideCopy = (sideIn.equals(BookSide.BUY)) ? new QuoteSide(buy) : new QuoteSide(sell);\n\t\treturn quoteSideCopy;\n\t}", "public void setSide2(String side2) {\n \tthis.side2 = side2;\n }", "public Squarelotron sideFlip(String side);", "public void setRightSide(boolean side) {\n this.rightSide = side;\n }", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "public House getUp() {return up;}", "public int getSide() {\n\t\treturn getLength() ;\n\t}", "public int[] getAccessibleSlotsFromSide(int side)\n {\n return side == 0 ? slotsBottom : slotsTopSides;\n }", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void setSide1(String side1) {\n \tthis.side1 = side1;\n }", "@Override\n\tpublic String calculateRightTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "public void setSideId(int value) {\r\n this.sideId = value;\r\n }", "@Override\n\tprotected SideWiseType determineSideWiseType(final List<Double> sides) {\n\t\tSideWiseType shapeType = super.determineSideWiseType(sides);\t// first see what superclass found out\n\t\t\n\t\tif (SideWiseType.EQUILATERAL.equals(shapeType)) {\n\t\t\t// determined as equilateral by superclass: this is the most specific side-wise type for a triangle so use it\n\t\t\treturn shapeType;\n\t\t}\n\t\t\n\t\t// not equilateral, must be either isosceles or scalene\n\t\tSet<Double> sidesByLength = sides.stream().collect(Collectors.toSet());\n\t\tif (sidesByLength.size() == 2) {\n\t\t\t// two sides of the same length, one of another length -> isosceles\n\t\t\treturn SideWiseType.ISOSCELES;\n\t\t} \n\t\t\n\t\t// neither equilateral nor isosceles: it is scalene\n\t\treturn SideWiseType.SCALENE;\n\t}", "double getside3(){\n\t\treturn side3;\n\t}", "private static Position getRightBottomNeighbor(Position curr, int side) {\n int newX = curr.getX() + getNumElement(0, side) + getNumSpacePerSide(0, side) + 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public double getSide2() {\r\n\t\treturn side2;\r\n\t}", "DoorMat getHingeOnRightSide(boolean onRightSide) throws RuntimeException;", "@Override\n public Side getSide() {\n return aircraftId.getSide();\n }", "int getSides()\n\t\t{\n\t\t\treturn sides;\n\t\t}", "public double getSideA()\r\n\t{\r\n\t\treturn this.sideA;\r\n\t}", "public void setSide2(double side2) {\r\n\t\tthis.side2 = side2;\r\n\t}", "public static Vector2 GetUp(){\n return new Vector2(0, -1);\n }", "public int lancer() {\n int side;\n do {\n side = r.nextInt(this.getNbFaces() + 1);\n } while (side == last_value);\n last_value = side;\n\n return side;\n }", "BookSide getSide();", "private static Position getLeftNeighbor(Position curr, int side) {\n int newX = curr.getX() - getNumElement(0, side) - getNumSpacePerSide(0, side) - 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "void integrateBorderSegment(int side, TableFObj parent) {\n switch (side) {\n case CommonBorderPaddingBackground.BEFORE:\n case CommonBorderPaddingBackground.AFTER:\n integrateBorderSegment(side, parent, true, true, true);\n break;\n case CommonBorderPaddingBackground.START:\n borderStart = collapsingBorderModel.determineWinner(borderStart,\n parent.borderStart);\n break;\n case CommonBorderPaddingBackground.END:\n borderEnd = collapsingBorderModel.determineWinner(borderEnd,\n parent.borderEnd);\n break;\n default: assert false;\n }\n }", "@Override\n\tpublic boolean isAWin(int side) {\n\t\treturn false;\n\t}", "public void setSideA(double sideA)\r\n\t{\r\n\t\tthis.sideA=sideA;\r\n\t\t\r\n\t}", "private Side nextSide(final Cell cell, final Side prev) {\n return secondSide(cell, prev);\n }", "private static Position getBottomNeighbor(Position curr, int side) {\n int newX = curr.getX();\n int newY = curr.getY() - side * 2;\n return new Position(newX, newY);\n }", "public double getSide1() {\r\n\t\treturn side1;\r\n\t}", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "@Override\n\tpublic String calculateLeftTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "public Side longerSide() {\n throw new UnsupportedOperationException(\"Waiting to be implemented.\");\n }", "public void setRight(int x) {\r\n rightSide = x;\r\n }", "public Velocity changeSigns(Side side) {\n Velocity v;\n switch (side) {\n case TOP:\n case BOTTOM:\n v = this.changeDirection(1, -1);\n break;\n case LEFT:\n case RIGHT:\n v = this.changeDirection(-1, 1);\n break;\n case CORNER:\n v = this.changeDirection(-1, -1);\n break;\n case NONE:\n default:\n v = this.changeDirection(1, 1);\n break;\n }\n return v;\n }", "Point3D getLeftUpperBackCorner();", "public void changeCurrentSide() {\r\n\tthis.currentSide = getAdversarySide(this.currentSide);\r\n\r\n\tfireChanged(CURRENT_SIDE, NO_SIDE, NO_POSITION);\r\n }", "public YuanC_LuH_Sides() {\n\t\tsuper();\n\t\tmaker=\"\";\n\t\t\n\t}", "public ArcherElement(Side side) {\n super(1.2, Speed.MEDIUM, Target.AIR_AND_GROUND, 5, false, 125, 33,side);\n this.movingArea = MovingArea.GROUND;\n Animations animations = Animations.getInstance();\n if (side == Side.PLAYER){\n move1 = animations.ArcherPlayerSideMove1;\n move2 = animations.ArcherPlayerSideMove2;\n attack1 = animations.ArcherPlayerSideAttack1;\n attack2 = animations.ArcherPlayerSideAttack2;\n } else if (side == Side.BOT){\n move1 = animations.ArcherBotSideMove1;\n move2 = animations.ArcherBotSideMove2;\n attack1 = animations.ArcherBotSideAttack1;\n attack2 = animations.ArcherBotSideAttack2;\n }\n }", "public FluidCuboid getSideFlow(boolean out) {\n\t\t\treturn this.fluids.get(out ? ChannelModelPart.SIDE_OUT : ChannelModelPart.SIDE_IN);\n\t\t}", "@Override\n public Dice upView() {\n char[] newSides = this.sides.clone();\n newSides[0] = this.sides[3];\n newSides[1] = this.sides[0];\n newSides[3] = this.sides[5];\n newSides[5] = this.sides[1];\n return new Dice(newSides);\n }", "private void addUpBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j < y + len; j += 1) {\n for (int i = x - leftWid; i < x + rightWid + 1; i += 1) {\n world[i][j] = te;\n }\n }\n }", "private static Side firstSide(final Cell cell, final Side prev) {\n switch (cell.getCellNdx()) {\n case 1:\n case 3:\n case 7:\n return LEFT;\n case 2:\n case 6:\n case 14:\n return BOTTOM;\n case 4:\n case 11:\n case 12:\n case 13:\n return RIGHT;\n case 8:\n case 9:\n return TOP;\n case 5:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case LEFT:\n return RIGHT;\n case RIGHT:\n return LEFT;\n default:\n throw new NoSaddlePointException(cell, prev);\n }\n case 10:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case BOTTOM:\n return TOP;\n case TOP:\n return BOTTOM;\n default:\n throw new NoSaddlePointException(cell, prev);\n }\n default:\n final String m = \"Attempt to use a trivial cell as a start node: \" + cell;\n throw new IllegalStateException(m);\n }\n }", "@Override\n public boolean isGoodForSides()\n {\n return false;\n }", "public Room goUp() {\n return goDir(Side.UP);\n }", "private void showUpsideDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.upside);\n\t\tfinal String[] upsideUIString = uiDisplayResource.getUpside();\n\t\tif (upsideUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"upsideUIString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = upsideUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_UPSIDE,\n\t\t\t\tcameraProperties.getCurrentUpsideDown());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (upsideUIString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection\n\t\t\t\t\t\t.refecltFromUItoSDK(UIReflectToSDK.SETTING_SDK_UPSIDE,\n\t\t\t\t\t\t\t\tupsideUIString[arg1]);\n\t\t\t\tcameraProperties.setUpsideDown(value);\n\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_UPSIDE_DOWN).sendToTarget();\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, upsideUIString, curIdx, listener, true);\n\t}", "public int singleRotation(AVLNode node, char side) {\n\t\tif (side == 'L') {\n\t\t\tchar pSide = ((AVLNode) node.getParent()).parentSide();\n\t\t\tnode.parent.setLeft(node.right);\n\t\t\tnode.right.setParent(node.parent);\n\t\t\tnode.setRight(node.parent);\n\t\t\tnode.setParent(node.getRight().getParent());\n\t\t\tnode.right.setParent(node);\n\t\t\tif (pSide == 'L') {\n\t\t\t\tnode.getParent().setLeft(node);\n\t\t\t} else if (pSide == 'R') {\n\t\t\t\tnode.getParent().setRight(node);\n\t\t\t}\n\t\t\tnode.right.setHeight(node.right.getHeight() - 1);\n\t\t\tif (node.checkRoot()) {// we need to update root pointer\n\t\t\t\tthis.root = node;\n\t\t\t}\n\t\t\tnode.right.setSize();\n\t\t\tnode.setSize();\n\t\t\treturn 2;\n\t\t}\n\n\t\telse {// side == 'R'\n\t\t\tchar pSide = ((AVLNode) node.getParent()).parentSide();\n\t\t\tnode.parent.setRight(node.left);\n\t\t\tnode.left.setParent(node.parent);\n\t\t\tnode.setLeft(node.parent);\n\t\t\tnode.setParent(node.getLeft().getParent());\n\t\t\tnode.left.setParent(node);\n\t\t\tif (pSide == 'L') {\n\t\t\t\tnode.getParent().setLeft(node);\n\t\t\t} else if (pSide == 'R') {\n\t\t\t\tnode.getParent().setRight(node);\n\t\t\t}\n\t\t\tnode.left.setHeight(node.left.getHeight() - 1);\n\t\t\tif (node.checkRoot()) {// we need to update root pointer\n\t\t\t\tthis.root = node;\n\t\t\t}\n\t\t\tnode.left.setSize();\n\t\t\tnode.setSize();\n\t\t\treturn 2;\n\t\t}\n\t}", "private int right(int parent) {\n\t\treturn parent*2+2;\n\t}", "public static Vector4 up()\n {\n return new Vector4(0,1,0,0);\n }", "private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }", "private float calculateSidePixel(double straightDist, double sideDist) {\n double angleToObject = Math.toDegrees(atan(sideDist/straightDist));\n double pixelsToObject = cameraType.hPPA * angleToObject;\n // calculate px\n return (float)((CameraType.imageWidth/2) - pixelsToObject);\n }", "Side turn() {\n return _turn;\n }", "public Squarelotron upsideDownFlip(int ring);", "public double calculateField(double aSide);", "protected double getArea()\r\n {\r\n return ( side * side ) / 2;\r\n }", "public void alignSelectedFurnitureSideBySide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n alignFurnitureSideBySide(alignedFurniture, leadPiece);\n }\n });\n }", "public void setSide1(double side1) {\r\n\t\tthis.side1 = side1;\r\n\t}", "public static Direction randomSideDirection(Direction direction) {\n Random rand = new Random();\n int side = rand.nextInt(2);\n if (direction.isHorizontal())\n return (side == 0)? NORTH:SOUTH;\n if (direction.isVertical())\n return (side == 0)? WEST:EAST;\n return null;\n }", "public Builder clearSide() {\n bitField0_ = (bitField0_ & ~0x00000004);\n side_ = 0;\n onChanged();\n return this;\n }", "public int getNumOfSides(){return numOfSides;}", "public void setSideLength(double sideLength) {\n\t\tthis.sideLength = sideLength;\n\t}", "public String getNorthSide() {\n return (String) getAttributeInternal(NORTHSIDE);\n }", "private int getSidePadding() {\r\n\t\t// Padding between rectangles\r\n\t\tint rectPadding = RECT_HEIGHT / 2;\r\n\t\tint rectsAndPadding = (3 * RECT_WIDTH) + (2 * rectPadding);\r\n\t\treturn ((getWidth() - rectsAndPadding) / 2);\r\n\t}", "@Override\n public String toString() {\n\t// TODO\n\treturn super.toString() + \" Sides: \" + this.getSide();\n }", "public int getMyNumSides(){\r\n return myNumSides;\r\n }", "public static Direction toGlobal(final Entity entity, @Nullable final RobotOperationSide side) {\n Direction direction = side == null\n ? RobotOperationSide.FRONT.direction\n : side.direction;\n if (direction.getAxis().isHorizontal()) {\n final int horizontalIndex = entity.getDirection().get2DDataValue();\n for (int i = 0; i < horizontalIndex; i++) {\n direction = direction.getClockWise();\n }\n }\n return direction;\n }", "public ArrayList<String> legalMoves(boolean side) {\n\t\tArrayList<String> moveList = new ArrayList<String>();\n\t\tchar fTemp = ' ', tTemp = ' ';\n\t\tString tempMove;\n\t\tupdate();\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (b[r][c].getSide() == side && !(b[r][c] instanceof Null)) {\n\t\t\t\t\tif (c == 0) {\n\t\t\t\t\t\tfTemp = 'a';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 1) {\n\t\t\t\t\t\tfTemp = 'b';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 2) {\n\t\t\t\t\t\tfTemp = 'c';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 3) {\n\t\t\t\t\t\tfTemp = 'd';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 4) {\n\t\t\t\t\t\tfTemp = 'e';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 5) {\n\t\t\t\t\t\tfTemp = 'f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 6) {\n\t\t\t\t\t\tfTemp = 'g';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (c == 7) {\n\t\t\t\t\t\tfTemp = 'h';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (b[r][c] instanceof King) {\n\t\t\t\t\t\tif (side) {\n\t\t\t\t\t\t\tif (b[0][5] instanceof Null && b[0][6] instanceof Null && ((King) b[r][c]).getCKS()) {\n\t\t\t\t\t\t\t\tmoveList.add(\"O-O\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (b[0][1] instanceof Null && b[0][2] instanceof Null && ((King) b[r][c]).getCQS()) {\n\t\t\t\t\t\t\t\tmoveList.add(\"O-O-O\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif (b[7][5] instanceof Null && b[7][6] instanceof Null && ((King) b[r][c]).getCKS()) {\n\t\t\t\t\t\t\t\tmoveList.add(\"O-O\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (b[7][1] instanceof Null && b[7][2] instanceof Null && ((King) b[r][c]).getCQS()) {\n\t\t\t\t\t\t\t\tmoveList.add(\"O-O-O\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor (Piece p : b[r][c].getMoves()) {\n\t\t\t\t\t\tif (p.getFile() == 0) {\n\t\t\t\t\t\t\ttTemp = 'a';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 1) {\n\t\t\t\t\t\t\ttTemp = 'b';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 2) {\n\t\t\t\t\t\t\ttTemp = 'c';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 3) {\n\t\t\t\t\t\t\ttTemp = 'd';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 4) {\n\t\t\t\t\t\t\ttTemp = 'e';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 5) {\n\t\t\t\t\t\t\ttTemp = 'f';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 6) {\n\t\t\t\t\t\t\ttTemp = 'g';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (p.getFile() == 7) {\n\t\t\t\t\t\t\ttTemp = 'h';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttempMove = b[r][c].getSymbol() + \"\" + fTemp + \"\" + (b[r][c].getRank()+1) + '-' + tTemp + (p.getRank()+1);\n\t\t\t\t\t\tBoard nBD = new Board(getBoard());\n\t\t\t\t\t\tnBD.move(tempMove, side);\n\t\t\t\t\t\tnBD.update();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!(nBD.check(!side))) {\n\t\t\t\t\t\t\t//Promotion\n\t\t\t\t\t\t\tif (side && p.getRank() == 7 && b[r][c] instanceof Pawn) {\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=Q\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=R\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=N\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=B\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse if (!side && p.getRank() == 0 && b[r][c] instanceof Pawn) {\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=Q\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=R\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=N\");\n\t\t\t\t\t\t\t\tmoveList.add(tempMove + \"=B\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmoveList.add(tempMove);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn moveList;\n\t}", "Point3D getRightLowerFrontCorner();", "FloppyDriveSide getCurrentTrackSide() {\n return currentTrackSide;\n }", "public void setTop(int x) {\r\n topSide = x;\r\n }", "public Direction sideSymm(Direction dir) {\n return new Direction(-1 * dir.xDist(), dir.yDist(), dir.length());\n }", "private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}", "public void setSide(Enumerator newValue);", "public double getSideLength() {\n\t\treturn this.sideLength;\n\t}", "public String getSides()\n\t{\n\t\treturn sides.getText();\n\t}", "public Integer getSides();", "public void setLeft(int x) {\r\n leftSide = x;\r\n }" ]
[ "0.73898625", "0.7331069", "0.6450184", "0.62998366", "0.6283541", "0.62755257", "0.62652254", "0.6257683", "0.61443347", "0.6059017", "0.60471267", "0.598115", "0.59677684", "0.5953447", "0.5886718", "0.5865919", "0.58464104", "0.583307", "0.5797146", "0.5767063", "0.57417995", "0.5739084", "0.5732942", "0.56733686", "0.5656274", "0.56487644", "0.5641407", "0.56396616", "0.5621644", "0.5585774", "0.5545881", "0.55011517", "0.5493534", "0.5490095", "0.54897857", "0.54845273", "0.5459123", "0.5457413", "0.54476917", "0.54147834", "0.53987813", "0.5379241", "0.53693676", "0.53645456", "0.5362566", "0.5352532", "0.53487617", "0.5346928", "0.534516", "0.5334361", "0.5318971", "0.53085154", "0.5299944", "0.5292492", "0.5276807", "0.5264018", "0.52637684", "0.5260583", "0.52458", "0.52430445", "0.52401936", "0.5239826", "0.523531", "0.52308327", "0.52296215", "0.5218917", "0.52127665", "0.5204942", "0.52018106", "0.51966655", "0.5189434", "0.51820374", "0.51697284", "0.51637375", "0.5151695", "0.5144336", "0.51410055", "0.5133587", "0.5127735", "0.5127192", "0.5124645", "0.51195455", "0.5111431", "0.51082116", "0.5095086", "0.50840557", "0.50832057", "0.50542706", "0.5050116", "0.50450474", "0.50427824", "0.50329536", "0.50324523", "0.50278276", "0.50273925", "0.5021022", "0.5017221", "0.50123477", "0.5006484", "0.50013906", "0.49980506" ]
0.0
-1
closing code for the coin method
public void toss()//method to flip a coin object {//opening code for the toss method Random coinflip = new Random();//creating a new object of the random class named coinflip int rng = coinflip.nextInt(2);//assigning an integer rng using the random, to get an int between of 0 or 1 if (rng == 0)//if statement saying if that rng integer comes out as 0 do the following {//opening code for if statement sideUp = "Heads";//if the integer is 0 assign the sideUp to the string Heads }//closing code for if statement else //if the integer comes up as anything that isn't 0 (which can only be 1) {//opening code for else statement sideUp = "Tails";//assigning the sideUp variable to a string called Tails }//closing code for else statement }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public void youBrokeSon(){\n\t\tcoinList.clear();\n\t}", "void endcredits() {\n }", "public static void main(String[] args)//main method to actually use the previous methods\r\n {//opening main method code\r\n Coin coin = new Coin();//creating a new coin object of the Coin class\r\n System.out.println(\"The initial side of the coin is \" + coin.getSide());//using the getSide method to tell user coins initial facing\r\n int heads = 0;//setting counter for how many times the coin flips heads\r\n int tails = 0;//setting counter for how many times the coin flips tails\r\n \r\n for(int i=1;i<21;i++)//creating a for loop to run 20 times, to simulate the coin flipping 20 times\r\n {//opening for loop code\r\n coin.toss();//using the toss method on our coin object\r\n if (coin.getSide()==\"Heads\")//if statemtn for if the coin toss brings up heads do the following\r\n {//opening code for if \r\n heads++;//adds 1 count to the heads int because it has come up heads\r\n System.out.println(\"Coin toss \" + i + \" came up as \" + coin.getSide()); //tells user for this specific coin flip what the coin came up as\r\n }//closing code for if\r\n else//else statement if coin does not come up as heads\r\n {//opening code for else\r\n tails++;//adds 1 count to the tails int because it has come up tails\r\n System.out.println(\"Coin toss \" + i + \" came up as \" + coin.getSide());//tells user for this specific coin flip what the coin came up as\r\n }//closing code for else\r\n \r\n }//closing for loop code\r\n System.out.println(\"The total amount of times the coin came up as heads was \" + heads +//telling user how many total times each side came up\r\n \" times.\\nThe total amount of times the coin came up as tails was \" + tails + \" times.\");//when the coin was flipped\r\n }", "public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }", "public void returncoins(){\r\n\t\tDS1 d= (DS1) ds;\r\n\t\tSystem.out.println(\"Coins returned : \" + d.cp + \"\\n\");\r\n\t\td.cp=0;\r\n\t}", "public void warningCoins(int coins);", "public void takeoutMoney (double amount) {\n if(amount >= 2.0) {\n int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 2.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NToonie -= numberToRemove;\n amount -= 2.0 * numberToRemove;\n }\n if(amount >= 1.0) {\n int numberToRemove = (int) Math.min(getLoonie(), amount / 1.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 1.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NLoonie -= numberToRemove;\n amount -= 1.0 * numberToRemove;\n }\n if(amount >= 0.25) {\n int numberToRemove = (int) Math.min(getQuarter(), amount / 0.25);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.25) {\n coins.remove(j);\n break;\n }\n }\n }\n NQuarter -= numberToRemove;\n amount -= 0.25 * numberToRemove;\n }\n if(amount >= 0.1) {\n int numberToRemove = (int) Math.min(getDime(), amount / 0.1);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.1) {\n coins.remove(j);\n break;\n }\n }\n }\n NDime -= numberToRemove;\n amount -= 0.1 * numberToRemove;\n }\n if(amount >= 0.05) {\n int numberToRemove = (int) Math.min(getNickel(), amount / 0.05);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.05) {\n coins.remove(j);\n break;\n }\n }\n }\n NNickel -= numberToRemove;\n amount -= 0.05 * numberToRemove;\n }\n }", "protected void i_get_coin() {\n\t\tget_coins++;\n\t\tscore+=200;\n\t\t s();\n\t\t\n\n\t\t\n\t\ttxt.setText(\"Score: \" + score+\" HighScore: \" + hscore);\n\t\t\n\t\tMediaPlayer mp = MediaPlayer.create(Game.this, R.raw.coin);\n\t\tmp.start();\n\t\t\n\t\t\t\n\t\t\n\t\tif (get_coins==50){\n\t\t\ti_win();\n\t\t}\n\t}", "@Test\r\n\tpublic void testCoinRejected() {\r\n\t\tCoin coin = new Coin(7);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.coinRejected(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\t\t\t\r\n\t}", "public void visitCoinDispenser( DevCat devCat ) {}", "@Test(expected=NoCoinsException.class)\n\tpublic void testNoCoin() throws Exception {\n\t\td.dispense(0, 10);\n\t}", "public void endRound() {\n if (!myTurn()) {\n return;\n }\n if (this.board.getWinners().size() > 0 && this.playerId == board.getPlayers().get(board.getPlayers().size() - 1).playerId) {\n this.board.setRunning(false);\n }\n // currentPlayerNumber = (currentPlayerNumber + 1) % players.size();\n // current = players.get(currentPlayerNumber);\n this.removableBlockades = new ArrayList<>();\n coins = (float) 0;\n bought = false;\n specialAction.setDraw(0);\n specialAction.setRemove(0);\n specialAction.setSteal(0);\n history = new ArrayList<>();\n //for (int i = tmpDiscardPile.size(); i > 0; i--){\n // discardPile.add(tmpDiscardPile.remove(0));\n //}\n discardPile.addAll(tmpDiscardPile);\n tmpDiscardPile = new ArrayList<Card>();\n draw();\n board.endRound();\n }", "public void deductCoin(int c) {\n setCoin(getCoin() - c);\n }", "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "private void exit() {\n if (otherCost != null) {\n otherCost = null;\n }\n this.dispose();\n }", "private void updateCoins() {\r\n\t\tFile file = new File(\".coinSave\");\r\n\r\n\t\tPrintWriter pw;\r\n\t\ttry {\r\n\t\t\tpw = new PrintWriter(file);\r\n\t\t\tpw.close();\r\n\r\n\t\t\tFileWriter fw = new FileWriter(file);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\t\tbw.write(_hiddenCoins + \"\\n\");\r\n\t\t\tbw.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public int getCoinsNum();", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "public void takeBetBack() {\n\t\ttotalMoney += bet;\n\t}", "public void removeCoins(Integer amount) {\n addCoins(amount*-1);\n }", "@Override\n public int howManyCoins() {\n return 7;\n }", "public int getCoinNumber(){\r\n\t\treturn coinNumber;\r\n\t}", "public void endTurn() {\r\n\t\tint num = this.hand.size();\r\n\t\tfor (int i = 0; i < num; i++) {\r\n\t\t\tthis.discard.add(this.hand.remove(0));\r\n\t\t}\r\n\t\tint gemHeight = (int) this.totalGemValue() / 3;\r\n\t\tthis.drawFromBag(5 + gemHeight);\r\n\t}", "public void checkOut(double priceIn) {\n \n if (this.balance < priceIn) {\n System.out.println(\"Insufficient funds. Remove an item.\");\n }\n else {\n System.out.print(\"Sufficient funds. Your new balance is $\");\n this.balance -= priceIn;\n System.out.print(this.balance + \".\\n\");\n success = true;\n }\n }", "private void makeWithdraw() {\n\t\t\r\n\t}", "public void flipCoin() {\n coin.flip();\n }", "protected void increaseCoin(String userID, double coin){\n }", "public GoldCoin(){\r\n\t\tcoinNumber = ++totalCoin; //prefix so that coinNumber would start with 1\r\n\t}", "public void toss(Coin myCoin){\n\t\tmyCoin.toss();\n\t\tSystem.out.println(\"coin sideup is \"+myCoin.getSideUp());\n\t\tif(myCoin.getSideUp().equals(\"heads\"))\n\t\t\theads++;\n\t\telse\n\t\t\ttails++;\n\t}", "@DeleteMapping\n void removeCoin() {\n coin = false;\n }", "public void doubleDown(){\n\t\ttotalMoney -= bet;\n\t\tbet += bet;\n\t}", "public void checkOut() {\n\t}", "public void subtractCoins (int n) {\n this.coinCount = Math.max(0, this.coinCount - n);\n this.save();\n }", "protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }", "public void endTurn(){\n int block = character.getBlock();\n int energy = character.getEnergy();\n if( !isGameOver() ){\n effectHandler.endPlayerTurn();\n piles.handToDiscard();\n playEnemy();\n effectHandler.startPlayerTurn();\n effectHandler.applyBlockEffect(new Block(-block,character));\n effectHandler.applyEnergyEffect(new ChangeEnergy(-energy+3));\n turn++;\n //character.fillEnergy();\n //TODO change draw cards system\n\n for(int i = 1 ; i <= 5 ; i++ ){\n piles.drawCard();\n }\n }\n // System.out.println(\"haaaaaaaaaaaaaaaaaaaaaaaa\"+character.getBlock());\n }", "@Override\n\tpublic void debit() {\n\t\tSystem.out.println(\"hsbc debit\");\n\t}", "public int giveChange(Coin coinType)\n {\n numberofcoins = 0;\n while(balance> coinType.getValue()-1E-12){\n numberofcoins++;\n balance = balance - coinType.getValue();\n }\n System.out.println(balance);\n System.out.println(numberofcoins);\n return numberofcoins;\n }", "public int getCoins() {\n return coins; //XXX-CHANGE-XXX\n }", "public Coin() {\n flip();\n }", "public static void lose()\n\t{\n\t\tGame.setMoney(Game.getMoney()-bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"The dealer wins\");\n\t\tif(Game.getMoney()<=0)\n\t\t{\n\t\t\tGame.setComplete(true);\n\t\t\tendGameSequence();\n\n\t\t}\n\t}", "public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }", "public void setCoinCount(int coins){\n coinCount = coins;\n }", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "public static void roundEnd()\n\t{\n\t\tdealerVal.setText(String.valueOf(calculateHand(dealersCards)));\n\t\tdealersMove();\n\t\tfor(int i=1;i<dealersCards.size();i++)\n\t\t{\n\t\t\tdealerCardImg[i].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(dealersCards.get(i)))));\n\t\t}\n\t\tint result=calculateHands(dealersCards, playersCards);\n\t\tswitch(result)\n\t\t{\n\t\tcase 0:\n\t\t\twin();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tlose();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tpush();\n\t\t\tbreak;\n\t\t}\n\t\tclearHands();\n\t\tHome.writetoFile();\n\t\tif(!Game.isComplete())\n\t\t{\n\t\t\tbetting();\n\t\t}\n\t}", "public void removeCoin (Coin coin, int amount) {\n if(!ableToRemove(coin, amount)) System.out.println(\"There are not enough of this coin type to be removed!\");\n if(coin.getType().equalsIgnoreCase(\"Nickel\")) { /* removing nickel from piggy bank */\n NNickel -= amount;\n for(int i = 0; i < amount; i++) coins.remove(coin);\n }\n if(coin.getType().equalsIgnoreCase(\"Dime\")) { /* removing dime from piggy bank */\n NDime -= amount;\n for(int i = 0; i < amount; i++) coins.remove(coin);\n }\n if(coin.getType().equalsIgnoreCase(\"Quarter\")) { /* removing quarter from piggy bank */\n NQuarter -= amount;\n for(int i = 0; i < amount; i++) coins.remove(coin);\n }\n if(coin.getType().equalsIgnoreCase(\"Loonie\")) { /* removing loonie from piggy bank */\n NLoonie -= amount;\n for(int i = 0; i < amount; i++) coins.remove(coin);\n }\n if(coin.getType().equalsIgnoreCase(\"Toonie\")) { /* removing toonie from piggy bank */\n NToonie -= amount;\n for(int i = 0; i < amount; i++) coins.remove(coin);\n }\n }", "public int getCoin() {\n return getStat(coin);\n }", "public Coin()\n {\n toss();//call the toss method\n }", "private void Managment_Coins(CoinPattern cp){\n\t\t // coin managment: collection of coins and effects\n\t\n\t\t\n\t\t \tfor (CoinData coin : cp.getCoins()){\n\t \t \t\n\t \tboolean CoinCollision = CollisionDetection(playerUser.bounds,coin.location);\n\t \tif (CoinCollision) {\n\t \t\t// if player collected the coin\n\t \t\t// change the this coin image to collected\t \t\n\t \t\t\n\t \t\tif (PauseGame) \n\t\t\t\t\t continue;\n\t \t\t\n\t \t\tif (!coin.Collected){\n\t \t\t\tcoin.Collected=true;\n\t \t\t\tlevelbuilder.gamePoints = levelbuilder.gamePoints + coin.value;\n\t \t\t\tfntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t \t\t\tcoin.PlayCoinCollectedSound();\t\n\t \t\t\t\n\t \t\t\tVector2 peCoord = new Vector2().add(coin.location.x, \n\t \t\t\t\t\tcoin.location.y+ coin.coinTexture.Height/2);\n\t \t\t\t\t\t \t\t\t\t\n\t \t\t\tcoin.pe.setPosition(coin.location.x,coin.location.y + \n\t \t\t\t\t\tcoin.coinTexture.Height/2);\t\t \t\t\t\n\t \t\t\tcoin.pe.start();\t\t\t \t\t\t \t\t\t\n\t \t\t}\t\n\t \t\t\n\t \t\tcoin.pe.update(Gdx.graphics.getDeltaTime());\n\t \t\tcoin.pe.draw(batch,Gdx.graphics.getDeltaTime());\n\t\n\t \t}\n\t \telse if (coin.Collected==false){\n\t \t\t\t \t\t\n\t\t\t\tbatch.draw(coin.coinTexture.TextureCandy,\n\t\t\t\t\t\tcoin.location.x,coin.location.y,coin.location.width,\n\t\t\t\t\t\tcoin.location.height);\t \t\t \t\n\t\t\t\t \n\t \t}\t\t \t\t\n\t }\t\t \t\t\t\t\t\n\t}", "public void collectCoin(int x, int y) {\r\n\t\tlayout.get(x)[y] = new Air(x * Tile.WIDTH, y * Tile.HEIGHT);\r\n\t\tthis.coinCount--;\r\n\t}", "public void dealerOut() {\n\t\tview.writeLog(\"Dealer: \"+PointCounter.countPoint(dealer.clientCards)+\", DEALER OUT!\");\n\t\tint dealerLosingStack = 0;\n\t\tfor(ClientThread player:players) {\n\t\t\tif(player != dealer) {\n\t\t\t\tplayer.send(new Package(\"MESSAGE\",\"The dealer's points is over 21. You win a stack!\"));\n\t\t\t\tplayer.send(new Package(\"END\",1));\n\t\t\t\tdealerLosingStack++;\n\t\t\t}\n\t\t}\n\t\tint dealerStackChange = losers - dealerLosingStack;\n\t\tdealer.send(new Package(\"MESSAGE\",\"Over 21! You lose \"+dealerLosingStack+\" stacks. \"));\t\n\t\tdealer.send(new Package(\"END\",dealerStackChange+1));\t\n\t\tendGame();\n\t}", "public void checkOut() {\n\n }", "@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}", "@Override\n\tvoid money() {\n\t\t\n\t}", "private void getCoins() throws IOException{\r\n\t\tFile file = new File(\".coinSave\");\r\n\t\tif (! file.exists()) {\r\n\t\t\tfile.createNewFile();\r\n\t\t} else {\r\n\t\t\tFileReader fr = new FileReader(file);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\tString str;\r\n\t\t\tstr = br.readLine();\r\n\t\t\t_hiddenCoins = Integer.parseInt(str);\r\n\t\t}\r\n\t}", "private void processCoinContact(Fixture dudeFixture, Fixture coinFixture)\n {\n \t\tDude dude = (Dude) coinFixture.getBody().getUserData();\n \t\tCoins coins = (Coins) dudeFixture.getBody().getUserData();\n \t\t \t\t\n \t\tcoins.collected = true;\n \t\t\n \t\tif (coins.badBlock)\n \t\t{\n \t\t\tAudioManager.instance.play(Assets.instance.sounds.liveLost);\n \t\tGdx.app.log(\"CollisionHandler\", \"Bad block hit. Life lost\");\n \t\tworldController.lives--;\n \t\t\n \t\t/* ends game if player hits a bad block and has no lives left */\n \t\tif (worldController.lives == 0)\n \t\t\tworldController.badBlockHit = true;\n \t\t}\n \t\t\n \t\telse if (coins.goodBlock) {\n \t\t\tAudioManager.instance.play(Assets.instance.sounds.pickupCoin);\n \t\tGdx.app.log(\"CollisionHandler\", \"Bad block hit. Life lost\");\n \t\tworldController.score += coins.getScore();\n \t\t}\n }", "void win() {\n\t\t_money += _bet * 2;\n\t\t_wins++;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public int getCoinCount() {\n return coinCount;\n }", "@Override\n \tpublic void handleBettingMarketEndOFSet() {\n \n \t}", "public synchronized void closeAuction(){\n \tstatus = \"closed\";\n\n \ttry{\n \t\tif(last_bidder == null){\n \t\t\towner.getMessage(\"\\n Your Auction Item: \"+ ID +\", \"+ item_name +\" has closed with no bids \\n\");\n \t\t}\n \t\telse{\n \t\t\towner.getMessage(\"\\n Your Auction Item: \"+ ID +\", \"+ item_name +\" has a winner --> \"+ last_bidderName + \" Bid Price: \"+ start_price + \" Email: \"+ last_bidder.getEmail() +\"\\n\");\n \t\t\tfor(Entry<String, ClientInterface> entry : bids.entrySet()){\n \t\t\t\tClientInterface bidder = entry.getValue();\n \t\t\t\tif(bidder == last_bidder){\n \t\t\t\t\tlast_bidder.getMessage(\"\\n Congrats!!! You have won the bid for --> \"+ item_name+ \" at the price \" +start_price );\n \t\t\t\t}else{\n \t\t\t\t\tbidder.getMessage(\"\\n An Auction item --> \"+ item_name + \" you bid on was outbidded and won by\" + last_bidderName +\" for \"+ start_price +\"\\n\");\n \t\t\t\t}\n \t\t\t} \n \t\t}\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}\n }", "public void kickOut(){\n Iterator<Player> iter = players.iterator();\n while (iter.hasNext()){\n Player player = iter.next();\n if(player.isBankrupt(minBet)){\n iter.remove();\n System.out.println(player + \" runs out of cash!\");\n }\n }\n }", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "@Override\r\n\tpublic void uniqueOnStartInteraction() {\n\t\tif (Main.clientPlayer.getNumWood() < cost) {\r\n\t\t\tMain.clientPlayer.stopInteraction();\r\n\t\t}\r\n\r\n\t}", "private void communityChest(Player currentPlayer){\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n int nextPlayer;\n if(m_currentTurn >= m_numPlayers){\n nextPlayer = 0;\n } else {\n nextPlayer = m_currentTurn+1;\n }\n\n if(randomNum == 1){\n convertTextToSpeech(\"Your new business takes off, collect 200\");\n if(m_manageFunds) {\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(200);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Your friend hires your villa for a week, \" +\n \"collect 100 off the next player\");\n if(m_manageFunds) {\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n players.get(nextPlayer).subtractMoney(100);\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n }\n }\n if(randomNum == 3){\n convertTextToSpeech(\"You receive a tax rebate, collect 300\");\n if(m_manageFunds) {\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n }", "public abstract void win(int money);", "public int[] getCoin() {\r\n\t\treturn coin;\r\n\t}", "@Override\n public void exitLicense(final ProgramParser.LicenseContext ctx) {\n }", "@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }", "public void closeAccount() {}", "public void closeAccount() {}", "void close(Order order);", "public void update(){\r\n\t\t\r\n\t\tif (this.getWillPay() == true && this.currentTroll.getBridgeColor().compareTo(\"Black\") == 0 && this.getColor().compareTo(\"Black\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"White\") == 0 && this.getColor().compareTo(\"White\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif (this.getWillPay() == true && currentTroll.getBridgeColor().compareTo(\"Grey\") == 0 && this.getColor().compareTo(\"Grey\") != 0){\r\n\t\t\t\r\n\t\t\tthis.payToll(currentTroll);\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t\tif(this.getWillPay() == false){\r\n\t\t\t\r\n\t\t\twaitTime = waitTime - 1;\r\n\t\t\tthis.setBlackCoins(this.getBlackCoins() - 1);\r\n\t\t\tthis.setGreyCoins(this.getGreyCoins() - 1);\r\n\t\t\tthis.setWhiteCoins(this.getWhiteCoins() - 1);\r\n\t\t\t\r\n\t\t} //end if\r\n\t\t\r\n\t}", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "private void endGame(){\n synchronized (lock){\n out.println(\"\\r\\n###GAME OVER###\\r\\n\");\n out.println(\"The winner(s) are:\");\n updatePlayersWorth();\n Collections.sort(playerList);\n out.println(playerList.get(0).getName() + \": £\" + playerList.get(0).getPlayerWorth());\n for (int i = 1; i < playerList.size(); i++) {\n if(playerList.get(0).getPlayerWorth() == playerList.get(i).getPlayerWorth()){\n out.println(playerList.get(i).getName() + \": £\" + playerList.get(i).getPlayerWorth());\n }\n }\n }\n }", "public GoldCoin(){\n \tinit();\n }", "public int getNumberOfCoins() {\n return coins;\n }", "public void newFund(int year, int order, long yourCoins, long partnerCoins) {\n /* Do nothing */\n }", "public void endOfSimulation()\n\t{\n\t\trynekHistory.createFirstPriceVSFinalPriceReport();\n\t}", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "private void bid() {\n\t\t\t\n\t\t}", "private boolean updateCoin()\r\n {\r\n\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Updating coin\");\r\n coinUpdateStatus.setText(\"\");\r\n coinUpdateStatus.setVisible(false);\r\n boolean updateCoinSuccess = false;\r\n\r\n if (isCoinValid())\r\n {\r\n //TODO\r\n StringBuilder coinNote = new StringBuilder(coinNoteTxtField.getText());\r\n int coinYear = Integer.parseInt(coinMintYearTxtField.getText());\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"collectionComboBox.getValue(): {0}\", collectionComboBox.getValue());\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"collection uuid is: {0}\", collectionUUID);\r\n coinUUID = UUID.fromString(coinProperty.getCoinUUID());\r\n Coin newCoin = new Coin(userUUID, coinNameTxtField.getText(), coinGradeComboBox.getValue(), coinFaceValueTxtField.getText(), coinCurrencyComboBox.getValue(), coinNote, coinYear, coinMintMarkTxtField.getText(), coinBuyPriceTxtField.getText(), coinValueTxtField.getText(), coinBuyDatePicker.getValue(), collectionUUID, coinUUID);\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin object with updated info created, coin uuid is {0}\", newCoin.getItemUUID().toString());\r\n\r\n if (DBCoinConnect.updateCoin(newCoin))\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin updated in DB, user uuid is {0}\", userUUID.toString());\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin updated in DB, collection uuid is {0}\", collectionUUID.toString());\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin updated in DB, coin uuid is {0}\", newCoin.getItemUUID().toString());\r\n updateCoinSuccess = true;\r\n saveCoinImages();\r\n } else\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin NOT updated in DB, user uuid is {0}\", userUUID.toString());\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Coin NOT updated in DB, coin uuid is {0}\", newCoin.getItemUUID().toString());\r\n updateCoinSuccess = false;\r\n }\r\n }\r\n return updateCoinSuccess;\r\n }", "public void surrender() {\n playerCash += playerBet / 2;\n\n //Play dealer's turn\n dealerTurn();\n\n //End the game and change the views\n restartGame();\n }", "private void closeSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tSystem.out.println(\"CLOSED THE MARKET\");\r\n\t\tSystem.out.println(\" \");\r\n\t\tdataManager.reporter(\"---------------------------THE SUPER MARKET CLOSED---------------------------\");\r\n\t\tdataManager.printResults(this.queueManager.getLongestQueueSize(),this.queueManager.getLongestCustomer(),this.queueManager.getLongestQueueSizeTime());\r\n\t\tdataManager.printReport();\r\n\t\tqueueManager.dequeueEveryone();\r\n\t}", "protected void exit() {\n (new CSVFile(bankDB)).writeCSV();\n try{\n FileUtil.writeTransactions(bankDB.getTransactions());\n }catch(IOException e){\n AlertBox.display(ERROR, \"There was an error printing the transactions\");\n }\n System.exit(0);\n }", "public void flipCoin() {\n\t\tfaceUp = (int) (Math.random() * ((1 - 0 + 1) + 0));\n\n\t}", "@Override\r\n public void insertCoin(VendingMachine.Coin coin) {\r\n double amountAlreadyInserted = calculateMoneyInserted();\r\n if (amountAlreadyInserted + coin.amount() > 1){\r\n System.out.println(\"Exact change only.\");\r\n }\r\n else {\r\n coins.add(coin);\r\n if (calculateMoneyInserted() == 1){\r\n vend.setCurrState(\"Dispensable\");\r\n }\r\n }\r\n\r\n }", "public void verifyBusinessRules(Coin Coin) throws Exception {\n\t}", "public void tick(){\n oilLevel --;\n maintenance --;\n happiness --;\n health --;\n boredom ++;\n }", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "public void giveJackpot(Player p){\n p.addCash(amount);\n amount = 0;\n }", "public static void main(String[] args) {\n int coinNumber = 2;\n coinToss(coinNumber );\n countCount(coinNumber );\n caseSwitch(coinNumber );\n System.out.println(coinToss(coinNumber ));\n }", "public void cashOut(){\n Iterator<Player> iter = players.iterator();\n while (iter.hasNext()){\n Player player = iter.next();\n if(player.cashOut()){\n iter.remove();\n System.out.println(player + \" has cashed out!\");\n }\n }\n }", "public void checkOut(Customer customer) {\n\n customer.greetCustomer();\n System.out.println(\"--------------------------------------\");\n\n // Tussentotaalprijs berekenen en printen\n int firstTotalPrice = calculateTotalPrice(customer.basket);\n\n System.out.println(\"Het tussentotaal is: \" + firstTotalPrice + \" euro\");\n\n // Korting berekenen\n int discount = calculateDiscount(customer.basket);\n\n //int finalTotalPrice = calculateEndPrice(firstTotalPrice, discount);\n }", "public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "@Override\n public void endBlock() {\n }", "public void exit() {\n System.out.println(\"Thank you for playing Nim\");\n }", "public void endGame() {\n for (Player player : this.players.values()) {\n if (player.getBankroll() == this.playerAmount * DEFAULT_BANKROLL) {\n this.doPokerEnds = true;\n break;\n }\n }\n this.startingGamePlayer = ++this.startingGamePlayer % this.playerAmount;\n }" ]
[ "0.67333156", "0.6591987", "0.65243393", "0.6516269", "0.6417576", "0.63232785", "0.6314708", "0.627256", "0.61959237", "0.618266", "0.61788416", "0.6175714", "0.6142251", "0.6049835", "0.6035178", "0.6031857", "0.59572786", "0.59511787", "0.59130466", "0.5912107", "0.591192", "0.589168", "0.5880481", "0.587695", "0.58623374", "0.58512205", "0.58335024", "0.57971", "0.5780508", "0.5778754", "0.5776826", "0.57468975", "0.5745999", "0.5726611", "0.5726556", "0.5723186", "0.57146305", "0.571043", "0.570645", "0.5704522", "0.5704438", "0.5703659", "0.5694781", "0.56822884", "0.5672478", "0.56697565", "0.5656666", "0.5656153", "0.5655637", "0.5654476", "0.5630741", "0.56214184", "0.5616123", "0.56146705", "0.5609687", "0.5604917", "0.55721134", "0.5568141", "0.5563769", "0.5561538", "0.5553868", "0.55526465", "0.5540414", "0.55361795", "0.55172694", "0.5514456", "0.5503755", "0.5492297", "0.5490471", "0.54777133", "0.5474228", "0.5474228", "0.54662615", "0.5459793", "0.5456884", "0.54559684", "0.54406726", "0.5437975", "0.54363936", "0.5430864", "0.54293126", "0.54273105", "0.54239", "0.5422317", "0.5417811", "0.54164577", "0.5416017", "0.5411253", "0.54077524", "0.54071", "0.5405784", "0.5405784", "0.54022837", "0.53986424", "0.53985727", "0.53946304", "0.5394297", "0.53934604", "0.5390716", "0.53868467", "0.53788435" ]
0.0
-1
closing code for the toss method
public String getSide()//method to retrive the value of the SideUp String {//opening code for getSide method return sideUp;//getting the value for sideUp }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() throws ToyPadException;", "public void close() {\t\t\n\t}", "public void closed() \r\n\t{\r\n\t\t\r\n\t}", "public void close() {\n\t\t\r\n\t}", "private void exit() {\n dispose();\r\n }", "private void fileExit() {\n try {\n ConnectWindow.tidyClose();\n }\n catch (Exception e) {\n displayError(e,this);\n }\n }", "@Override\n public void closing() {\n }", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\r\n\t}", "public void close() {\n\t\t}", "public void close() {\n\t}", "public void close() {}", "@Override\n public void close() {\n \n }", "protected void end() {\n \t//claw.close();\n }", "@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}", "public void closed();", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "public void close()\n\t\t{\n\t\t}", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "@Override\r\n\tpublic void close() {\n\t\t\r\n\t}", "public void close(){\n \n }", "public void close()\n\t{\n\t\ttext = null;\n\t}", "public void close()\r\n {\r\n }", "@Override\r\n public void close ()\r\n {\r\n }", "public void toss() {\n\t\t\tif (pool != null) {\n\t\t\t\tpool.creator.destroy(content);\n\t\t\t}\n\t\t\t// Don't allow finalize to put it back in.\n\t\t\tpool = null;\n\t\t}", "@Override\n\t\t\t\tpublic void closing() {\n\t\t\t\t\tSystem.out.println(\"Topic Dashboard has been closed\");\n\t\t\t\t\ttradeDetail = null;\n\t\t\t\t\tcheckFrames();\n\t\t\t\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\r\n public void close() {\n \r\n }", "private void finish() {\n }", "protected void end() {\n\r\n\t}", "protected void end()\n\t{\n\t}", "protected void end() {\n \t\n \tlift.liftStop();\n }", "@Override\n public void close() {\n }", "protected void end() {\n \n \n }", "public void exit() {\r\n\t\tdispose();\r\n\t}", "private void exit() {\n if (otherCost != null) {\n otherCost = null;\n }\n this.dispose();\n }", "public void close()\n {\n }", "@Override\n\t\tpublic void close() {\n\t\t\t\n\t\t}", "public void closeDown() {\n\t\tdispose();\n\n\t}", "protected void end() {\n \tlift.stop();\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n public void close() {\n }", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "@Override\n\tpublic void close() {\n\t\t\n\t}", "public void close() {\n\n }", "@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}", "public void close() {\n trap.run();\n }", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\r\n\tpublic void close() {\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "@Override\n\tpublic void close() {\n\n\t}", "@Override\r\n\tpublic void close() {\n\t\tsuper.close();\r\n\t}", "public void closePost() {\n // TODO implement here\n }" ]
[ "0.68646127", "0.6758721", "0.6745568", "0.67291737", "0.67222595", "0.67061186", "0.6653205", "0.6592859", "0.65887505", "0.65887505", "0.6582548", "0.6582548", "0.6582548", "0.6573151", "0.6513736", "0.6507341", "0.65025693", "0.6488789", "0.648466", "0.6446145", "0.6438502", "0.6432234", "0.6432234", "0.64297044", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64280456", "0.64130473", "0.63994604", "0.6399335", "0.6395698", "0.6386714", "0.638213", "0.6382118", "0.6370266", "0.6370266", "0.6370266", "0.63700795", "0.63617396", "0.63557047", "0.6341476", "0.63402534", "0.63382375", "0.6331868", "0.6331466", "0.6326256", "0.63249797", "0.6323009", "0.63199043", "0.63180465", "0.63120204", "0.63120204", "0.63120204", "0.630716", "0.630716", "0.63055843", "0.63055843", "0.63055843", "0.63055843", "0.6280404", "0.62708133", "0.6265649", "0.626501", "0.626501", "0.626501", "0.6257922", "0.6257922", "0.625765", "0.625759" ]
0.0
-1
closing code for getSide method
public static void main(String[] args)//main method to actually use the previous methods {//opening main method code Coin coin = new Coin();//creating a new coin object of the Coin class System.out.println("The initial side of the coin is " + coin.getSide());//using the getSide method to tell user coins initial facing int heads = 0;//setting counter for how many times the coin flips heads int tails = 0;//setting counter for how many times the coin flips tails for(int i=1;i<21;i++)//creating a for loop to run 20 times, to simulate the coin flipping 20 times {//opening for loop code coin.toss();//using the toss method on our coin object if (coin.getSide()=="Heads")//if statemtn for if the coin toss brings up heads do the following {//opening code for if heads++;//adds 1 count to the heads int because it has come up heads System.out.println("Coin toss " + i + " came up as " + coin.getSide()); //tells user for this specific coin flip what the coin came up as }//closing code for if else//else statement if coin does not come up as heads {//opening code for else tails++;//adds 1 count to the tails int because it has come up tails System.out.println("Coin toss " + i + " came up as " + coin.getSide());//tells user for this specific coin flip what the coin came up as }//closing code for else }//closing for loop code System.out.println("The total amount of times the coin came up as heads was " + heads +//telling user how many total times each side came up " times.\nThe total amount of times the coin came up as tails was " + tails + " times.");//when the coin was flipped }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Side getSide();", "public double getSide()\n\t{\n\t\treturn this.side;\n\t}", "public String getSide() {\r\n return side;\r\n }", "com.cantor.drop.aggregator.model.CFTrade.Side getSide();", "public Side getSide() {\r\n\t\treturn side;\r\n\t}", "public String getSide() {\n\t\treturn side;\n\t}", "public int getSide() {\n\t\treturn getLength() ;\n\t}", "BookSide getSide();", "@Override\n public Side getSide() {\n return aircraftId.getSide();\n }", "public String getSide2() { return side2; }", "public String getSide()//method to retrive the value of the SideUp String\r\n {//opening code for getSide method\r\n return sideUp;//getting the value for sideUp\r\n }", "public int getSideId() {\r\n return sideId;\r\n }", "public Side longerSide() {\n throw new UnsupportedOperationException(\"Waiting to be implemented.\");\n }", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "public double getSide1() {return side1;}", "public com.cantor.drop.aggregator.model.CFTrade.Side getSide() {\n com.cantor.drop.aggregator.model.CFTrade.Side result = com.cantor.drop.aggregator.model.CFTrade.Side.valueOf(side_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.Side.BUY : result;\n }", "public void setSide(String side) {\n\t\tthis.side = side;\n\t}", "public String getSide1() { return side1; }", "int side() {\n return s;\n }", "double getside2(){\n\t\treturn side2;\n\t}", "@Override\n public String toString() {\n\t// TODO\n\treturn super.toString() + \" Sides: \" + this.getSide();\n }", "boolean hasSide();", "public int side() {\n //YOUR CODE HERE\n\t return teamSide;\n }", "public double getSide2() {\r\n\t\treturn side2;\r\n\t}", "public FluidCuboid getSideEdge() {\n\t\t\treturn this.fluids.get(ChannelModelPart.SIDE_EDGE);\n\t\t}", "double getside1(){\n\t\treturn side1;\n\t}", "public double getSideLength() {\n\t\treturn this.sideLength;\n\t}", "public CWE getSideOfBody() { \r\n\t\tCWE retVal = this.getTypedField(33, 0);\r\n\t\treturn retVal;\r\n }", "int getSides()\n\t\t{\n\t\t\treturn sides;\n\t\t}", "private ProductBookSide getSellSide() {\n\t\treturn sellSide;\n\t}", "public int[] getAccessibleSlotsFromSide(int side)\n {\n return side == 0 ? slotsBottom : slotsTopSides;\n }", "protected double getArea()\r\n {\r\n return ( side * side ) / 2;\r\n }", "FloppyDriveSide getCurrentTrackSide() {\n return currentTrackSide;\n }", "public FluidCuboid getSideStill() {\n\t\t\treturn this.fluids.get(ChannelModelPart.SIDE_STILL);\n\t\t}", "public QuoteSide getQuoteSide(BookSide sideIn) {\n\t\tQuoteSide quoteSideCopy = null;\n\t\tquoteSideCopy = (sideIn.equals(BookSide.BUY)) ? new QuoteSide(buy) : new QuoteSide(sell);\n\t\treturn quoteSideCopy;\n\t}", "public double getSide1() {\r\n\t\treturn side1;\r\n\t}", "DoorMat getHingeOnRightSide(boolean onRightSide) throws RuntimeException;", "@Override\r\n\tpublic int[] getSlotsForFace(Direction side) {\r\n\t\treturn SLOTS;\r\n\t}", "public double getSideA()\r\n\t{\r\n\t\treturn this.sideA;\r\n\t}", "protected void renderBaseSide(int x, int y, int z, int side, Icon icon) { }", "private ProductBookSide getBuySide() {\n\t\treturn buySide;\n\t}", "double getside3(){\n\t\treturn side3;\n\t}", "public void setSide2(String side2) {\n \tthis.side2 = side2;\n }", "public String getSides()\n\t{\n\t\treturn sides.getText();\n\t}", "public int getSide(Line2D.Float segment) {\n if (this == segment) {\n return COLLINEAR;\n }\n int p1Side = getSideThick(segment.x1, segment.y1);\n int p2Side = getSideThick(segment.x2, segment.y2);\n if (p1Side == p2Side) {\n return p1Side;\n }\n else if (p1Side == COLLINEAR) {\n return p2Side;\n }\n else if (p2Side == COLLINEAR) {\n return p1Side;\n }\n else {\n return SPANNING;\n }\n }", "public static short getAdversarySide(short side) {\r\n\treturn (short) Math.abs(side - 1);\r\n }", "public Integer getSides();", "public void setSideId(int value) {\r\n this.sideId = value;\r\n }", "Side turn() {\n return _turn;\n }", "private Side secondSide(final Cell cell, final Side prev) {\n switch (cell.getCellNdx()) {\n case 8:\n case 12:\n case 14:\n return LEFT;\n case 1:\n case 9:\n case 13:\n return BOTTOM;\n case 2:\n case 3:\n case 11:\n return RIGHT;\n case 4:\n case 6:\n case 7:\n return TOP;\n case 5:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case LEFT:\n return cell.isFlipped() ? BOTTOM : TOP;\n case RIGHT:\n return cell.isFlipped() ? TOP : BOTTOM;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n case 10:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case BOTTOM:\n return cell.isFlipped() ? RIGHT : LEFT;\n case TOP:\n return cell.isFlipped() ? LEFT : RIGHT;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n default:\n final String m = \"Attempt to use a trivial Cell as a node: \" + cell;\n throw new IllegalStateException(m);\n }\n }", "public void changeCurrentSide() {\r\n\tthis.currentSide = getAdversarySide(this.currentSide);\r\n\r\n\tfireChanged(CURRENT_SIDE, NO_SIDE, NO_POSITION);\r\n }", "@Override\n public String toString() {\n return getSide().toString() + \" \" + NAME;\n }", "public abstract boolean ComputeSide( Communicator comm);", "public String getSideUp()\n {\n return sideUp;\n }", "public boolean hasSide() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n\tprotected SideWiseType determineSideWiseType(final List<Double> sides) {\n\t\tSideWiseType shapeType = super.determineSideWiseType(sides);\t// first see what superclass found out\n\t\t\n\t\tif (SideWiseType.EQUILATERAL.equals(shapeType)) {\n\t\t\t// determined as equilateral by superclass: this is the most specific side-wise type for a triangle so use it\n\t\t\treturn shapeType;\n\t\t}\n\t\t\n\t\t// not equilateral, must be either isosceles or scalene\n\t\tSet<Double> sidesByLength = sides.stream().collect(Collectors.toSet());\n\t\tif (sidesByLength.size() == 2) {\n\t\t\t// two sides of the same length, one of another length -> isosceles\n\t\t\treturn SideWiseType.ISOSCELES;\n\t\t} \n\t\t\n\t\t// neither equilateral nor isosceles: it is scalene\n\t\treturn SideWiseType.SCALENE;\n\t}", "public Builder clearSide() {\n bitField0_ = (bitField0_ & ~0x00000004);\n side_ = 0;\n onChanged();\n return this;\n }", "@Override\n public boolean isGoodForSides()\n {\n return false;\n }", "public void setRightSide(boolean side) {\n this.rightSide = side;\n }", "public double getSideB()\r\n\t{\r\n\t\treturn this.sideB;\r\n\t}", "@Override\n\tpublic int getNumSides() {\n\t\treturn DEAFAULT_NUMSIDE;\n\t}", "public int getLength() {\n return this.sideLength;\n }", "@Override\n\tpublic double getArea() {\n\t\treturn (2 + 2 * (Math.sqrt(2))) * side * side; // JA\n\t}", "public SideBar getSideBar() {\n\t\treturn this;\n\t}", "public String getSouthSide() {\n return (String) getAttributeInternal(SOUTHSIDE);\n }", "public boolean hasSide() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Override\n\tpublic boolean shouldSideBeRendered(IBlockAccess world, int x, int y ,int z, int side)\n\t{\n\t\tint meta = world.getBlockMetadata(x+(side==4?1:side==5?-1:0),y+(side==0?1:side==1?-1:0),z+(side==2?1:side==3?-1:0));\n\t\tif((meta==META_scaffolding||meta==META_scaffolding2||meta==META_aluminiumScaffolding||meta==META_aluminiumScaffolding2)&&world.getBlock(x, y, z)==this)\n\t\t{\n\t\t\tint meta2 = world.getBlockMetadata(x,y,z);\n\t\t\treturn !(meta2==META_scaffolding||meta2==META_scaffolding2||meta2==META_aluminiumScaffolding||meta2==META_aluminiumScaffolding2);\n\t\t}\n\t\tif(meta==META_fence||meta==META_aluminiumFence)\n\t\t\treturn true;\n\t\treturn super.shouldSideBeRendered(world, x, y, z, side);\n\t}", "public SideEnumElements getSideEnumAccess() {\r\n\t\treturn eSideEnum;\r\n\t}", "private double calcSide(int x1,int y1, int x2, int y2){\n \n double distance1 = Math.sqrt(Math.pow(x2 - x1,2) + Math.pow(y2-y1,2));\n \n return distance1;\n \n \n \n }", "public CWE getPsl33_SideOfBody() { \r\n\t\tCWE retVal = this.getTypedField(33, 0);\r\n\t\treturn retVal;\r\n }", "@Override\n\tpublic boolean isAWin(int side) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSideSolid( IBlockAccess world, int x, int y, int z, ForgeDirection side )\n\t{\n\t\treturn true;\n\t}", "public int getNumOfSides(){return numOfSides;}", "@Override\n\tpublic void getShape() {\n\n\t}", "protected EvilFigure() {\r\n side = EVIL;\r\n }", "public void setSide2(double side2) {\r\n\t\tthis.side2 = side2;\r\n\t}", "private static Position getRightBottomNeighbor(Position curr, int side) {\n int newX = curr.getX() + getNumElement(0, side) + getNumSpacePerSide(0, side) + 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public double calculateArea(){\r\n\t\treturn this.getSide()*this.getSide();\r\n}", "public String getNorthSide() {\n return (String) getAttributeInternal(NORTHSIDE);\n }", "public boolean isRightSide() {\n return rightSide;\n }", "@Override\n\tpublic double getPerimeter() {\n\t\treturn 8 * side;\n\t}", "@Override\n @SideOnly(Side.CLIENT)\n public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {\n return false;\n }", "public int getMyNumSides(){\r\n return myNumSides;\r\n }", "void integrateBorderSegment(int side, TableFObj parent) {\n switch (side) {\n case CommonBorderPaddingBackground.BEFORE:\n case CommonBorderPaddingBackground.AFTER:\n integrateBorderSegment(side, parent, true, true, true);\n break;\n case CommonBorderPaddingBackground.START:\n borderStart = collapsingBorderModel.determineWinner(borderStart,\n parent.borderStart);\n break;\n case CommonBorderPaddingBackground.END:\n borderEnd = collapsingBorderModel.determineWinner(borderEnd,\n parent.borderEnd);\n break;\n default: assert false;\n }\n }", "public double calculateField(double aSide);", "@Override\n\tpublic boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face)\n\t{\n\t\tBlockPos offSetPos = pos.offset(face);\n\t\tIBlockState offSetState = world.getBlockState(offSetPos);\n\n\t\tMaterial offSetMaterial = offSetState.getMaterial();\n\n\t\tif (!offSetMaterial.isOpaque())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public void setSide(Enumerator newValue);", "@JSProperty(\"side\")\n @Nullable\n Chart3dFrameSideOptions getSide();", "public double sideArea()\r\n {\r\n double sideArea = slantHeight() * radius * Math.PI;\r\n return sideArea;\r\n }", "public void setSideLength(double sideLength) {\n\t\tthis.sideLength = sideLength;\n\t}", "@Override\n\tpublic String calculateRightTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "public void setSide1(String side1) {\n \tthis.side1 = side1;\n }", "public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side)\n\t{\n\t\treturn true;\n\t}", "public double[] getSides();", "protected abstract void showRightFace();", "public int getSide(BSPPolygon poly) {\n boolean onFront = false;\n boolean onBack = false;\n\n // check every point\n for (int i=0; i<poly.getNumVertices(); i++) {\n Vector3D v = poly.getVertex(i);\n int side = getSideThick(v.x, v.z);\n if (side == BSPLine.FRONT) {\n onFront = true;\n }\n else if (side == BSPLine.BACK) {\n onBack = true;\n }\n }\n\n // classify the polygon\n if (onFront && onBack) {\n return BSPLine.SPANNING;\n }\n else if (onFront) {\n return BSPLine.FRONT;\n }\n else if (onBack) {\n return BSPLine.BACK;\n }\n else {\n return BSPLine.COLLINEAR;\n }\n }", "public FluidCuboid getSideFlow(boolean out) {\n\t\t\treturn this.fluids.get(out ? ChannelModelPart.SIDE_OUT : ChannelModelPart.SIDE_IN);\n\t\t}", "protected Shape getShape()\n {\n return null;\n }", "String getRefPartnerSideA();", "ExternalInterface getPartnerSideA();", "protected RectF getRightHandleRect() {\n return mRightHandle;\n }" ]
[ "0.8039997", "0.7389987", "0.73558366", "0.73441595", "0.7337746", "0.71930546", "0.71501815", "0.708396", "0.70452946", "0.6955145", "0.6950965", "0.6917993", "0.67943347", "0.6694027", "0.6693043", "0.6688703", "0.6687474", "0.66532147", "0.66470253", "0.66437894", "0.6579531", "0.6510828", "0.6415461", "0.62810254", "0.6250298", "0.6239932", "0.6210423", "0.6202511", "0.6183184", "0.6138109", "0.61375844", "0.6104756", "0.60291123", "0.5987347", "0.5974005", "0.5942878", "0.59306663", "0.59045005", "0.58892816", "0.58494073", "0.5845677", "0.58428127", "0.5829318", "0.58273625", "0.58258945", "0.5821995", "0.5817812", "0.5806644", "0.57932794", "0.576435", "0.57430786", "0.57291275", "0.57283306", "0.5724911", "0.57146055", "0.5692535", "0.5658733", "0.56557244", "0.56468874", "0.5640521", "0.56311494", "0.56278545", "0.5625584", "0.56134635", "0.5600029", "0.5599357", "0.55981135", "0.5584902", "0.5581758", "0.5574881", "0.554517", "0.5539817", "0.55290234", "0.5513825", "0.55103177", "0.55082047", "0.5497141", "0.54784054", "0.54748845", "0.545312", "0.5452801", "0.5446906", "0.5433141", "0.5431094", "0.5426592", "0.5403534", "0.5399222", "0.53841984", "0.5377406", "0.53612053", "0.5355231", "0.5355224", "0.53349304", "0.5334107", "0.5330007", "0.53299403", "0.5329409", "0.5324557", "0.53166765", "0.5306728", "0.5296747" ]
0.0
-1
First decode with inJustDecodeBounds=true to check dimensions
public static Bitmap decodeSampledBitmap(String filePath, int reqWidth, int reqHeight) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(filePath, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; Bitmap scaled = BitmapFactory.decodeFile(filePath, options); return scaled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Nullable\n public static Pair<Integer, Integer> decodeDimensions(InputStream param0) {\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustDecodeBounds).isTrue();\n }", "@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public abstract Object decode(InputStream is) ;", "@Test public void createWithConfigAndNotInJustDecodeBounds() {\n final Request config = new Request.Builder(TestUtils.URI_1).config(RGB_565).build();\n final BitmapFactory.Options configOptions = createBitmapOptions(config);\n assertThat(configOptions).isNotNull();\n assertThat(configOptions.inJustDecodeBounds).isFalse();\n }", "@Override\n public boolean decode(InputStream stream) {\n mBitmap = BitmapFactory.decodeStream(stream);\n android.util.Log.e(\"Codec\", \"Decode bitmap = \" + mBitmap);\n return mBitmap != null;\n }", "public boolean isDecodable() {\n return buckets.size() >= k;\n }", "@Test\n public void checkCompactFormat()\n {\n int height = 10;\n int width = 5;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n SimpleMatrix Q = new SimpleMatrix(height,width, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n\n // see if Q has the expected properties\n assertTrue(MatrixFeatures_DDRM.isOrthogonal((DMatrixRMaj)Q.getMatrix(),UtilEjml.TEST_F64_SQ));\n\n // try to extract it with the wrong dimensions\n Q = new SimpleMatrix(height,height, DMatrixRMaj.class);\n alg.getQ((DMatrixRMaj)Q.getMatrix(), true);\n assertEquals(height,Q.numRows());\n assertEquals(width,Q.numCols());\n }", "private Bitmap decodeFile(File f){\n try {\n //decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n FileInputStream stream1=new FileInputStream(f);\n BitmapFactory.decodeStream(stream1,null,o);\n stream1.close();\n \n //Find the correct scale value. It should be the power of 2.\n final int REQUIRED_SIZE=70;\n int width_tmp=o.outWidth, height_tmp=o.outHeight;\n int scale=1;\n while(true){\n if(width_tmp/2<REQUIRED_SIZE || height_tmp/2<REQUIRED_SIZE)\n break;\n width_tmp/=2;\n height_tmp/=2;\n scale*=2;\n }\n \n //decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize=scale;\n FileInputStream stream2=new FileInputStream(f);\n Bitmap bitmap=BitmapFactory.decodeStream(stream2, null, o2);\n stream2.close();\n return bitmap;\n } catch (FileNotFoundException e) {\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private void checkFormat() {\n if (y.pixelStride != 1) {\n throw new IllegalArgumentException(String.format(\n \"Pixel stride for Y plane must be 1 but got %d instead\",\n y.pixelStride\n ));\n }\n if (u.pixelStride != v.pixelStride || u.rowStride != v.rowStride) {\n throw new IllegalArgumentException(String.format(\n \"U and V planes must have the same pixel and row strides \" +\n \"but got pixel=%d row=%d for U \" +\n \"and pixel=%d and row=%d for V\",\n u.pixelStride, u.rowStride,\n v.pixelStride, v.rowStride\n ));\n }\n if (u.pixelStride != 1 && u.pixelStride != 2) {\n throw new IllegalArgumentException(\n \"Supported pixel strides for U and V planes are 1 and 2\"\n );\n }\n }", "byte[] decodeBytes();", "int decode()\n throws IOException {\n final int start = _in.getBytesRead() - 4;\n \n _callback.objectStart();\n while ( decodeElement() );\n _callback.objectDone();\n \n final int read = _in.getBytesRead() - start;\n\n if ( read != _in._length ) {\n //throw new IllegalArgumentException( \"bad data. lengths don't match \" + read + \" != \" + len );\n }\n\n return _in._length;\n }", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "public boolean mo9444d() {\n if (!isLengthGreaterZero()) {\n return false;\n }\n byte[] bArr = this.byteArr;\n if (bArr.length >= 32) {\n return IsFullyValid(bArr, checkAndGetTypeLength());\n }\n return true;\n }", "@java.lang.Override\n public boolean hasRect() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "private void sizeLimitDecodeBinaryFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(203))\n .put((byte)0x80)\n .put((byte)-0x7f)\n .put((byte)0x48)\n .fill(200)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsBinaryMessage(allocator.wrap(allocator.allocate(200)).fill(200).flip()), out);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "protected Object decode(ChannelHandlerContext ctx, ByteBuf in)\r\n/* 30: */ throws Exception\r\n/* 31: */ {\r\n/* 32:74 */ if (in.readableBytes() < this.frameLength) {\r\n/* 33:75 */ return null;\r\n/* 34: */ }\r\n/* 35:77 */ return in.readRetainedSlice(this.frameLength);\r\n/* 36: */ }", "@Test(expected = IllegalArgumentException.class)\n public void test_checkInMemoryFormat_NATIVE() {\n checkInMemoryFormat(InMemoryFormat.NATIVE);\n }", "@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "T decode1(DataBuffer buffer);", "void verifyNumberOfDimensions(int ignoreMeNumDimensions) {\n // do nothing on purpose\n }", "public boolean isValidSize(ImagePlus img, byte[] data);", "private Bitmap decodeMapBitmap() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n options.inScaled = false;\n options.outWidth = 2048;\n options.outHeight = 2048;\n\n return BitmapFactory.decodeResource(getResources(), R.drawable.map, options);\n }", "protected abstract int decodeLength ();", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "void decodeObjectArray();", "public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public int checkAndGetTypeLength() {\n return checkAndGetTypeLength(this.byteArr);\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }", "@Override\n public long getExactSizeIfKnown() {\n return -1;\n }", "@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}", "public NonAnnotatedEncodeableEncoderDecoderSpecifiedUsingConfiguration() {}", "public void decode()\n {\n if (null == escherRecords || 0 == escherRecords.size()){\n byte[] rawData = getRawData();\n convertToEscherRecords(0, rawData.length, rawData );\n }\n }", "private static native boolean decodeMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj, List<String> decoded_info, long straight_code_mat_nativeObj);", "public boolean isCorrectSize(int height, int width);", "public void updateFromDeserialization() {\n\t\tif (inSerializedState) {\n\t\t\tframes = new KeyFrames();\n\t\t\tfor(Integer key : pixelsMap.keySet()) {\n\t\t\t\tint[][] pixels = pixelsMap.get(key);\n\t\t\t\tDrawFrame image = new DrawFrame(serializedWidth, serializedHeight);\n\t\t\t\tfor(int r = 0; r < serializedHeight; r++) {\n\t\t\t\t\tfor (int c = 0; c < serializedWidth; c++) {\n\t\t\t\t\t\timage.setRGB(c, r, pixels[r][c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t WritableRaster raster = (WritableRaster) image.getData();\n\t\t raster.setPixels(0,0, serializedWidth, serializedHeight, pixels);\n\t\t image.setData(raster);\n\t\t */\n\t\t\t\tframes.put(key, image);\n\t\t\t}\n\t\t\tinitializeTransientUIComponents();\n\t\t\tinSerializedState = false;\t\n\t\t}\n\t}", "private void sizeLimitDecodeDoubleTextFrame(int maxSize) throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, maxSize);\n\n IoBufferEx in = allocator.wrap(allocator.allocate(12+2+15+2))\n .put((byte)0x00)\n .putString(\"123456789012\", UTF_8.newEncoder())\n .put((byte)0xff)\n .put((byte)0x00)\n .putString(\"123456789012345\", UTF_8.newEncoder())\n .put((byte)0xff)\n .flip();\n\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n\n WsMessage out = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012\".getBytes(UTF_8)))), out);\n\n WsMessage out2 = (WsMessage)session.getDecoderOutputQueue().poll();\n assertEquals(new WsTextMessage(allocator.wrap(ByteBuffer.wrap(\"123456789012345\".getBytes(UTF_8)))), out2);\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n decoder.finishDecode(session, session.getDecoderOutput());\n\n assertTrue(session.getDecoderOutputQueue().isEmpty());\n assertFalse(in.hasRemaining());\n }", "protected Object decode(ChannelHandlerContext aCtx, Channel aChannel, ChannelBuffer aBuffer) throws Exception { Make sure if the length field was received.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < 4) {\n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Mark the current buffer position before reading the length field\n \t\t\t * because the whole frame might not be in the buffer yet. We will\n \t\t\t * reset the buffer position to the marked position if there's not\n \t\t\t * enough bytes in the buffer.\n \t\t\t */\n \t\t\taBuffer.markReaderIndex();\n \n \t\t\t// Read the length field.\n \t\t\t//\n \t\t\tint length = aBuffer.readInt();\n \n \t\t\t// Make sure if there's enough bytes in the buffer.\n \t\t\t//\n \t\t\tif (aBuffer.readableBytes() < length) {\n \t\t\t\t/*\n \t\t\t\t * The whole bytes were not received yet - return null. This\n \t\t\t\t * method will be invoked again when more packets are received\n \t\t\t\t * and appended to the buffer.\n \t\t\t\t * \n \t\t\t\t * Reset to the marked position to read the length field again\n \t\t\t\t * next time.\n \t\t\t\t */\n \t\t\t\taBuffer.resetReaderIndex();\n \n \t\t\t\treturn null;\n \t\t\t}\n \n \t\t\t// There's enough bytes in the buffer. Read it.\n \t\t\tChannelBuffer frame = aBuffer.readBytes(length);\n \n \t\t\treturn frame.toByteBuffer();\n \t\t}", "public int dimensions() {\n return this.data[0].length;\n }", "public static boolean isSigned_infos_size_data() {\n return false;\n }", "private boolean compareLumaPanes()\n {\n int d;\n int e;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n for (int i = 0; i < size; i += 10)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n e = (initialImage[i + 1] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n e = e < 0 ? -e : e;\n if (d > 50 && e > 50)\n {\n decodedVideo[j] = null;\n f++;\n break;\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }", "public void decode() throws Exception {\n decodeFat();\n decodeDat();\n }", "public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}", "@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}", "private CoderResult _malformed (final ByteBuffer in)\r\n {\r\n in.position (in.position () - 1);\r\n return CoderResult.malformedForLength (1);\r\n }", "void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ;\n }\n //System.out.println (m_size);\n if (m_size > 0) {\n m_node = new Node [m_size];\n for (int i = 0; i < m_size; i++) {\n m_node[i] = Node.decode (dis, table, decoder);\n }\n }\n //System.out.println (\"decoding MFNode done\");\n }", "public byte[] decode(byte[] data) throws DecodingException {\n\t\tif (data == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint length = data.length;\n\t\tif (length % 8 != 0) {\n\t\t\tthrow new DecodingException(\"Data must be divisible by 8.\");\n\t\t}\n\t\t\n\t\tint c, cursor = 0;\n\t\tint noPadding = 0;\n\t\twhile (data[length - noPadding - 1] == PADDING) {\n\t\t\tnoPadding++;\n\t\t}\n\t\t\n\t\tif (noPadding > 6) {\n\t\t\tthrow new DecodingException(\"Inconsistent padding found (padding length = \" + noPadding + \").\");\n\t\t}\n\t\t\n\t\tbyte[] result = new byte[(length - noPadding) * 5 / 8];\n\t\t\n\t\tint maxGrouping = (length - noPadding)/8;\n\t\tfor (c = 0; c < (maxGrouping * 8); c+= 8) {\n\t\t\twhile (BASE_32_DECODE_TABLE[data[c]] == -1) {\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 6]] << 5) | BASE_32_DECODE_TABLE[data[c + 7]]);\n\t\t}\n\t\t\n\t\tif (noPadding > 0) {\n\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c]] << 3) | (BASE_32_DECODE_TABLE[data[c + 1]] >> 2));\n\t\t\t\n\t\t\tif (noPadding == 4) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1));\n\t\t\t} else if (noPadding <= 3) {\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 1]] << 6) | (BASE_32_DECODE_TABLE[data[c + 2]] << 1) | (BASE_32_DECODE_TABLE[data[c + 3]] >> 4));\n\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 3]] << 4) | (BASE_32_DECODE_TABLE[data[c + 4]] >> 1));\n\t\t\t\t\n\t\t\t\tif (noPadding == 1) {\n\t\t\t\t\tresult[cursor++] = (byte) ((BASE_32_DECODE_TABLE[data[c + 4]] << 7) | (BASE_32_DECODE_TABLE[data[c + 5]] << 2) | (BASE_32_DECODE_TABLE[data[c + 6]] >> 3));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int getNoDimensions() {\n return noDimensions;\n }", "@Test(expectedExceptions = ProtocolException.class, enabled = true)\n public void deserializeTooLarge() throws Exception {\n\n byte[] serializedOver1MB = JarFileLoader.readBinaryFileFromJar(\"/wire/block_over_1MB.bin\");\n BitcoinInputStream in = bitcoinStream(serializedOver1MB);\n Block.deserialize(in);\n }", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "public static void testDecodePicture(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t wall.hidePicture(caterpillar);\n\t wall.explore();\n\t wall.decodePicture();\n\t wall.explore();\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();", "@Override\n \tpublic int getSize() {\n \t\treturn layers.size();\n \t}", "public FullPositionVector decodeValue(JsonCoder coder, JsonReader source)\n\t throws IOException, DecoderException\n {\n\tboolean[] present0 = new boolean[11];\n\n\tcoder.decodeObject(source);\n\tif (coder.hasMoreProperties(source, true))\n\t do {\n\t\tString tag0 = coder.nextProperty(source);\n\t\tFullPositionVector.__Tag t_tag0 = FullPositionVector.__Tag.getTagSub(tag0);\n\t\tif (t_tag0 == null) \n\t\t t_tag0 = FullPositionVector.__Tag._null_;\n\t\tswitch (t_tag0) {\n\t\t case __utcTime:\n\t\t // Decode field 'utcTime'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[0])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.utcTime == null)\n\t\t\t\tthis.utcTime = new DDateTime();\n\t\t\t this.utcTime.decodeValue(coder, source);\n\t\t\t present0[0] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case ___long:\n\t\t // Decode field 'long'\n\t\t try {\n\t\t\tif (present0[1])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this._long == null)\n\t\t\t this._long = new Longitude();\n\t\t\tthis._long.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[1] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"long\", \"Longitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __lat:\n\t\t // Decode field 'lat'\n\t\t try {\n\t\t\tif (present0[2])\n\t\t\t throw new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\tif (this.lat == null)\n\t\t\t this.lat = new Latitude();\n\t\t\tthis.lat.setValue(coder.decodeInteger(source));\n\t\t\tpresent0[2] = true;\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"lat\", \"Latitude\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __elevation:\n\t\t // Decode field 'elevation'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[3])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.elevation = new Elevation(coder.decodeOctetString(source));\n\t\t\t present0[3] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"elevation\", \"Elevation\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __heading:\n\t\t // Decode field 'heading'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[4])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t if (this.heading == null)\n\t\t\t\tthis.heading = new Heading();\n\t\t\t this.heading.setValue(coder.decodeInteger(source));\n\t\t\t present0[4] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"heading\", \"Heading\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speed:\n\t\t // Decode field 'speed'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[5])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speed = new TransmissionAndSpeed(coder.decodeOctetString(source));\n\t\t\t present0[5] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posAccuracy:\n\t\t // Decode field 'posAccuracy'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[6])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posAccuracy = new PositionalAccuracy(coder.decodeOctetString(source));\n\t\t\t present0[6] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __timeConfidence:\n\t\t // Decode field 'timeConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t String content1 = coder.decodeString(source);\n\t\t\t int idx1;\n\t\t\t TimeConfidence temp1;\n\n\t\t\t if (present0[7])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t idx1 = coder.resolveName(TimeConfidence.cConstantNameList, content1);\n\t\t\t if (idx1 < 0 )\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._not_enumerated, null, \"value = \" + content1);\n\t\t\t else\n\t\t\t\ttemp1 = TimeConfidence.cNamedNumbers[idx1];\n\t\t\t this.timeConfidence = temp1;\n\t\t\t present0[7] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __posConfidence:\n\t\t // Decode field 'posConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[8])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.posConfidence = new PositionConfidenceSet(coder.decodeOctetString(source));\n\t\t\t present0[8] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t case __speedConfidence:\n\t\t // Decode field 'speedConfidence'\n\t\t try {\n\t\t\tif (!coder.isNullValue(source)) {\n\t\t\t if (present0[9])\n\t\t\t\tthrow new DecoderException(ExceptionDescriptor._field_repeat, null);\n\t\t\t this.speedConfidence = new SpeedandHeadingandThrottleConfidence(coder.decodeOctetString(source));\n\t\t\t present0[9] = true;\n\t\t\t}\n\t\t } catch (Exception e) {\n\t\t\tDecoderException de = DecoderException.wrapException(e);\n\t\t\tde.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\t\tthrow de;\n\t\t }\n\t\t break;\n\t\t default:\n\t\t\tcoder.skipValue(source);\n\t\t\tbreak;\n\t\t}\n\t } while (coder.hasMoreProperties(source, false));\n\tif (!present0[0])\n\t this.utcTime = null;\n\tif (!present0[1])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'long'\");\n\tif (!present0[2])\n\t throw new DecoderException(ExceptionDescriptor._field_omit, \": 'lat'\");\n\tif (!present0[3])\n\t this.elevation = null;\n\tif (!present0[4])\n\t this.heading = null;\n\tif (!present0[5])\n\t this.speed = null;\n\tif (!present0[6])\n\t this.posAccuracy = null;\n\tif (!present0[7])\n\t this.timeConfidence = null;\n\tif (!present0[8])\n\t this.posConfidence = null;\n\tif (!present0[9])\n\t this.speedConfidence = null;\n\treturn this;\n }", "static Bitmap decodeSampledBitmapFromPath(String path, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public Bitmap decodeSimpleBitmapFromFileDescriptor(FileDescriptor fd, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFileDescriptor(fd, null, options);\n //Calculate inSampleSize /*采样率*/\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n //Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n return BitmapFactory.decodeFileDescriptor(fd, null, options);\n }", "@Override\n\tboolean computeDimensions() {\n\t\treturn true;\n\t}", "private void checkSizes() throws Exception{\n\t\tint width = images[0].getWidth();\n\t\tint height = images[0].getHeight();\n\t\t//i = 1 because first image is referenced.\n\t\tfor (int i = 1; i < images.length; i++){\n\t\t\tif ((images[i].getWidth() != width) || (images[i].getHeight() != height)){\n\t\t\t\tthrow new Exception(\"Textures sizes are imcompatible\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t}", "public static int numDimensions_infos_metadata() {\n return 1;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly1() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n // As soon as we sent part of a message that exceeds the limit it should throw the exception\n decoder.decode(session, (IoBuffer) in, session.getDecoderOutput());\n }", "private boolean tryByteArrayInputStream(){\n return true;\n }", "public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }", "@Test\n public void checkGetRInputSize()\n {\n int width = 5;\n int height = 10;\n\n QRDecomposition<DMatrixRMaj> alg = createQRDecomposition();\n\n SimpleMatrix A = new SimpleMatrix(height,width, DMatrixRMaj.class);\n RandomMatrices_DDRM.fillUniform((DMatrixRMaj)A.getMatrix(),rand);\n\n alg.decompose((DMatrixRMaj)A.getMatrix());\n\n // check the case where it creates the matrix first\n assertEquals(width, alg.getR(null, true).numRows);\n assertEquals(height, alg.getR(null, false).numRows);\n\n // check the case where a matrix is provided\n alg.getR(new DMatrixRMaj(width,width),true);\n alg.getR(new DMatrixRMaj(height,width),false);\n\n // check some negative cases\n {\n DMatrixRMaj R = new DMatrixRMaj(height,width);\n alg.getR(R,true);\n assertEquals(width,R.numCols);\n assertEquals(width,R.numRows);\n }\n\n {\n DMatrixRMaj R = new DMatrixRMaj(width-1,width);\n alg.getR(R,false);\n assertEquals(width,R.numCols);\n assertEquals(height,R.numRows);\n }\n }", "@Test(expected=ProtocolDecoderException.class)\n public void sizeLimitDecodeTextFrameFailEarly2() throws Exception {\n ProtocolCodecSessionEx session = new ProtocolCodecSessionEx();\n IoBufferAllocatorEx<?> allocator = session.getBufferAllocator();\n ProtocolDecoder decoder = new WsDraftHixieFrameDecoder(allocator, 20);\n \n int dataSize = 30;\n StringBuffer data = new StringBuffer(dataSize);\n for ( int i=0; i<(dataSize); i++ ) {\n data.append((i%10));\n }\n IoBufferEx in = allocator.wrap(allocator.allocate(dataSize+1))\n .put((byte)0x00)\n .putString(data.toString(), UTF_8.newEncoder())\n .flip();\n decoder.decode(session, (IoBuffer) in.getSlice(10), session.getDecoderOutput());\n // Now if we send the next 12 bytes that should exceed the limit (first byte is control byte, doesn't count)\n decoder.decode(session, (IoBuffer) in.getSlice(12), session.getDecoderOutput());\n }", "byte[] decodeConfigUrlSafe4(byte[] encoded, int size);", "boolean sameDimensions(List<Layer> layers);", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "static int readRectF(LittleEndianInputStream leis, Rectangle2D bounds) {\n final double x = leis.readFloat();\n final double y = leis.readFloat();\n final double width = leis.readFloat();\n final double height = leis.readFloat();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.INT_SIZE;\n }", "@Test\n public void testClientMessageDecodeWithEmptyBuffers() throws Exception {\n testNettyMessageClientDecoding(true, false, false);\n }", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }", "@Test\n public void decodeDouble()\n {\n final double[] array = new double[4];\n array[0] = 0;\n array[1] = 0;\n array[2] = 1;\n array[3] = 1;\n\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertEquals(3.0, encoder.decode(array), 0.0);\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public static Bitmap decodeFile(String path, int inSimpleSize) {\n Options options = new Options();\n options.inSampleSize = inSimpleSize;\n options.inJustDecodeBounds = false;\n // if (config != null)\n options.inPreferredConfig = Config.RGB_565;// Bitmap.Config.ARGB_4444;\n options.inPurgeable = true;\n options.inInputShareable = true;\n return BitmapFactory.decodeFile(path, options);\n }", "public abstract boolean canDecodeInput(Object source) throws IOException;", "void decodeObject();", "public static boolean isArray_infos_size_data() {\n return false;\n }", "private Bitmap decodeFileFromPath(String path) {\n Uri uri = getImageUri(path);\n InputStream in = null;\n try {\n in = getContentResolver().openInputStream(uri);\n\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(in, null, o);\n in.close();\n\n int scale = 1;\n int inSampleSize = 1024;\n if (o.outHeight > inSampleSize || o.outWidth > inSampleSize) {\n scale = (int) Math.pow(2, (int) Math.round(Math.log(inSampleSize / (double) Math.max(o.outHeight, o.outWidth)) / Math.log(0.5)));\n }\n\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n in = getContentResolver().openInputStream(uri);\n // Bitmap b = BitmapFactory.decodeStream(in, null, o2);\n int MAXCAP_SIZE = 512;\n Bitmap b = getResizedBitmap(BitmapFactory.decodeStream(in, null, o2), MAXCAP_SIZE);\n in.close();\n\n return b;\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic boolean onDeserialize(ByteBuffer buf) {\n\t\t\n\t\tframeNum = buf.getInt();\t// 4\n\t\tfX = buf.getShort();\t\t// 2\n\t\tfY = buf.getShort();\t\t// 2\n\t\tfZ = buf.getShort();\t\t// 2\n\t\tkeyPress = buf.get();\t\t// 1\n\t\t\n\t\treturn true;\n\t}", "@Test\n public void testmagicNumbersForBigDataset() {\n try (FileInputStream inImage = new FileInputStream(INPUT_IMAGE_PATH);\n FileInputStream inLabel = new FileInputStream(INPUT_LABEL_PATH)) {\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inImage.available());//47040016\n int magicNumberImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfImages = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfRows = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n int numberOfColumns = (inImage.read() << 24) | (inImage.read() << 16) | (inImage.read() << 8) | (inImage.read());\n\n assertTrue(magicNumberImages == 2051);\n assertTrue(numberOfImages == 60000);\n assertTrue(numberOfRows == 28);\n assertTrue(numberOfColumns == 28);\n\n //the same as inImage.skip(16);\n System.out.println(\"Available bytes after read: \" + inImage.available());//47040000\n\n //==========================================================================================================\n // it reads the next byte of data (8 bits) then put them to left side of an int\n // so the int is 32 bit is fully filled at the end of logic\n // and it moves the cursor to a position after first 32 bits (4 bytes)\n System.out.println(\"Available bytes before read: \" + inLabel.available()); //60008\n int magicNumberLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n int numberOfLabels = (inLabel.read() << 24) | (inLabel.read() << 16) | (inLabel.read() << 8) | (inLabel.read());\n assertTrue(magicNumberLabels == 2049);\n assertTrue(numberOfLabels == 60000);\n\n System.out.println(\"Available bytes after read: \" + inLabel.available()); //60000\n //the same as inLabel.skip(8);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void dataLoaded(Bitmap bitmap) {\n ivCrop.setImageToCrop(bitmap);\n Bitmap bm = null;\n if (ivCrop.canRightCrop()) bm = ivCrop.crop();\n if (bm != null) ivShow.setImageBitmap(bm);\n }", "static int readRectS(LittleEndianInputStream leis, Rectangle2D bounds) {\n final int x = leis.readShort();\n final int y = leis.readShort();\n final int width = leis.readShort();\n final int height = leis.readShort();\n bounds.setRect(x, y, width, height);\n\n return 4 * LittleEndianConsts.SHORT_SIZE;\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "private byte[] getCover() {\n\t\tbyte[] buffer = new byte[MAX_FB2_SIZE];\n\t\tbyte[] cover64;\n\t\tint amount = 0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile ((amount < MAX_FB2_SIZE) && (count != -1)) {\n\t\t\t\tcount = this.input.read(buffer, amount, MAX_FB2_SIZE - amount);\n\t\t\t\tif (count != -1)\n\t\t\t\t\tamount += count;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t}\n\t\tif (amount == MAX_FB2_SIZE) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tint stop = -1;\n\t\t\tint start = -1;\n\t\t\tint counter = amount - 1;\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == '/')\n\t\t\t\t\t\tif (buffer[counter + 2] == 'b')\n\t\t\t\t\t\t\tif (buffer[counter + 7] == 'y')\n\t\t\t\t\t\t\t\tif (buffer[counter + 8] == '>') {\n\t\t\t\t\t\t\t\t\tstop = counter - 1;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\twhile (counter >= 0) {\n\t\t\t\tif (buffer[counter] == '<')\n\t\t\t\t\tif (buffer[counter + 1] == 'b')\n\t\t\t\t\t\tif (buffer[counter + 3] == 'n')\n\t\t\t\t\t\t\tif (buffer[counter + 5] == 'r')\n\t\t\t\t\t\t\t\tif (buffer[counter + 6] == 'y') {\n\t\t\t\t\t\t\t\t\tstart = counter;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tif ((start == -1) || (stop == -1)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\twhile (counter < stop) {\n\t\t\t\tif (buffer[counter] == '>') {\n\t\t\t\t\tstart = counter + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tint newSize = stop - start + 1;\n\t\t\tcover64 = new byte[newSize];\n\t\t\tSystem.arraycopy(buffer, start, cover64, 0, newSize);\n\t\t}\n\t\treturn Base64Decoder.decode(cover64);\n\t}", "public static int numDimensions_data() {\n return 1;\n }", "private Bitmap decodeBitmapFromUri(Context context, Uri uri) { //, int viewWidth, int viewHeight\n try {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n Bitmap decodedBm = BitmapFactory.decodeStream(inputStream);\n Bitmap formatedBm = decodedBm.copy(Bitmap.Config.ARGB_8888, false);\n decodedBm.recycle();\n\n\n// ImageUtils imageUtils = new ImageUtils();\n\n// Bitmap orientedBitmap = setOrientation(uri, formatedBm);\n\n Log.i(\"aaa\", \"Uri: \" + uri + \" Bitmap: \" + formatedBm);\n\n// return orientedBitmap;//scaledBitmap(formatedBm, viewWidth, viewHight);\n return formatedBm;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);", "public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }", "@Override\n public long[] getLengths() throws ValueFormatException, RepositoryException {\n return null;\n }", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getDecodedStreamLength()\n {\n return this.stream.getInt(COSName.DL);\n }", "static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "short getFitHeight();" ]
[ "0.6432617", "0.6136245", "0.51416576", "0.5101267", "0.5095376", "0.50884664", "0.5048905", "0.50201756", "0.50172", "0.49557889", "0.49417356", "0.49368507", "0.48979875", "0.4897402", "0.48968345", "0.48940542", "0.48910102", "0.4864934", "0.48616505", "0.48501822", "0.48224035", "0.48109257", "0.48018575", "0.4792729", "0.47763515", "0.47692674", "0.47663075", "0.4763023", "0.47616893", "0.47400126", "0.47391647", "0.47326246", "0.47205356", "0.47127402", "0.47123078", "0.47120586", "0.4684356", "0.46805266", "0.4669386", "0.46685964", "0.4661575", "0.4658651", "0.4641025", "0.46192318", "0.46159196", "0.46153545", "0.461251", "0.460249", "0.45874932", "0.45869982", "0.45783982", "0.45696217", "0.45631438", "0.45597196", "0.4552488", "0.4552488", "0.4552488", "0.4552488", "0.4550049", "0.45492184", "0.45434484", "0.45433494", "0.45428324", "0.45412213", "0.45390427", "0.45377293", "0.45322317", "0.45207763", "0.45174435", "0.45161825", "0.45129615", "0.4505254", "0.45048177", "0.4502949", "0.44956514", "0.44869906", "0.44853687", "0.44827807", "0.44819364", "0.44781816", "0.44745266", "0.44719532", "0.44715887", "0.4470002", "0.44676507", "0.4467541", "0.44674996", "0.4465728", "0.44606662", "0.4459724", "0.4459384", "0.44555372", "0.4451023", "0.4449085", "0.4446734", "0.4446457", "0.44353905", "0.44336212", "0.44329083", "0.44324568", "0.44314903" ]
0.0
-1
Raw height and width of image
public static int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeight) { final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) { inSampleSize *= 2; } } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int height() {\n return picture.height();\n }", "public int height() \n {\n return this.picture.height();\n }", "public int getArea(){\n return imageArea;\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int height() {\n return picture().height();\n }", "public int getImage();", "public native int getWidth() throws MagickException;", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public int width() {\n return picture.width();\n }", "public static int[] getImageWidthHeight(ImageData[][] imageData){\n ImageData lastImage = imageData[imageData.length-1][imageData.length-1];\n int wid = lastImage.w +lastImage.wIndex;\n int hei = lastImage.h + lastImage.hIndex;\n //Print Details\n System.out.println(\"Last ImageWidthHeight=== Width=\"+wid+\" Height =\"+hei);\n return new int[] {wid,hei};\n }", "public native int getHeight() throws MagickException;", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public int width() \n {\n return this.picture.width();\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "int getImgDataCount();", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "public float getIMG(){\n return profile.getImg();\n }", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public int width() {\n return picture().width();\n }", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public abstract int getNormalizedHeight();", "int getMaxRawImages();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getImageBase()\n throws IOException, EndOfStreamException\n {\n if (imageState_ == ImageStateType.PE64)\n {\n return peFile_.readInt64(relpos(Offsets.IMAGE_BASE_64.position));\n }\n\n return peFile_.readInt32(relpos(Offsets.IMAGE_BASE_32.position));\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public native int sizeBlob() throws MagickException;", "public native int getImageType() throws MagickException;", "int getBitsPerPixel();", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "@Test\n public void testGetHeight() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getHeight());\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public ImageInfo getImage() {\n return image;\n }", "public int getH() { return height; }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "private static native void setImageHeight_0(long nativeObj, int val);", "public int getLargeur() {\n return getWidth();\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public PImage getImg() {\n \treturn img;\n }", "PImage getImage() {\n return _img;\n }", "int imageCount();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "java.lang.String getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public abstract BufferedImage getSnapshot();", "public String getImage() { return image; }", "public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}", "public Integer getWidth(){return this.width;}", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public int getHeight() { return height; }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "public String getSize(int width, int height) {\n try {\n String url;\n\n url = cloudinary.url().format(\"jpg\")\n .transformation(new Transformation().width(width).height(height)).generate(public_id);\n\n return url;\n }catch (NullPointerException e){\n Logger.debug(\"Failed to receive image url.\", e.getMessage());\n return \"null\";\n }\n }", "public int grHeight() { return height; }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public int getHeight() {return height;}", "Image createImage();", "String getImage();", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public BufferedImage getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "com.google.protobuf.ByteString\n getImageBytes();", "public double getIm() {\r\n return im;\r\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "double getArea() {\n return width * height;\n }", "int getHeight() {return height;}", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }", "public int Height(){\r\n return height;\r\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}" ]
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946", "0.62341326", "0.618197", "0.6158717", "0.615819", "0.615819", "0.615819", "0.6144378", "0.61443424", "0.61401063", "0.6103231", "0.6099903", "0.60651374", "0.60592395", "0.6017553", "0.6014474", "0.5984361", "0.5984188", "0.59672165", "0.59642625", "0.5959984", "0.5959759", "0.59582573", "0.5954042", "0.59415966", "0.5931953", "0.59172827", "0.59166247", "0.5890154", "0.5876868", "0.58619386", "0.5858101", "0.5857994", "0.58552325", "0.5850757", "0.5845183", "0.5841783", "0.582109", "0.58189946", "0.5817898", "0.5814005", "0.5794509", "0.57887757", "0.5787256", "0.5754822", "0.575088", "0.57494265", "0.57246256", "0.5720308", "0.5718694", "0.5708866", "0.57061535", "0.5704408", "0.57041174", "0.56999844", "0.5693438", "0.5690735", "0.5688313", "0.5687101", "0.56773496", "0.5668776", "0.56606424", "0.5660228", "0.56601244", "0.5653856", "0.565332", "0.56526333", "0.5651148", "0.5651148", "0.5651148", "0.5641639", "0.5638461", "0.56312215", "0.56304806", "0.56294745", "0.5629049", "0.5615024", "0.5613165", "0.5608674", "0.5605906", "0.5604374" ]
0.0
-1
endregion region > shutdown
@Programmatic public void shutdown() { LOG.info("shutting down {}", this); cache.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown()\n {\n // todo\n }", "public void shutdown() {\n\t\t\n\t}", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "public void shutdown() {\n }", "public static void shutdown() {\n\t}", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "protected abstract void shutdown();", "public void shutdown()\n {\n // nothing to do here\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "void shutdown() throws Exception;", "protected void shutdown() {\n\r\n }", "@Override\n public void shutdown() {\n }", "@Override\n public void shutdown() {\n }", "@Override\n public void shutdown() {\n }", "@Override\n\tpublic void shutdown()\n\t{\n\t}", "@Override\n\tpublic void shutdown() {\n\t\t\n\t}", "public void shutdown() {\n // no-op\n }", "@Override\n\tpublic void shutdown() {\n\t}", "@Override\n\tpublic void shutdown() {\n\t}", "@Override\n\t\tprotected void shutdown() {\n\n\t\t}", "@Override\n\tpublic void shutdown() {\n\n\t}", "@Override\n public void shutdown()\n {\n // nothing to do\n }", "@Override\n public void shutdown() {\n }", "public static void shutdown() {\n\t\t// Ignore\n\t}", "public void shutdown() {\n // For now, do nothing\n }", "public void abnormalShutDown() {\n\t}", "public void shutdown() {\n shutdown(false);\n }", "@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }", "public void shutdown()\n\t{\n\t\t; // do nothing\n\t}", "public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }", "public void shutdownNow() {\n }", "public void shutdown() {\r\n System.exit(0);\r\n }", "@Override\n public void shutdownNow() {\n }", "@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}", "public void shutdown() {\n this.isShutdown = true;\n }", "@Override\n public String shutdown() {\n instance.shutdown();\n return \"ok\";\n }", "public void shutDown();", "@Override\n public void shutDown() {\n }", "public void cleanShutDown () {\n shutdown = true;\n }", "void shutDown();", "@Override\n protected void shutDown() {\n }", "@Override\n\tprotected void shutdown() throws Throwable {\n\t\t\n\t}", "@Override\n public void shutdown() {\n // Do nothing.\n }", "void shutdown() throws IOException;", "void shutdown() throws IOException;", "void prepareForShutdown();", "public void shutdown()\n {\n shutdown = true;\n cil.shutdown();\n }", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "public static void bgfx_shutdown() {\n long __functionAddress = Functions.shutdown;\n invokeV(__functionAddress);\n }", "public void shutdown() {\n this.dontStop = false;\n }", "void shutdown() throws IOException, SoapException;", "@Override\n\tpublic void shutdown() throws IOException\n\t{\n\t\t\n\t}", "public synchronized void shutdown() {\n final String actionDescription = \"shutdown\";\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_TERMINATING.getMessageDefinition());\n\n if (instance != null) {\n this.instance.shutdown();\n }\n\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_SHUTDOWN.getMessageDefinition());\n }", "protected void shutdown()\n throws SwiftletException {\n if (config == null)\n return;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown ...\");\n rlgroups.clear();\n groups.clear();\n users.clear();\n publicRLGroup = null;\n publicGroup = null;\n authenticationOff = true;\n config = null;\n if (traceSpace.enabled) traceSpace.trace(getName(), \"shutdown: done.\");\n }", "public synchronized void shutDown() {\n\t state.shutDown();\n\t}", "@Override\n protected void shutdownService() {\n }", "public synchronized void terminate () {\n shutdown = true;\n }", "public void shutdown() {\r\n //shut down MbModule\r\n super.shutdown();\r\n }", "@Override\n\tpublic void shutdown() throws IOException {\n\n\t}", "public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }", "public void shutdown()\n {\n this.running = false;\n }", "@Override\n public void shutdown() {\n debugLogger.finest(\"enter\");\n userLogger.info(\"Initiating shutdown\");\n\n if (state == SMState.RUNNING) {\n debugLogger.info(\"state == RUNNING\");\n state = SMState.STARTED;\n interruptThread(runThread);\n }\n\n if (state == SMState.STARTED) {\n debugLogger.info(\"state == STARTED\");\n sessionPool.empty();\n\n state = SMState.STOPPED;\n }\n\n debugLogger.info(\"state == STOPPED\");\n\n userLogger.info(\"Shutdown complete\");\n debugLogger.finest(\"exit\");\n }", "@Override\r\n protected void shutdownInternal() {\r\n service.stop();\r\n }", "public static void systemShutdown() throws IOException {\n\t\t/*Runtime runtime = Runtime.getRuntime();\n\t\tProcess proc = runtime.exec(\"shutdown -l -t 30\");//.exec(\"shutdown -l\");//.exec(\"shutdown -l -t 0\").exec(\"shutdown -r\");\t\t\n\t\tSystem.out.println(\"\"+proc);\n\t\tSystem.exit(0);*/\n\t}", "private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}", "public void do_shutdown() throws RemoteException {\r\n\t\ttry{\r\n\t\t\t\r\n \r\n\t System.out.println(\"File Server shutdown requested.\");\r\n\t //Removes the binding for the specified name in this registry. \r\n\t registry.unbind(\"remoteObj\");\r\n\t // Removes the remote object from the RMI runtime\r\n if (UnicastRemoteObject.unexportObject(registry, false)) System.out.println(\"Server has been terminated successfully\");\r\n\t\t\tSystem.exit(1);\r\n\r\n\t }\r\n\t catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\r\n\t }\r\n\r\n\t}", "@Override\n public void run() {\n shutdown();\n }", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}", "public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }", "public void shutdownForUpdate();", "@AfterClass\n public static void shutdown()\n {\n }", "void shutdown() {\n\t\t\tshutdown = true;\n\t\t\tsel.wakeup();\n\t\t}", "public void shutdown() {\n\t\tserver.stop(0);\n\t}", "public static void shutdown() {\n\t\tSystem.err.println(\"shutdown initiated!\");\n\t\tBaseFuture bf0 = master.shutdown();\n\t\tbf0.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown master done!\");\n\t\t\n\t\tBaseFuture bf1 = unreachable1.shutdown();\n\t\tbf1.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable1 done!\");\n\n\t\tBaseFuture bf2 = unreachable2.shutdown();\n\t\tbf2.awaitUninterruptibly();\n\t\tSystem.err.println(\"shutdown unreachable 2 done!\");\n\t}", "public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }", "@Override\n public void shutdown() throws PluginException {\n\n }" ]
[ "0.8781375", "0.8763621", "0.8749657", "0.87369096", "0.8728068", "0.86652046", "0.86652046", "0.86652046", "0.86652046", "0.8609913", "0.85722196", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.8559495", "0.85397357", "0.85397357", "0.85397357", "0.85397357", "0.849724", "0.84547687", "0.84541047", "0.84541047", "0.84541047", "0.8453583", "0.84534293", "0.84142214", "0.83874667", "0.83874667", "0.83742726", "0.8342133", "0.8329452", "0.8309922", "0.8269876", "0.82265997", "0.8176715", "0.8164493", "0.8162679", "0.8144818", "0.8113157", "0.8056912", "0.8037415", "0.80335176", "0.7981193", "0.796614", "0.79464036", "0.7893473", "0.783472", "0.78304434", "0.7805729", "0.7805463", "0.779993", "0.77742296", "0.7714862", "0.7714862", "0.76164025", "0.75910574", "0.7538388", "0.7508916", "0.7476224", "0.74588996", "0.7452986", "0.745052", "0.7441898", "0.7436197", "0.74215233", "0.7402542", "0.73713917", "0.73653626", "0.73651767", "0.7333356", "0.73181444", "0.73102", "0.72978985", "0.7269044", "0.72667634", "0.72636884", "0.7251313", "0.7218852", "0.7211956", "0.718656", "0.71848613", "0.71807283", "0.7171387", "0.7163007", "0.71415824", "0.7129235" ]
0.7298926
86
endregion region > invalidateCache
@Programmatic public void invalidateCache(final Class<?> cls) { if(!cache.isInitialized()) { // could be called by JRebel plugin, before we are up-and-running // just ignore. return; } final Class<?> substitutedType = classSubstitutor.getClass(cls); if(substitutedType.isAnonymousClass()) { // JRebel plugin might call us... just ignore 'em. return; } ObjectSpecification spec = loadSpecification(substitutedType, IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED); while(spec != null) { final Class<?> type = spec.getCorrespondingClass(); cache.remove(type.getName()); if(spec.containsDoOpFacet(ObjectSpecIdFacet.class)) { // umm. Some specs do not have an ObjectSpecIdFacet... recache(spec); } spec = spec.superclass(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invalidateCache() {\n\t}", "void invalidateCache();", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "protected void invalidateCache() {\r\n\tcurrentFilesFresh = false;\r\n }", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}", "void clearCache();", "void clearCache();", "public abstract void clearCache();", "@Override\n public void clearCache() {\n }", "public void clearCache();", "public native void invalidateCache() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.invalidateCache();\r\n }-*/;", "void resetCache();", "void invalidateCache( Path project );", "public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}", "public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }", "@Override\n\tpublic V invalidateEntry(K key) {\n\t\tcheckNullKey(key);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.remove(key);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }", "public void refreshObjectCache();", "public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}", "void resetCacheCounters();", "public void invalidateCache(String serviceName) {\n\t\tif (instance.cacheManager != null) {\n\t\t\tlogger.info(\"Invalidating cache for the service \" + serviceName);\n\t\t\tinstance.cacheManager.invalidate(serviceName);\n\t\t}\n\t}", "void evictFromCache( Long id );", "@Scheduled(fixedRate = 30 * 60 * 1000)\n public void clearStaleCache(){\n\n }", "public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}", "@ServiceMethod(returns = ReturnType.SINGLE)\n void invalidate(String resourceGroupName, String cacheName, String storageTargetName);", "public void invalidate() {\n boolean hasLock = false;\n while (!hasLock) {\n synchronized (this) {\n if (!lock) {\n lock = true;\n hasLock = true;\n }\n }\n if (!hasLock) try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n try {\n if (cacheFile.exists()) cacheFile.delete();\n } finally {\n lock = false;\n }\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n void invalidate(String resourceGroupName, String cacheName, String storageTargetName, Context context);", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "public void dereferenceCache() {\n this.cache = null;\n }", "@Test\n public void testCoh3710()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run() { getNamedCache(getCacheName0()).clear(); }\n });\n }", "public void dispose() {\n/* 105 */ this.cache.clear();\n/* */ }", "public void setCached() {\n }", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "void destroy() {\n destroyCache();\n }", "public static void clearCache(){\n cache.clear();\n cache2.clear();\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "@SuppressWarnings(\"unused\")\n void expire();", "public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}", "public void clear() {\n cache.clear();\n }", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "public void clearCache() {\n mCache.clear();\n }", "private void resetCache () {\n synchronized (this) {\n resourcesCache = null;\n }\n support.firePropertyChange(PROP_RESOURCES, null, null);\n }", "private void clearCache(T Cache) {\r\n\t\t\r\n\t\tcache.clear();\r\n\t\t\r\n\t}", "private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }", "@Override\n\tpublic void clear() {\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\tcache.clear();\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public void clear() {\n this.cache.clear();\n }", "public void cacheResult(DataEntry dataEntry);", "@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }", "private void invalidateCache(final EntityResultQueryModel<UserSession> q) {\n stream(from(q).with(fetchAll(UserSession.class)).model())\n .forEach(session -> cache.invalidate(findAuthenticator(session)));\n }", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public void invalidate() {}", "@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }", "public void clearCache() {\n reflectorCache.clear();\n }", "@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}", "private void evictCache(ExtUser entity) {\n\t}", "void cronClearPermissionsCache();", "void clearDocCache(){\n docMainCache.invalidateAll();\n docOptionalCache.invalidateAll();\n docListCache.invalidateAll();\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "public void clearCache() {\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\t}", "private void pageCacheChanged() {\n // Ok to have a race here, see the field javadoc.\n if (!pageCacheChanged)\n pageCacheChanged = true;\n }", "public abstract void expire();", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n CACHE.remove();\n }", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }", "public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}", "@Override\n\tpublic void invalidate() {\n\n\t}", "public synchronized static void invalidate(String url){\n\t\tLog.i(\"FILEBANK\", \"Invalidating \"+hashURL(url));\n\t\tnew File(context.getCacheDir(), hashURL(url)).delete();\n\t}", "public void clear() {\n\t\tthis.cache.clear();\n\t}", "@Override\n @CacheEvict(value=AccountingPeriod.CACHE_NAME,allEntries=true)\n public void clearCache() {\n }", "public void clearCache() {\n try {\n GenericResponse genericResponse = apiInvoker.clearCache();\n System.out.println(\"Clear Cache Result: \" + genericResponse.getResult());\n\n } catch (ApplicationException ae) {\n logger.error(ae.getName(), ae);\n System.out.println(ae.toString());\n if (ae.getCause() != null) {\n System.out.println(ae.getCause().toString());\n }\n\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n System.out.println(\"An error occurred clearing the CabTrip server's cache.\");\n System.out.println(e.toString());\n System.exit(1);\n }\n }", "@Util\n public static void removeInProgressInterviewFromCache(){\n \t\n\t\t\ttry {\n\t\t\t\tEntityCache.deletePrivate(Interview.class);\n\t\t\t} catch (CacheMiss e) {\n\t\t\t\t//don't care\n\t\t\t}\t\t\t\n }", "public void invalidate() {\n\t\t\n\t}", "@Override\n\tpublic void invalidate(S key) {\n\t\t\n\t}", "@Override\n\tpublic int removeAllCacheData()\n\t{\n\t\treturn 0;\n\t}", "public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }", "@Override\r\n public void invalidate() {\r\n }", "public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }", "@Override\n\t protected void onDestroy() {\n\t super.onDestroy();\n\t try {\n\t trimCache(this);\n\t } catch (Exception e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t }", "@Override\n\tpublic void invalidate() {\n\t\t\n\t}" ]
[ "0.92025435", "0.8923454", "0.88937396", "0.80932355", "0.8062896", "0.7856773", "0.7856773", "0.78377944", "0.7832633", "0.778699", "0.7650707", "0.755137", "0.7518259", "0.7386018", "0.7320634", "0.7058884", "0.70465064", "0.7036931", "0.7014439", "0.6971084", "0.67722017", "0.6755662", "0.6738137", "0.66978616", "0.66948044", "0.6681085", "0.66763544", "0.6654974", "0.6653564", "0.6646855", "0.65950483", "0.6557217", "0.6530862", "0.64967674", "0.64898497", "0.64821774", "0.64819217", "0.6463715", "0.64306146", "0.6416883", "0.64004654", "0.6394865", "0.6394843", "0.63847774", "0.63800335", "0.63723963", "0.6370992", "0.63549834", "0.6342412", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6324613", "0.6321588", "0.63209003", "0.6317487", "0.63128984", "0.63119555", "0.6306517", "0.6295666", "0.62935543", "0.62908375", "0.6280688", "0.62741464", "0.6269469", "0.6269469", "0.6269469", "0.62689316", "0.6261487", "0.6255864", "0.62526613", "0.62523717", "0.6246232", "0.62372017", "0.6235586", "0.6231743", "0.62216455", "0.619409", "0.61926854", "0.6192394", "0.61900157", "0.6186178", "0.6180402", "0.61786246", "0.6170092" ]
0.0
-1
Loads the specifications of the specified types except the one specified (to prevent an infinite loop).
@Programmatic public boolean loadSpecifications( final List<Class<?>> typesToLoad, final Class<?> typeToIgnore, final IntrospectionState upTo) { boolean anyLoadedAsNull = false; for (final Class<?> typeToLoad : typesToLoad) { if (typeToLoad != typeToIgnore) { final ObjectSpecification objectSpecification = internalLoadSpecification(typeToLoad, null, upTo); final boolean loadedAsNull = (objectSpecification == null); anyLoadedAsNull = loadedAsNull || anyLoadedAsNull; } } return anyLoadedAsNull; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;", "protected void setSpecializations(Set<AlfClass> specializations) \r\n\t{\tthis.specializations = specializations;\t}", "@Override\n\t\tprotected void loadSpecification(SpecificationContext context) {\n\t\t}", "public void setTypes(ArrayList<String> types){\n this.types = types;\n }", "private List<DataTypeHandler<K1>> loadDataType(String typeStr, Context context) {\n // Do not load the type twice\n if (!typeMap.containsKey(typeStr)) {\n\n typeMap.put(typeStr, new ArrayList<>());\n\n long myInterval = context.getConfiguration().getLong(typeStr + \".\" + DISCARD_INTERVAL, interval);\n\n dataTypeDiscardIntervalCache.put(typeStr, myInterval);\n\n log.info(\"Setting up type: \" + typeStr + \" with interval \" + myInterval);\n\n if (!TypeRegistry.getTypeNames().contains(typeStr)) {\n log.warn(\"Attempted to load configuration for a type that does not exist in the registry: \" + typeStr);\n } else {\n Type t = TypeRegistry.getType(typeStr);\n String fieldValidators = context.getConfiguration().get(typeStr + FieldValidator.FIELD_VALIDATOR_NAMES);\n\n if (fieldValidators != null) {\n String[] validatorClasses = StringUtils.split(fieldValidators, \",\");\n for (String validatorClass : validatorClasses) {\n try {\n Class<? extends FieldValidator> clazz = Class.forName(validatorClass).asSubclass(FieldValidator.class);\n FieldValidator validator = clazz.newInstance();\n validator.init(t, context.getConfiguration());\n validators.put(typeStr, validator);\n } catch (ClassNotFoundException e) {\n log.error(\"Error finding validator \" + validatorClass, e);\n } catch (InstantiationException | IllegalAccessException e) {\n log.error(\"Error creating validator \" + validatorClass, e);\n }\n }\n }\n\n String[] handlerClassNames = t.getDefaultDataTypeHandlers();\n\n if (handlerClassNames != null) {\n for (String handlerClassName : handlerClassNames) {\n log.info(\"Configuring handler: \" + handlerClassName);\n try {\n @SuppressWarnings(\"unchecked\")\n Class<? extends DataTypeHandler<K1>> clazz = (Class<? extends DataTypeHandler<K1>>) Class.forName(handlerClassName);\n DataTypeHandler<K1> h = clazz.getDeclaredConstructor().newInstance();\n // Create a counter initialized to zero for all handler types.\n getCounter(context, IngestOutput.ROWS_CREATED.name(), h.getClass().getSimpleName()).increment(0);\n // Trick here. Set the data.name parameter to type T, then call setup on the DataTypeHandler\n Configuration clone = new Configuration(context.getConfiguration());\n clone.set(DataTypeHelper.Properties.DATA_NAME, t.typeName());\n // Use the StandaloneReporter and StandaloneTaskAttemptContext for the Handlers. Because the StandaloneTaskAttemptContext\n // is a subclass of TaskInputOutputContext and TaskAttemptContext is not. We are using this to record the counters during\n // processing. We will need to add the counters in the StandaloneReporter to the Map.Context in the close call.\n // TaskAttemptContext newContext = new TaskAttemptContext(clone, context.getTaskAttemptID());\n StandaloneTaskAttemptContext<K1,V1,K2,V2> newContext = new StandaloneTaskAttemptContext<>(clone, context.getTaskAttemptID(),\n reporter);\n h.setup(newContext);\n typeMap.get(typeStr).add(h);\n } catch (ClassNotFoundException e) {\n log.error(\"Error finding DataTypeHandler \" + handlerClassName, e);\n } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n log.error(\"Error creating DataTypeHandler \" + handlerClassName, e);\n }\n }\n }\n }\n log.info(\"EventMapper configured with the following handlers for \" + typeStr + \": \" + typeMap.get(typeStr));\n }\n\n return typeMap.get(typeStr);\n }", "private void initialize()\r\n\t{\r\n\t\tif (!isFilterOn())\r\n\t\t\treturn;\r\n\t\tselectTools = selectApi = selectExtra = selectGeneric = false;\r\n\t\tselectTools = \r\n\t\t\t\tpackageTypeSet.contains(PackageType.build_tools) ||\r\n\t\t\t\tpackageTypeSet.contains(PackageType.platform_tools) ||\r\n\t\t\t\tpackageTypeSet.contains(PackageType.tools);\r\n\t\tselectApi =\r\n\t\t\t\tpackageTypeSet.contains(PackageType.platforms) ||\r\n\t\t\t\tpackageTypeSet.contains(PackageType.add_ons) ||\r\n\t\t\t\tpackageTypeSet.contains(PackageType.system_images) ||\r\n\t\t packageTypeSet.contains(PackageType.sources);\r\n\t\tselectExtra = packageTypeSet.contains(PackageType.extras);\r\n\t\t\r\n\t\tfor (int i = 0; i < GENERIC_PACKAGE_TYPES.length; ++i)\r\n\t\t\tif (packageTypeSet.contains(GENERIC_PACKAGE_TYPES[i])) {\r\n\t\t\t\tselectGeneric = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t}", "@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }", "private static void populateArtworkTypes() {\r\n if (artworkTypes.isEmpty()) {\r\n artworkTypes.add(TYPE_CLEARART);\r\n artworkTypes.add(TYPE_CLEARLOGO);\r\n artworkTypes.add(TYPE_SEASONTHUMB);\r\n artworkTypes.add(TYPE_TVTHUMB);\r\n artworkTypes.add(TYPE_CHARACTERART);\r\n artworkTypes.add(TYPE_CDART);\r\n }\r\n }", "@Ignore\n @Test\n public void discoverSeveralTypes() throws Exception {\n }", "public HashMap<String,HashSet<String>> loadTypes(String commonTypeInstanceFile) throws Exception;", "@Ignore\n @Test\n public void discoverOneTypes() throws Exception {\n }", "private void validateTypes() {\r\n\t\tfor (int i = 0; i < types.length; i++) {\r\n\t\t\tString type = types[i];\r\n\t\t\tif (!TypedItem.isValidType(type))\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"The monster type %s is invalid\", type));\r\n\t\t\tfor (int j = i + 1; j < types.length; j++) {\r\n\t\t\t\tif (type.equals(types[j])) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"The monster cant have two similar types..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Ignore\n @Test\n public void discoverNoTypes() throws Exception {\n }", "UsedTypes getTypes();", "public void setTypes(List<CWLType> types) {\n this.types = types;\n }", "protected void deduceAndSetTypeOfFile(TypedFile f) {\r\n\t// Look, a file typing loop. I am in hell.\r\n\t// We'd much rather, of course, have access to the\r\n\t// native system's file typing scheme. But we don't. Maybe\r\n\t// someday.\r\n\r\n\tboolean foundOne = false;\r\n\r\n\t// These types take precedence over everything else, for files\r\n\t// that must not be typed as anything else. They are\r\n\t// always shown. So far only faked windows drive entries\r\n\t// match this description\r\n\t//\r\n\tif (overrideTypes != null) {\r\n\t int overrideCount = overrideTypes.length;\r\n\t for (int j = 0; j < overrideCount && !foundOne; j++) {\r\n\t\tif (applyTypeToFile(overrideTypes[j], f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Apply general types\r\n\t// \r\n\tif (!foundOne) {\r\n\t Enumeration e = knownTypes.elements();\r\n\t while (e.hasMoreElements() && !foundOne) {\r\n\t\tFileType t = (FileType)e.nextElement();\r\n\t\tif (applyTypeToFile(t, f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Cleanup. Everybody must get typed!\r\n\t// \r\n\tif (!foundOne && cleanupTypes != null) {\r\n\t int cleanupCount = cleanupTypes.length;\r\n\t for (int j = 0; j < cleanupCount && !foundOne; j++) {\r\n\t\tif (applyTypeToFile(cleanupTypes[j], f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Throws a run time error if no type was set\r\n\tf.getType();\r\n }", "private void defaultDsDbmsTypesShouldNotBeFound(String filter) throws Exception {\n restDsDbmsTypesMockMvc.perform(get(\"/api/ds-dbms-types?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restDsDbmsTypesMockMvc.perform(get(\"/api/ds-dbms-types/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "@Test\n public void require_that_types_are_not_checked() throws IOException {\n Slime slime = new Slime();\n Cursor root = slime.setObject();\n root.setString(\"enumval\", \"null\");\n root.setString(\"intval\", \"null\");\n root.setString(\"longval\", \"null\");\n root.setString(\"boolval\", \"null\");\n root.setString(\"doubleval\", \"null\");\n InnerCNode def = new DefParser(\"simpletypes\", new StringReader(StringUtilities.implode(SimpletypesConfig.CONFIG_DEF_SCHEMA, \"\\n\"))).getTree();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n new ConfigFileFormat(def).encode(baos, slime);\n assertThat(baos.toString(StandardCharsets.UTF_8), is(\"enumval null\\nintval null\\nlongval null\\nboolval false\\ndoubleval null\\n\"));\n }", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "void loadByCondition(String condition, Type type, LoadView mLoadView);", "public void setSpecification(String specs) {\n specification = specs;\n }", "@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }", "public PlateSpecifications loadSpecs(String nickname);", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static List<InteractionFragment> filterSpecifications(Lifeline lifeline, Class type) {\r\n\t\treturn filter(is(type), lifeline.getCoveredBys());\r\n\t}", "public void setErrorsToIgnore(final Collection<Type> types) {\n if (!types.isEmpty()) {\n this.errorsToIgnore = EnumSet.copyOf(types);\n }\n }", "@Override\r\n\t\tprotected boolean skipInitialType() {\r\n\t\t\treturn false;\r\n\t\t}", "@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }", "@Override\n\t\tpublic <T extends IBaseResource> T load(Class<T> theType, IIdType theId) throws ResourceNotFoundException {\n\t\t\tif (\"ValueSet\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<ValueSet> dao = getDao(ValueSet.class);\n\t\t\t\tValueSet in = dao.read(theId, null);\n\t\t\t\tString encoded = getContext().newJsonParser().encodeResourceToString(in);\n\n\t\t\t\t// TODO: this is temporary until structures-dstu2 catches up to structures-hl7org.dstu2\n\t\t\t\tencoded = encoded.replace(\"\\\"define\\\"\", \"\\\"codeSystem\\\"\");\n\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, encoded);\n\t\t\t} else if (\"Questionnaire\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<Questionnaire> dao = getDao(Questionnaire.class);\n\t\t\t\tQuestionnaire vs = dao.read(theId, null);\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, getContext().newJsonParser().encodeResourceToString(vs));\n\t\t\t} else {\n\t\t\t\t// Should not happen, validator will only ask for these two\n\t\t\t\tthrow new IllegalStateException(\"Unexpected request to load resource of type \" + theType);\n\t\t\t}\n\n\t\t}", "public static void initIncludeExcludeType() {\r\n \r\n final boolean useGrouperIncludeExclude = GrouperConfig.retrieveConfig().propertyValueBoolean(\"grouperIncludeExclude.use\", false);\r\n final boolean useGrouperRequireGroups = GrouperConfig.retrieveConfig().propertyValueBoolean(\"grouperIncludeExclude.requireGroups.use\", false);\r\n \r\n final String includeExcludeGroupTypeName = GrouperConfig.retrieveConfig().propertyValueString(\"grouperIncludeExclude.type.name\");\r\n final String requireGroupsTypeName = GrouperConfig.retrieveConfig().propertyValueString(\"grouperIncludeExclude.requireGroups.type.name\");\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n @SuppressWarnings(\"unused\")\r\n GroupType includeExcludeGroupType = useGrouperIncludeExclude ? \r\n GroupType.createType(grouperSession, includeExcludeGroupTypeName, false) : null;\r\n\r\n GroupType requireGroupsType = useGrouperRequireGroups ? \r\n GroupType.createType(grouperSession, requireGroupsTypeName, false) : null;\r\n\r\n //first the requireGroups\r\n String attributeName = GrouperConfig.retrieveConfig().propertyValueString(\"grouperIncludeExclude.requireGroups.attributeName\");\r\n\r\n if (useGrouperRequireGroups && !StringUtils.isBlank(attributeName)) {\r\n requireGroupsType.addAttribute(grouperSession,attributeName, false);\r\n }\r\n\r\n if (useGrouperRequireGroups) {\r\n //add types/attributes from grouper.properties\r\n int i=0;\r\n while (true) {\r\n String propertyName = \"grouperIncludeExclude.requireGroup.name.\" + i;\r\n String attributeOrTypePropertyName = \"grouperIncludeExclude.requireGroup.attributeOrType.\" + i;\r\n\r\n String propertyValue = GrouperConfig.retrieveConfig().propertyValueString(propertyName);\r\n if (StringUtils.isBlank(propertyValue)) {\r\n break;\r\n }\r\n String attributeOrTypeValue = GrouperConfig.retrieveConfig().propertyValueString(attributeOrTypePropertyName);\r\n boolean attributeOrType = StringUtils.equals(\"attribute\", attributeOrTypeValue);\r\n if (attributeOrType) {\r\n requireGroupsType.addAttribute(grouperSession, propertyValue, false);\r\n } else {\r\n GroupType.createType(grouperSession, propertyValue, false);\r\n }\r\n i++;\r\n }\r\n }\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n \r\n });\r\n \r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding include/exclude type: \" + includeExcludeGroupTypeName, e);\r\n }\r\n\r\n }", "List<Type> getTypeList(String type);", "Set<?> instantiation(Set<String> classNames, Class<?> tClass) throws IOException;", "protected void initSpecSpecificConditions() {\r\n // THESE ARE ALL FOR MAF SPEC 1.0 ONLY\r\n\r\n //If variant_Type is \"ins\" Reference_Allele should always be \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"[^\\\\-]\"), \"contain anything but '-' characters\", true));\r\n // and either of Tumor_Seq_Allele1 and Tumor_Seq_Allele2 should have \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n //If variant_Type is \"del\", then Reference_Allele can't contain \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"-\"), \"contain any '-' characters\", true));\r\n // and either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should contain \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n\r\n //If validation_status is \"wildtype\", then Tumor_Seq_Allele1=Tumor_Seq_Allele2\r\n //and Tumor_Seq_Allele1=Reference_Allele)\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, false));\r\n\r\n // if mutation_status is germline, tumor_seql_allele1 must be equal to match_norm_seq_allele1\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE1,\r\n FIELD_MATCH_NORM_SEQ_ALLELE1, false));\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE2,\r\n FIELD_MATCH_NORM_SEQ_ALLELE2, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele1 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele2 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE2,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should NOT match Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true), // not\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true))); // not\r\n\r\n //If Mutation_Status == LOH AND Validation_Status==Unknown, then\r\n //Tumor_Seq_Allele1 == Tumor_Seq_Allele2 and\r\n //Match_Norm_Seq_Allele1 != Match_Norm_Seq_Allele2 and\r\n //Tumor_Seq_Allele1 = (Match_Norm_Seq_Allele1 or Match_Norm_Seq_Allele2)\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_MATCH_NORM_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, false)));\r\n //If Mutation_Status == LOH AND Validation_Status==Valid, then\r\n //Tumor_Validation_Allele1 == Tumor_Validation_Allele2 and\r\n //Match_Norm_Validation_Allele1 != Match_Norm_Validation_Allele2 and\r\n //Tumor_Validation_Allele1 == (Match_Norm_Validation_Allele1 or Match_Norm_Validation_Allele2).\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_TUMOR_VALIDATION_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, false)));\r\n // Tumor_Seq_Allele1 != Reference_Allele OR Tumor_Seq_Allele2 != Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true),\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true)));\r\n\r\n }", "public void setTypes(ResultFormat[] types) {\n\n this.types = types != null ? types.clone() : null;;\n }", "public void setTypeList(String type, boolean checkOrNo) {\n if(checkOrNo){\n typesCheckList.add(type);\n if(VV)System.out.println(\"adding\");\n } else{\n typesCheckList.remove(type);\n if(VV)System.out.println(\"deleting\");\n }\n }", "boolean isSupportedType(String type) {\n // No bigBed support yet (but it's coming).\n if (type.startsWith(\"bigBed\")) {\n return false;\n }\n \n // No bigWig support yet (but it's coming).\n if (type.startsWith(\"bigWig\")) {\n return false;\n }\n \n // Actual data is contained in an external file, but the file is identified by a number, not a path.\n if (type.startsWith(\"wigMaf\")) {\n return false;\n }\n \n // We can probably the support BAM, but not implemented yet.\n if (type.equals(\"bam\")) {\n return false;\n }\n \n // Not one of our rejected types.\n return true;\n }", "protected abstract Type loadDefaultElement();", "public void loadDefinition(BackendRdfSource source, String type)\n throws RdfUtilsException {\n // TODO Do not search for all graphs, ie. use definition from\n // given component.\n loadControlledProperties(source, type);\n loadComplexProperties(source, type);\n }", "public void getTypes(HttpServletResponse resp, List<MobilityType> types) {\n try {\n if (types == null) {\n types = new ArrayList<>();\n types.addAll(Arrays.asList(MobilityType.values()));\n }\n String json = new Genson().serialize(types);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n }\n }", "public void setParams(Class[] types) {\n if (types == null)\n setParams((String[]) null);\n else {\n String[] names = new String[types.length];\n for (int i = 0; i < types.length; i++)\n names[i] = types[i].getName();\n setParams(names);\n }\n }", "<T> Set<T> lookupAll(Class<T> type);", "ExcludeType createExcludeType();", "public void decideTaskType(File myFile) throws FileNotFoundException {\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()) {\n String type = myReader.nextLine();\n if (type.contains(\"[T]\")) {\n loadTodo(type);\n } else if (type.contains(\"[D]\")) {\n loadDeadline(type);\n } else if (type.contains(\"[E]\")) {\n loadEvent(type);\n }\n }\n myReader.close();\n }", "private Map<String, String> loadEntityTypes(String btc_data, Map<String, String> entities) throws IOException {\n //extract the entity types for the different queries.\n Set<String> btc_files = new HashSet<>();\n FileUtils.getFilesList(btc_data, btc_files);\n int entities_found = 0;\n for (String btc_file : btc_files) {\n try {\n System.out.printf(\"Processing file: %s.\\n\", btc_file);\n\n BufferedReader reader = FileUtils.getCompressedFileReader(btc_file);\n while (reader.ready()) {\n if (entities_found >= entities.size()) {\n break;\n }\n\n Node[] triple = NxParser.parseNodes(reader.readLine());\n String entity = triple[0].toString().trim();\n String predicate = triple[1].toString().trim();\n String type = triple[2].toString().trim();\n if (!entities.containsKey(entity) || !predicate.equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\")) {\n continue;\n }\n\n entities.put(entity, type);\n entities_found++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return entities;\n }", "private final void runType() throws IOException {\n\t\tfloat[][] tc = null;\r\n\t\tfinal BufferedReader in = open(\"type\");\r\n\t\tString line;\r\n\t\tint i = 0;\r\n\t\tfinal List<Type> types = new ArrayList<Type>();\r\n\t\t//for (int i = 0; i < typesSize; i++)\r\n\t\twhile ((line = in.readLine()) != null) {\r\n\t\t\tfinal List<String> tokens = getTokens(line, \"TYP\");\r\n\t\t\tif (tokens == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tfinal String code = getString(tokens, 1);\r\n\t\t\tfinal String name = getString(tokens, 3);\r\n\t\t\tfinal Type type = new Type(code, name);\r\n\t\t\ttypes.add(type);\r\n\t\t\tfinal List<String> multipliers = split(getString(tokens, 2), '~');\r\n\t\t\tfinal int typesSize = multipliers.size();\r\n\t\t\tif (tc == null) {\r\n\t\t\t\ttc = new float[typesSize][];\r\n\t\t\t}\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(multipliers.get(j));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t\t/*new float[typesSize][];\r\n\t\t\tfinal float[] typeRow = new float[typesSize];\r\n\t\t\ti++;\r\n\t\t\ttc[i] = typeRow;\r\n\t\t\t//final String line = in.readLine();\r\n\t\t\tfinal String cells = line.substring(8, line.lastIndexOf('|'));\r\n\t\t\tfinal StringTokenizer tokenizer = new StringTokenizer(cells, \"~\");\r\n\t\t\tfor (int j = 0; j < typesSize; j++) {\r\n\t\t\t\ttypeRow[j] = Float.parseFloat(tokenizer.nextToken());\r\n\t\t\t}*/\r\n\t\t}\r\n\t\tin.close();\r\n\t\tType.setTypes(types);\r\n\t\tSpecies.setTypeChart(tc);\r\n\t}", "List<ReportType> findTypes();", "@Test\r\n public void testImportStringPriorities() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser0 = TypeParsers.create();\r\n typeParser0.addImport(\"java.awt.List\");\r\n typeParser0.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser0.parse(\"List\");\r\n assertEquals(t0, java.awt.List.class);\r\n \r\n TypeParser typeParser1 = TypeParsers.create();\r\n typeParser1.addImport(\"java.awt.*\");\r\n typeParser1.addImport(\"java.util.List\");\r\n\r\n Type t1 = typeParser1.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n \r\n }", "void setNotVeryEffectiveFrom(List<Type> notVeryEffectiveFrom) {\n this.notVeryEffectiveFrom = notVeryEffectiveFrom;\n }", "List<ITypeDescriptor> getSubTypes(String type) throws StoreException;", "protected void processTypes()\n {\n wsdl.setWsdlTypes(new XSModelTypes());\n }", "public Set<AlfClass> getSpecializations()\r\n\t{\treturn Collections.unmodifiableSet(this.specializations);\t}", "public boolean isNotOneOf( Set<Type> types ) {\n return !types.contains(type);\n }", "public void loadDataType() throws IOException, NumberFormatException {\r\n InputStream flux;\r\n flux = new FileInputStream(\"././ressources/datatype.txt\");\r\n BufferedReader buff;\r\n InputStreamReader inputStreamReader = new InputStreamReader(flux);\r\n buff = new BufferedReader(inputStreamReader);\r\n String line;\r\n line = buff.readLine();\r\n int type = Integer.parseInt(line);\r\n leftShoe.getSerialReader().setDataType(type);\r\n rightShoe.getSerialReader().setDataType(type);\r\n buff.close();\r\n inputStreamReader.close();\r\n flux.close();\r\n }", "private List<BeaconConcept> filterSemanticGroup(List<BeaconConcept> concepts, List<String> types) {\n\t\t\n\t\tif (types.isEmpty()) return concepts;\n\t\t\n\t\tPredicate<BeaconConcept> hasType = n -> !Collections.disjoint(types, n.getCategories());\n\t\tconcepts = Util.filter(hasType, concepts);\n\t\t\n\t\treturn concepts;\n\t}", "@Test\n public void shouldNotParseXXXXXXTYPE() {\n printTest(\"shouldNotParseXXXXXXTYPE()\");\n String typeString = \"XXXXXXTYPE\";\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + typeString, dType);\n }", "private void retrieveAll(Definition def)\r\n\t{\n\t\t\r\n\t\t\r\n\t\tjavax.wsdl.Types types=def.getTypes();\r\n\t\tif(types==null) return;\r\n\t\t\r\n\t\tSchema sch=(Schema) def.getTypes().getExtensibilityElements().get(0);\r\n\t\tElement elm=sch.getElement();\r\n\t\tString tns=sch.getElement().getAttribute(\"targetNamespace\");\r\n\t\t\r\n\t\tNodeList nl=elm.getChildNodes();\t\t\r\n\t\tElement elmnt;\r\n\t\tnsInc++;\r\n\t\tfor(int i=0;i<nl.getLength();i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif (checkElementName(nl.item(i), \"element\" ))\r\n\t\t\t{\r\n\t\t\t\telmnt=(Element)(nl.item(i));\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tOMElement omm=\tcreateOMFromSchema((Element)nl.item(i),tns);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tQName qname=new QName(tns,elmnt.getAttribute(\"name\"));//omm.getNamespace().getPrefix());\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttmpNameAndType.put(qname, omm);\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}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public void setFileTypes(String[] fileTypes);", "private static void types() {\n\t\ttry {\n\t\t\tScanner handicaps = new Scanner(new FileInputStream(\"handicaps.txt\"));\n\t\t\tSystem.out.println(\"\\nAvailable Boat Types\");\n\t\t\tSystem.out.println(\"--------------------\");\n\t\t\twhile(handicaps.hasNextLine()) {\n\t\t\t\tSystem.out.println(handicaps.nextLine().split(\":\")[0]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\thandicaps.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"\\n\\nSEVERE ERROR: CRUCIAL FILE HANDICAPS.TXT NOT FOUND\\n\\n\");\n\t\t\tSystem.err.println(\"Attempting to re-create file....\");\n\t\t\tgenerateHandicaps();\n\t\t\tSystem.err.println(\"Success!\\nTry command again.\\n\");\n\t\t}\n\n\t}", "private void defaultDsDbmsTypesShouldBeFound(String filter) throws Exception {\n restDsDbmsTypesMockMvc.perform(get(\"/api/ds-dbms-types?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(dsDbmsTypes.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].dbmsTypeName\").value(hasItem(DEFAULT_DBMS_TYPE_NAME)))\n .andExpect(jsonPath(\"$.[*].dbsmTypeDescription\").value(hasItem(DEFAULT_DBSM_TYPE_DESCRIPTION)));\n\n // Check, that the count call also returns 1\n restDsDbmsTypesMockMvc.perform(get(\"/api/ds-dbms-types/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }", "public static Collection<String> createNecessaryImportsForTypeInClass(final String type) {\n\n\t\tfinal Set<String> imports = new HashSet<String>();\n\t\tif (TypeUtils.isListOrSet(type)) {\n\t\t\taddCollectionImports(type, imports);\n\t\t}\n\t\telse {\n\t\t\tif (!TypeUtils.isPrimitiveType(type)) {\n\t\t\t\timports.add(type);\n\t\t\t}\n\t\t}\n\n\t\treturn imports;\n\t}", "private void initialize() {\n this.docTypeList = new ArrayList<>();\n this.problemTypeList = new ArrayList<>();\n\n // The add() function should be called in the order specified since together\n // they form a mapping mechanism,\n // for example 'ENCAPSULATED' before 'POSTSCRIPT' and 'RICH' before 'TEXT'.\n\n this.docTypeList.add(\"ENCAPSULATED\");\n this.problemTypeList.add(ProblemType.NON_ENCAPSULATED_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"EXCEL\");\n this.problemTypeList.add(ProblemType.NON_MSEXCEL_FILE);\n\n this.docTypeList.add(\"GIF\");\n this.problemTypeList.add(ProblemType.NON_GIF_FILE);\n\n this.docTypeList.add(\"HTML\");\n this.problemTypeList.add(ProblemType.NON_HTML_FILE);\n\n this.docTypeList.add(\"LATEX\");\n this.problemTypeList.add(ProblemType.NON_LATEX_FILE);\n\n this.docTypeList.add(\"MPEG\");\n this.problemTypeList.add(ProblemType.NON_MP4_FILE);\n\n this.docTypeList.add(\"POSTSCRIPT\");\n this.problemTypeList.add(ProblemType.NON_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"TIFF\");\n this.problemTypeList.add(ProblemType.NON_TIFF_FILE);\n\n this.docTypeList.add(\"WORD\");\n this.problemTypeList.add(ProblemType.NON_MSWORD_FILE);\n\n this.classInitialized = true;\n\n LOG.debug(\"initialize:this.docTypeList.size {}\", this.docTypeList.size());\n LOG.debug(\"initialize:this.problemTypeList.size {}\", this.problemTypeList.size());\n }", "void setType(java.lang.String type);", "public void settype(String cat) { this.type = cat; }", "public static TypeSpec mostEncompassingType(final ArrayList types) {\n if (types.size() == 0) {\n return null;\n }\n if (types.size() == 1) {\n return (TypeSpec) types.get(0);\n }\n\n TypeSpec mostEncompassing = (TypeSpec) types.get(0);\n for (final Object o : types) {\n final TypeSpec type = (TypeSpec) o;\n if (encompasses(type, mostEncompassing)) {\n // Debug.WriteLine(\"\"+type+\" encompasses \"+mostEncompassing);\n mostEncompassing = type;\n } else {\n // Debug.WriteLine(\"\"+type+\" doesn't encompasses \"+mostEncompassing);\n if (!encompasses(mostEncompassing, type)) {\n // Debug.WriteLine(\" and \"+mostEncompassing+\" doesn't encompass \"+type);\n return null;\n }\n // else\n // Debug.WriteLine(\" and \"+mostEncompassing+\" encompasses \"+type);\n\n }\n }\n\n return mostEncompassing;\n }", "public RequirementDefinition(String type) {\n this.type = type;\n }", "@Override\n\tpublic void typeCheck()\n\t{\n\t\t// Check for module name duplication\n\n\t\tboolean nothing = true;\n\t\tboolean hasFlat = false;\n\n\t\tfor (AModuleModules m1 : modules)\n\t\t{\n\t\t\tfor (AModuleModules m2 : modules)\n\t\t\t{\n\t\t\t\tif (m1 != m2 && m1.getName().equals(m2.getName()))\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3429, \"Module \" + m1.getName()\n\t\t\t\t\t\t\t+ \" duplicates \" + m2.getName(), m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (m1.getIsFlat())\n\t\t\t{\n\t\t\t\thasFlat = true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (hasFlat && Settings.release == Release.CLASSIC)\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3308, \"Cannot mix modules and flat specifications\", m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!m1.getTypeChecked())\n\t\t\t{\n\t\t\t\tnothing = false;\n\t\t\t}\n\t\t}\n\n\t\tif (nothing)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n \t\t// Mark top level definitions of flat specifications as used\n \t\tnew PDefinitionAssistantTC(new TypeCheckerAssistantFactory());\n \t\t\n \t\tfor (AModuleModules module: modules)\n \t\t{\n \t\t\tif (module instanceof CombinedDefaultModule)\n \t\t\t{\n\t \t\t\tfor (PDefinition definition: module.getDefs())\n\t \t\t\t{\n \t\t\t\t\tassistantFactory.createPDefinitionAssistant().markUsed(definition);\n\t \t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n\t\t// Generate implicit definitions for pre_, post_, inv_ functions etc.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tEnvironment env = new ModuleEnvironment(assistantFactory, m);\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().implicitDefinitions(m.getDefs(), env);\n\t\t\t}\n\t\t}\n\n\t\t// Exports have to be identified before imports can be processed.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processExports(m); // Populate exportDefs\n\t\t\t}\n\t\t}\n\n\t\t// Process the imports early because renamed imports create definitions\n\t\t// which can affect type resolution.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Populate importDefs\n\t\t\t}\n\t\t}\n\n\t\t// Create a list of all definitions from all modules, including\n\t\t// imports of renamed definitions.\n\n\t\tList<PDefinition> alldefs = new Vector<PDefinition>();\n\t\tList<PDefinition> checkDefs = new Vector<PDefinition>();\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getImportdefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attempt type resolution of unchecked definitions from all modules.\n\t\tEnvironment env = new FlatCheckedEnvironment(assistantFactory, alldefs, NameScope.NAMESANDSTATE);\n\t\tTypeCheckVisitor tc = new TypeCheckVisitor();\n\t\tfor (PDefinition d : checkDefs)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionAssistant().typeResolve(d, tc, new TypeCheckInfo(new TypeCheckerAssistantFactory(), env));\n\t\t\t} catch (TypeCheckException te)\n\t\t\t{\n\t\t\t\treport(3430, te.getMessage(), te.location);\n\t\t\t} catch (AnalysisException te)\n\t\t\t{\n\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t}\n\t\t}\n\n\t\t// Proceed to type check all definitions, considering types, values\n\t\t// and remaining definitions, in that order.\n\n\t\tfor (Pass pass : Pass.values())\n\t\t{\n\t\t\tfor (AModuleModules m : modules)\n\t\t\t{\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tEnvironment e = new ModuleEnvironment(assistantFactory, m);\n\n\t\t\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t\t\t{\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t\t// System.out.println(\"Def to typecheck: \" + d.getName());\n\t\t\t\t\t\tif (d.getPass() == pass)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\td.apply(tc, new TypeCheckInfo(assistantFactory, e, NameScope.NAMES));\n\t\t\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), te.location);\n\t\t\t\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Report any discrepancies between the final checked types of\n\t\t// definitions and their explicit imported types.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\t// TODO\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Re-populate importDefs\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// TODO\n\t\t\t\t\tassistantFactory.createAModuleModulesAssistant().typeCheckImports(m);\n\t\t\t\t\t// m.typeCheckImports(); // Imports compared to exports\n\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t{\n\t\t\t\t\treport(3432, te.getMessage(), te.location);\n\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t{\n\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Any names that have not been referenced or exported produce \"unused\"\n\t\t// warnings.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getImportdefs());\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getDefs());\n\t\t\t}\n\t\t}\n\t}", "private void scanForNewTypes(int defaultPriority) {\n\t\ttry {\n\t\t\tString[] alltypes = new TypeFilter().getTypes();\n\t\t\tfor (String t : alltypes) {\n\t\t\t\tacceptedEventTypes.put(t, defaultPriority);\n\t\t\t}\n\t\t} catch (URISyntaxException urise) {\n\t\t\turise.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "private void validateAttachedDocumentTypes(Noc noc, Object mdmsData) {\n\t\tMap<String, List<String>> masterData = mdmsValidator.getAttributeValues(mdmsData);\n\t\tList<Document> documents = noc.getDocuments();\n\n\t\tString filterExp = \"$.[?(@.applicationType=='\" + noc.getApplicationType() + \"' && @.nocType=='\" + noc.getNocType() + \"')].docTypes\";\n\n\t\tList<Object> docTypes = JsonPath.read(masterData.get(NOCConstants.NOC_DOC_TYPE_MAPPING), filterExp);\n\n\t\tif (CollectionUtils.isEmpty(docTypes)) {\n\t\t\tthrow new CustomException(\"MDMS_DATA_ERROR\", \"Unable to fetch noc document mapping\");\n\t\t}\n\n\t\tList<String> docTypeMappings = JsonPath.read(docTypes, \"$..documentType\");\n\n\t\tfilterExp = \"$.[?(@.active==true)].code\";\n\t\tList<String> validDocumentTypes = JsonPath.read(masterData.get(NOCConstants.DOCUMENT_TYPE), filterExp);\n\n\t\tif (!CollectionUtils.isEmpty(documents)) {\n\t\t\tList<String> addedDocTypes = new ArrayList<String>();\n\t\t\tdocuments.forEach(document -> {\n\t\t\t\tif (StringUtils.isEmpty(document.getFileStoreId())) {\n\t\t\t\t\tthrow new CustomException(\"NOC_FILE_EMPTY\", \"Filestore id is empty\");\n\t\t\t\t}\n\t\t\t\tif (!validDocumentTypes.contains(document.getDocumentType())) {\n\t\t\t\t\tthrow new CustomException(\"NOC_UNKNOWN_DOCUMENTTYPE\", document.getDocumentType() + \" is Unkown\");\n\t\t\t\t}\n\t\t\t\tString docType = document.getDocumentType();\n\t\t\t\tint lastIndex = docType.lastIndexOf(\".\");\n\t\t\t\tString documentNs = \"\";\n\t\t\t\tif (lastIndex > 1) {\n\t\t\t\t\tdocumentNs = docType.substring(0, lastIndex);\n\t\t\t\t} else if (lastIndex == 1) {\n\t\t\t\t\tthrow new CustomException(\"NOC_INVALID_DOCUMENTTYPE\", document.getDocumentType() + \" is Invalid\");\n\t\t\t\t} else {\n\t\t\t\t\tdocumentNs = docType;\n\t\t\t\t}\n\t\t\t\taddedDocTypes.add(documentNs);\n\t\t\t});\n\t\t\taddedDocTypes.forEach(documentType -> {\n\t\t\t\tif (!docTypeMappings.contains(documentType)) {\n\t\t\t\t\tthrow new CustomException(\"NOC_INVALID_DOCUMENTTYPE\", \"Document Type \" + documentType + \" is invalid for \" + noc.getNocType() + \" application\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public List<SecTyp> getAllTypes();", "public static void initLoaderType() {\r\n boolean autoaddBoolean = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"loader.autoadd.typesAttributes\", true);\r\n\r\n if (!autoaddBoolean) {\r\n return;\r\n }\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType loaderType = GroupType.createType(grouperSession, \"grouperLoader\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderType\", false);\r\n \r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDbName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderScheduleType\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuery\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuartzCron\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderIntervalSeconds\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderPriority\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderAndGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupTypes\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupsLike\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupQuery\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncBaseFolderName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncLevels\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncType\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeUse\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxGroupPercentRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentGroupsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentMembershipsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupSize\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinManagedGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeSendEmail\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupNumberOfMembers\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinOverallNumberOfMembers\", false);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding loader type/attributes\", e);\r\n }\r\n\r\n }", "private void enableTypesBasedOnApi() {\n\n IAndroidTarget target = mProject != null ? Sdk.getCurrent().getTarget(mProject) : null;\n int currentApiLevel = 1;\n if (target != null) {\n currentApiLevel = target.getVersion().getApiLevel();\n }\n\n for (TypeInfo type : sTypes) {\n type.getWidget().setEnabled(type.getTargetApiLevel() <= currentApiLevel);\n }\n }", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "private void loadExtensionResources() {\n\n for (String extensionType : ExtensionMgtUtils.getExtensionTypes()) {\n Path path = ExtensionMgtUtils.getExtensionPath(extensionType);\n if (log.isDebugEnabled()) {\n log.debug(\"Loading default templates from: \" + path);\n }\n\n // Check whether the given extension type directory exists.\n if (!Files.exists(path) || !Files.isDirectory(path)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Default templates directory does not exist: \" + path);\n }\n continue;\n }\n\n ExtensionManagerDataHolder.getInstance().getExtensionStore().addExtensionType(extensionType);\n\n // Load extensions from the given extension type directory.\n try (Stream<Path> directories = Files.list(path).filter(Files::isDirectory)) {\n directories.forEach(extensionDirectory -> {\n try {\n // Load extension info.\n ExtensionInfo extensionInfo = loadExtensionInfo(extensionDirectory);\n if (extensionInfo == null) {\n throw new ExtensionManagementException(\"Error while loading extension info from: \"\n + extensionDirectory);\n }\n extensionInfo.setType(extensionType);\n ExtensionManagerDataHolder.getInstance().getExtensionStore().addExtension(extensionType,\n extensionInfo.getId(), extensionInfo);\n // Load templates.\n JSONObject template = loadTemplate(extensionDirectory);\n if (template != null) {\n ExtensionManagerDataHolder.getInstance().getExtensionStore().addTemplate(extensionType,\n extensionInfo.getId(), template);\n }\n // Load metadata.\n JSONObject metadata = loadMetadata(extensionDirectory);\n if (metadata != null) {\n ExtensionManagerDataHolder.getInstance().getExtensionStore().addMetadata(extensionType,\n extensionInfo.getId(), metadata);\n }\n } catch (ExtensionManagementException e) {\n log.error(\"Error while loading resource files in: \" + extensionDirectory, e);\n }\n });\n } catch (IOException e) {\n log.error(\"Error while loading resource files in: \" + path, e);\n }\n }\n }", "public static void loadFiles(String destination, String type) {\n\t\t// This will reference one line at a time\n\t\tString line = null;\n\t\ttry {\n\t\t\t// FileReader reads text files in the default encoding.\n\t\t\tFileReader fileReader = new FileReader(destination);\n\t\t\t// Always wrap FileReader in BufferedReader.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\t//splits the line into seperate parts\n\t\t\t\tString[] tokens = line.split(\";\");\n\t\t\t\tswitch (type) {\n\t\t\t\tcase \"course\":\n\t\t\t\t\tif (tokens[3].equals(\"null\")) {\n\t\t\t\t\t\tcourseArray.add(new Course(tokens[0], tokens[1], tokens[2], null, Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i = 0; i < courseArray.size(); i++) {\n\t\t\t\t\t\t\tif (tokens[3].equals(courseArray.get(i).getCourseName())) {\n\t\t\t\t\t\t\t\tcourseArray.add(new Course(tokens[0], tokens[1], tokens[2], courseArray.get(i), Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"courseOfferings\":\n\t\t\t\t\tif (tokens[3].equals(\"null\")) {\n\t\t\t\t\t\tenrolCourseArray.add(new Course(tokens[0], tokens[1], tokens[2], null, Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i = 0; i < enrolCourseArray.size(); i++) {\n\t\t\t\t\t\t\tif (tokens[3].equals(enrolCourseArray.get(i).getCourseName())) {\n\t\t\t\t\t\t\t\tenrolCourseArray.add(new Course(tokens[0], tokens[1], tokens[2], enrolCourseArray.get(i), Integer.parseInt(tokens[4]),\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(tokens[5]), Integer.parseInt(tokens[6]), null));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"lecturer\":\n\t\t\t\t\tlecturerList.add(\n\t\t\t\t\t\t\tnew Lecturer(tokens[0], tokens[1], tokens[2], tokens[3], tokens[4], currentCourseArray));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + destination + \"'\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Error reading file '\" + destination + \"'\");\n\t\t\t// Or we could just do this:\n\t\t\t// ex.printStackTrace();\n\t\t}\n\t}", "public void testZeroDirectiveTypes() throws Exception {\n File file = getResourceFile(\"/testdata/javascript/head.js\");\n DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup(\"testDummy\", file.getParentFile(),\n file.getName(), new ArrayList<DirectiveType<?>>(), EnumSet.of(JavascriptGeneratorMode.TESTING));\n DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());\n dp.parseFile();\n goldFileText(dp.generate(JavascriptGeneratorMode.PRODUCTION), \".js\");\n }", "public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "public static void main(String[] args) {\n for (FamilyType type : FamilyType.values()) {\n System.out.println(\"Current Type: \" + type);\n ArrayList<String> names = RunXilinxTools.getPartNames(type.toString().toLowerCase(), false);\n if (names == null) continue;\n for (String name : names) {\n System.out.println(\" \" + name + \" \" + getExactFamilyTypeFromPart(name));\n }\n }\n\n String[] testPartNames = {\"xs6slx4ltqg144\", \"xs6slx4tqg144\",\n \"xc7v285tffg484\", \"xc7vh290tffg1155\", \"xc7k30tsbg324\", \"xc7a20cpg236\", \"xc7a175tcsg324\",\n \"xq7v285tffg484\", \"xq7vh290tffg1155\", \"xq7k30tsbg324\", \"xq7a20cpg236\", \"xq7a175tcsg324\",\n \"xqr7v285tffg484\", \"xqr7vh290tffg1155\"};\n for (String name : testPartNames) {\n System.out.println(\" \" + name + \" \" + getExactFamilyTypeFromPart(name));\n }\n }", "public void loadUserTypeConfiguration()\r\n\t{\r\n\t\tString userType = \"\";\r\n\t\tif (baseStoreConfigurationService!= null) {\r\n\t\t\tuserType = (String) baseStoreConfigurationService.getProperty(\"sapproductrecommendation_usertype\");\r\n\t\t}\r\n\t\tthis.setUserType(userType);\t\t\r\n\t}", "@Override\n\tpublic QueryRes getQueryResByTypes(String[] types) throws ServiceException {\n\t\treturn null;\n\t}", "public void setParams(BCClass[] types) {\n if (types == null)\n setParams((String[]) null);\n else {\n String[] names = new String[types.length];\n for (int i = 0; i < types.length; i++)\n names[i] = types[i].getName();\n setParams(names);\n }\n }", "void generate(String name, List<String> types, Settings settings);", "boolean isApplicableForAllAssetTypes();", "private boolean isDeviceDependentType(String mimeType){\n return !mimeType.matches(INDEPENDENT_PATERN);\n }", "Set<String> getBaseTypes();", "private FormatAndResolutions loadFormatResolutions() {\n\t\tFormatAndResolutions formatResolutionJson = new FormatAndResolutions();\n\t\tformatResolutionJson.setIMAGE_FORMAT(\"\");\n\t\tformatResolutionJson.setSTILL_CAPTURE(\"Disable\");\n\t\tformatResolutionJson.setSUPPORTED_IN_FS(\"Disable\");\n\t\tformatResolutionJson.setSUPPORTED_IN_HS(\"Disable\");\n\t\tformatResolutionJson.setSUPPORTED_IN_SS(\"Disable\");\n\t\tformatResolutionJson.setRESERVED(\"FF\");\n\t\treturn formatResolutionJson;\n\t}", "public List<SupplierEntity> getSuppliersExclType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.ne(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }", "public void loadGraphicAssets(int deviceType) {\n\t\tif (loaded) {\n\t\t\t// skip as already loaded\n\t\t\t//Log.d(TAG, \"already loaded...\");\n\t\t}\n\t\telse {\n\t\t\tassetFolder = mobileAssetFolder;\n\t\t\t//TODO\n\t\t\t/*\n\t\t\t * rem'd for getting app to store...\n\t\t\t * -testing\n\t\t\t * \n\t\t\tif (deviceType == FFScreen.MOBILE) {\n\t\t\t\tassetFolder = mobileAssetFolder;\n\t\t\t}\n\t\t\telse if (deviceType == FFScreen.TABLET) {\n\t\t\t\tassetFolder = tabletAssetFolder;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// deviceType == NO_DEVICE, fallback\n\t\t\t\tassetFolder = mobileAssetFolder;\n\t\t\t}\n\t\t\t*/\n\t\t\tsetAssetFolders();\n\t\t\tgraphicsLoader();\n\t\t}\t\t\n\t}", "@Override\n public Set<PredicateType> getPredicateTypes(String check) {\n return null;\n }", "public void testDefaultUntouchables() throws Exception\n {\n JacksonYAMLProvider prov = new JacksonYAMLProvider();\n // By default, no reason to exclude, say, this test class...\n assertTrue(prov.isReadable(getClass(), getClass(), null, null));\n assertTrue(prov.isWriteable(getClass(), getClass(), null, null));\n\n // but some types should be ignored (set of ignorable may change over time tho!)\n assertFalse(prov.isWriteable(StreamingOutput.class, StreamingOutput.class, null, null));\n\n // and then on-the-fence things (see [Issue-1])\n assertFalse(prov.isReadable(String.class, getClass(), null, null));\n assertFalse(prov.isReadable(byte[].class, getClass(), null, null));\n }", "private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }", "public interface FileTypeFilterable {\n void setAllowedFileTypes(String... fileTypes);\n}", "public void loadPreferecences()\n {\n // Load preferences for chapter\n chapterPref = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_CHAPTER);\n if (controller != null)\n { \n\t\t\tcontroller.setHierarchical(chapterPref);\n\t\t}\n // Load preferences for value to recognize req\n String pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_VALUE_TO_RECOGNIZE_REQ);\n if (pref != null && pref.length() > 0)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n RecognizedElement element = serializer.unSerialize(pref);\n if (element != null)\n {\n valueToRecognizeReq = element;\n }\n }\n\n // Load preferences for attributes list\n pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_LIST_RECOGNIZED_ELEMENT);\n if (pref != null && pref.length() > 0)\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n Collection<RecognizedElement> paramDecoded = serializer.unSerialize(pref);\n if (paramDecoded != null && paramDecoded.size() > 0)\n {\n for (Iterator<RecognizedElement> iterator = paramDecoded.iterator(); iterator.hasNext();)\n {\n tree.add((RecognizedElement) iterator.next());\n }\n }\n }\n \n // Load preferences for the description\n descriptionChecked = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_DESCRIPTION);\n }", "private void defaultReportTypeShouldNotBeFound(String filter) throws Exception {\n restReportTypeMockMvc.perform(get(\"/api/report-types?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restReportTypeMockMvc.perform(get(\"/api/report-types/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }", "Food getByType(String type);", "public void initExpTypeBeanForExistingExperiment(){\r\n \t\r\n }", "private void defaultAnnotationTypeShouldNotBeFound(String filter) throws Exception {\n restAnnotationTypeMockMvc.perform(get(\"/api/projects/{projectId}/annotation-types?sort=id,desc&\" + filter, DEFAULT_PROJECT_ID))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restAnnotationTypeMockMvc.perform(get(\"/api/projects/{projectId}/annotation-types/count?sort=id,desc&\" + filter, DEFAULT_PROJECT_ID))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }" ]
[ "0.57266635", "0.56904393", "0.55274785", "0.5502949", "0.53353465", "0.5290662", "0.51681954", "0.5160268", "0.5134033", "0.51265216", "0.5121809", "0.5086826", "0.50634813", "0.50464207", "0.49830005", "0.49816585", "0.4958642", "0.49444836", "0.48647973", "0.4862558", "0.48571873", "0.48477858", "0.4847694", "0.48368016", "0.4835432", "0.4811179", "0.4809123", "0.48066244", "0.47809213", "0.475844", "0.4757698", "0.47398022", "0.47358987", "0.4713054", "0.4706855", "0.47027686", "0.46838564", "0.46820867", "0.4681426", "0.46716833", "0.46506858", "0.46332157", "0.46319002", "0.46280327", "0.46277508", "0.4614273", "0.4612589", "0.4611774", "0.46094677", "0.46061707", "0.46050328", "0.46044055", "0.4602617", "0.4595548", "0.45677897", "0.4566499", "0.45613194", "0.45574337", "0.4553486", "0.45493957", "0.45455575", "0.45416915", "0.45406803", "0.4539176", "0.4538803", "0.4528578", "0.45262006", "0.45249078", "0.4499477", "0.4496552", "0.44799677", "0.44794422", "0.44744417", "0.4464815", "0.44617867", "0.44606262", "0.44590878", "0.44586903", "0.4452676", "0.4443373", "0.44376743", "0.44318283", "0.44289017", "0.44282246", "0.44255084", "0.44206816", "0.4417735", "0.44129854", "0.44029492", "0.43946058", "0.43816373", "0.43807277", "0.4374383", "0.43701333", "0.43689078", "0.43680927", "0.43648702", "0.436358", "0.43620935", "0.43561655" ]
0.6669272
0
endregion region > allSpecifications Returns (a new list holding a copy of) all the loaded specifications. A new list is returned to avoid concurrent modification exceptions for if the caller then iterates over all the specifications and performs an activity that might give rise to new ObjectSpec's being discovered, eg performing metamodel validation.
@Programmatic public Collection<ObjectSpecification> allSpecifications() { return Lists.newArrayList(allCachedSpecifications()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebObjectSpecification[] getAllWebComponentSpecifications()\n\t{\n\t\treturn reader.getAllWebComponentSpecifications();\n\t}", "public Set<AlfClass> getSpecializations()\r\n\t{\treturn Collections.unmodifiableSet(this.specializations);\t}", "public java.util.List<ProductSpecificationMapping> findAll();", "public List<String> getSpecifications() {\n\t\tString sql =\"select specification from specifications\";\n\t\tList<String> res = jdbcTemplate.queryForList(sql, String.class);\n\t\treturn res;\n\t}", "List<E> findAll(Specification<E> spec);", "public List<ModelWOChdListCustom>findSpecificationById(Long specificationId);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);", "public static <T> Spec<T> intersect(Collection<? extends Spec<T>> specs) {\n if (specs.size() == 0) {\n return satisfyAll();\n }\n return doIntersect(specs);\n }", "public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);", "public Map<String, NGPackageSpecification<WebObjectSpecification>> getWebComponentSpecifications()\n\t{\n\t\treturn reader.getWebComponentSpecifications();\n\t}", "@Override\n\t\tprotected void loadSpecification(SpecificationContext context) {\n\t\t}", "@Override\n public Collection<TestCase> processTestSpecification(Collection<TestSpecification> testCaseSpecifications) {\n Collection<TestCase> testCases = new ArrayList<>(testCaseSpecifications.size());\n for (TestSpecification testCaseSpecification : testCaseSpecifications) {\n List<TestSection> testSections = new ArrayList<>(16);\n List<TestCase> result = new ArrayList<>(1);\n recursivelyWalkSpecification(testCaseSpecification, testSections);\n result.add(new DefaultPdslTestCase(testCaseSpecification.getId(), testSections));\n testCases.addAll(result);\n }\n return testCases;\n }", "public Vector getListSpecializations(){\n Vector listQualifications = new Vector();\n try{\n String sqlGet = \"SELECT * FROM qualification ORDER BY qualification_name\";\n\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(rsGet.getInt(\"qualification_id\"));\n dataSet.add(rsGet.getString(\"qualification_name\"));\n\n listQualifications.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listQualifications;\n }", "List<PropertySpecification> propertySpecifications(ModelContext context);", "List<E> findAll(Specification<E> spec, Sort sort);", "@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }", "public Collection<List<NameValueBean>> getSpecimenList()\r\n\t{\r\n\t\treturn this.specimenList;\r\n\t}", "public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}", "public static ObservableList<Part> getAllParts() {\n return allParts;\n }", "public List<ModelOrderItemQtySpec>findAllSpecification(Long specificationId);", "@Override\n\tpublic List<Contract> find(Specification<Contract> spec) {\n\t\treturn contractDao.findAll(spec);\n\t}", "public void prepareForSpeciation() {\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.assignRep();\r\n\t\t}\r\n\r\n\t\t// clear the old species list\r\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.clearMembers();\r\n\t\t}\r\n\t}", "public abstract List<T> query(Specification specification) throws RepositoryException;", "protected void setSpecializations(Set<AlfClass> specializations) \r\n\t{\tthis.specializations = specializations;\t}", "public ObservableList<Part> getAllParts() {\n return allParts;\n }", "public ObservableList<Part> getAllParts() { return allParts; }", "private void recalcSpecs() {\n if (!(this.mCurrentSpecs == null || this.mAllTiles == null)) {\n this.mTiles.clear();\n this.mOtherTiles.clear();\n ArrayList arrayList = new ArrayList(this.mAllTiles);\n for (int i = 0; i < this.mCurrentSpecs.size(); i++) {\n TileQueryHelper.TileInfo andRemoveOther = getAndRemoveOther(this.mCurrentSpecs.get(i), arrayList);\n if (andRemoveOther != null) {\n this.mTiles.add(andRemoveOther);\n }\n }\n this.mTileDividerIndex = this.mTiles.size();\n this.mOtherTiles.addAll(arrayList);\n this.mEditIndex = this.mTiles.size();\n notifyDataSetChanged();\n }\n }", "public void setSpecification(String specs) {\n specification = specs;\n }", "public ArrayList getAll() {\r\n\t\tArrayList list = new ArrayList();\r\n\t\tlist.addAll(getParticles());\r\n\t\tlist.addAll(getConstraints());\r\n\t\tlist.addAll(getComposites());\r\n\t\treturn list;\r\n\t}", "@Test\n\tpublic void specificationsTest() {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(true);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\t// and 2 private records\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(false);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\t// found 3 visible records\n\t\tRecordSpecification visibleSpec = new RecordSpecification();\n\t\tvisibleSpec.add(new SearchCriteria(\"visible\", true, SearchOperation.EQUAL));\n\t\tList<Record> visibleRecord = repository.findAll(visibleSpec);\n\t\tassertThat(visibleRecord).hasSize(3);\n\n\t\t// found 2 private records\n\t\tRecordSpecification privateSpecs = new RecordSpecification();\n\t\tprivateSpecs.add(new SearchCriteria(\"visible\", false, SearchOperation.EQUAL));\n\t\tList<Record> privateRecords = repository.findAll(privateSpecs);\n\t\tassertThat(privateRecords).hasSize(2);\n\t}", "private void randomizeSpecs(Specs specs) {\n specs.randomize(random);\n matchSpecs(specs);\n }", "@Override\r\n\tpublic List<ManufacturersVO> k_getAll() {\n\t\treturn null;\r\n\t}", "public PlateSpecifications loadSpecs(String nickname);", "public Collection getFullValidationList ()\n\t{\n\t\tArrayList list = new ArrayList(getBasicValidationList());\n\t\tString className = getClassName();\n\t\tPersistenceClassElement persistenceClass = \n\t\t\tgetPersistenceClass(className);\n\n\t\tif (persistenceClass != null)\n\t\t{\n\t\t\tPersistenceFieldElement[] fields = persistenceClass.getFields();\n\t\t\tint i, count = ((fields != null) ? fields.length : 0);\n\n\t\t\tlist.add(createSerializableClassComponent(className));\n\t\t\tlist.add(createKeyClassComponent(persistenceClass.getKeyClass()));\n\t\t\tlist.add(createClassMappingComponent(persistenceClass));\n\t\t\tlist.add(createKeyColumnMappingComponent(persistenceClass));\n\n\t\t\tfor (i = 0; i < count; i++)\n\t\t\t{\n\t\t\t\tPersistenceFieldElement field = fields[i];\n\n\t\t\t\tlist.add(createFieldCardinalityComponent(field));\n\t\t\t\tlist.add(createFieldMappingComponent(field));\n\t\t\t\tlist.add(createFieldBlobMappingComponent(field));\n\t\t\t\tlist.addAll(getRelatedClassValidationList(field));\n\t\t\t}\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}", "public Collection<Requirement> getGenericRequirements();", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public void cacheResult(\n\t\tjava.util.List<ProductSpecificationMapping>\n\t\t\tproductSpecificationMappings);", "@Override\n\tpublic List<Generator> getAll() {\n\t\treturn new ArrayList<>();\n\t}", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public void setAllSolutions(List<List> allSolutions) {\r\n this.allSolutions = allSolutions;\r\n }", "private void initializeSpecificationsAdapter() {\n mSpecificationsAdapter = new SpecificationsAdapter(mSpecialitiesList, TRUE);\n mBinding.rvPdpSpecifications.setAdapter(mSpecificationsAdapter);\n }", "@Override\n\tpublic Set<OWLEntity> getAllConcepts() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getClassesInSignature());\n\t\tresult.addAll(ontology.getIndividualsInSignature());\n\t\treturn result;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Mock> findAll() {\n log.debug(\"Request to get all Mocks\");\n return mockRepository.findAll();\n }", "@Override\n\tpublic List<Resume> all() {\n\t\treturn resumeMapper.all();\n\t}", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public java.util.ArrayList<Species> getAllSpecies() {\n ArrayList<Species> answer = new ArrayList<Species>();\n getAllDescendantSpecies(overallRoot, answer);\n return answer;\n \n }", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "public synchronized List<SampleProject> getAll() {\n\t\tif (samples==null) {\n\t\t\tsamples = new ArrayList<SampleProject>();\n\t\t\tregisterLocalSamples();\n\t\t}\n\t\treturn samples;\n\t}", "protected ResultSpecification getResultSpecification() {\r\n QueryParametersConfigurator configurer = new QueryParametersConfigurator(NAME_PROVIDER);\r\n ResultSpecification resultSpecification = configurer\r\n .getResultSpecification(getParameters());\r\n return resultSpecification;\r\n }", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "public void createMeasurementSpecificationsForEveryMetricDescription(\n EList<MetricDescription> nonMatchingMetricDesciptions, MonitorRepositoryFactory monFactory,\n EList<MeasurementSpecification> mSpecList) {\n for (int i = 0; i < nonMatchingMetricDesciptions.size(); i++) {\n mSpecList.add(monFactory.createMeasurementSpecification());\n }\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "@Override\r\n\tpublic List<Filtering> selectByAll() {\n\t\treturn filteringMapper.selectByAll();\r\n\t}", "public abstract List<T> all();", "@Override\n\tpublic List<InstituteFormation> allFormations() {\n\t\treturn dao.allFormation();\n\t}", "public abstract List<AbstractRequirement> getRequirements();", "@Override\n\tpublic List<Problem> selectAll() {\n\t\treturn problemMapper.selectAll();\n\t}", "public List<PartDto> getAllParts(){\n var result = this.repoParts.findAll();\n ArrayList<PartDto> parts = new ArrayList<>();\n return mapper.mapList(result, false);\n }", "protected AbstractXmlSpecification() {\n\t\tthis.properties = new Properties();\n\t}", "public List<T> getAll() {\n\t\treturn this.getAll(new ArrayList<String>(), false);\n\t}", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "@Transactional(readOnly = true)\n public List<TechPracticesDTO> findAll() {\n log.debug(\"Request to get all TechPractices\");\n return techPracticesRepository.findAll().stream()\n .map(techPracticesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<QuestionMultiChoice> findAll() {\n\t\treturn Lists.newArrayList(qcmRepository.findAll());\n\t}", "public Map<String, NGPackageSpecification<WebLayoutSpecification>> getLayoutSpecifications()\n\t{\n\t\treturn reader.getLayoutSpecifications();\n\t}", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic List<?> getAll() {\n\t\treturn null;\r\n\t}", "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "public String getSpecification() {\n return specification;\n }", "private List<S3ObjectSummary> findObsoleteProgspecFiles() {\n // Get the current local program specification state.\n Properties localProgspec = getProgSpecETags();\n\n // Compare the actual state to the state cached lcoally.\n Map<String, S3ObjectSummary> currentProgspec = Authenticator.getInstance().getProjectsHelper().getProgSpecInfo(getProgramId());\n List<S3ObjectSummary> result = new ArrayList<>();\n for (Map.Entry<String, S3ObjectSummary> e : currentProgspec.entrySet()) {\n // If we don't have the file locally, or if the eTag doesn't match, add to the result list.\n String localTag = localProgspec.containsKey(e.getKey()) ? localProgspec.get(e.getKey()).toString() : \"\";\n if (!e.getValue().getETag().equalsIgnoreCase(localTag))\n result.add(e.getValue());\n }\n return result;\n }", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "public List<Product> getAll() {\n\t\treturn productRepository.findAll();\n\n\t}", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Override\r\n\tpublic List<Combination> getAllCombination() {\n\t\tString hql = \"from Combination\";\r\n\t\treturn (List<Combination>) getHibernateTemplate().find(hql);\r\n\t}", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Collection<Book> findAll() {\n\t\treturn entityManager.createQuery(\"SELECT b FROM Book b\").getResultList();\n\t}", "@Override\n\tpublic List<HumanFile> findHumanFileAll() {\n\t\treturn HumanFileMapper.findHumanFileAll();\n\t}", "public Collection getBasicValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tString className = getClassName();\n\n\t\tlist.add(createClassExistenceComponent(className));\n\t\tlist.add(createClassPersistenceComponent(className));\n\n\t\tlist.addAll(getDatabaseValidationList());\n\t\tlist.addAll(getFieldsValidationList());\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}", "public List<Computer> searchComputers(ComputerSpec searchSpec) {\n List<Computer> matchedComputers = new ArrayList<>();\n\n for (Computer computer : inventory) {\n if (computer.getComputerSpec().matches(searchSpec)) {\n matchedComputers.add(computer);\n }\n }\n return matchedComputers;\n }", "public List<Spectator> findAllSpectators(){\n\t\treturn spectatorRepository.findAll();\n\t}", "public List<Match> getAllMatches() {\n\t\treturn matchers.stream()\n\t\t\t\t.flatMap(m -> m.getMatches().stream())\n\t\t\t\t.distinct()\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\r\n\tpublic Page<Staff> findAll(Specification<Staff> spec, Pageable pageable) {\n\t\treturn staffDao.findAll(spec, pageable);\r\n\t}", "public static boolean[] getSelectedSpecsFilter() {\r\n return PCCTRL.selectedSpecsFilter;\r\n }", "@Override\n\tpublic Set<OWLEntity> getAllProperties() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getObjectPropertiesInSignature());\n\t\treturn result;\n\t}", "public static ArrayList<PCSpec> getEnaSpec() {\r\n return enaSpec;\r\n }", "@Override\n @Transactional(readOnly = true)\n public List<ConferenceDTO> findAll() {\n log.debug(\"Request to get all Conferences\");\n return conferenceRepository.findAll().stream()\n .map(conferenceMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "private Collection<COREModel> getAllRealisationModels() {\n Collection<COREModel> allRealisationModels = new ArrayList<COREModel>();\n Collection<? extends COREModel> aspects = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, RamPackage.eINSTANCE.getAspect());\n Collection<? extends COREModel> ucms = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, UCMPackage.eINSTANCE.getUseCaseMap());\n allRealisationModels.addAll(aspects);\n allRealisationModels.addAll(ucms);\n return allRealisationModels;\n }", "private List<TestCandidate> getFilteredTestCandidates() {\n // Apply suite filters.\n if (!suiteFilters.isEmpty()) {\n for (Filter f : suiteFilters) {\n if (!f.shouldRun(suiteDescription)) {\n return Collections.emptyList();\n }\n }\n }\n \n // Apply method filters.\n if (testFilters.isEmpty()) {\n return testCandidates;\n }\n \n final List<TestCandidate> filtered = new ArrayList<TestCandidate>(testCandidates);\n for (Iterator<TestCandidate> i = filtered.iterator(); i.hasNext(); ) {\n final TestCandidate candidate = i.next();\n for (Filter f : testFilters) {\n if (!f.shouldRun(Description.createTestDescription(\n candidate.instance.getClass(), candidate.method.getName()))) {\n i.remove();\n break;\n }\n }\n }\n return filtered;\n }", "@Override\r\n\tpublic List<ManufacturePackageTitleDTO> getListAll() {\n\t\tList<ManufacturePackageTitle> listAll = manufacturePackageTitleService.getListAll();\r\n\t\tList<ManufacturePackageTitleDTO> manufacturePackageTitleDTOs = new ArrayList<ManufacturePackageTitleDTO>();\r\n\t\tif(listAll != null && listAll.size() > 0){\r\n\t\t\tfor(ManufacturePackageTitle manufacturePackageTitle : listAll){\r\n\t\t\t\tManufacturePackageTitleDTO manufacturePackageTitleDTO = new ManufacturePackageTitleDTO();\r\n\t\t\t\tBeanUtils.copyProperties(manufacturePackageTitle, manufacturePackageTitleDTO);\r\n\t\t\t\tmanufacturePackageTitleDTOs.add(manufacturePackageTitleDTO);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn manufacturePackageTitleDTOs;\r\n\t}", "public List<Doctor> getDoctorsBySpecification(String specification) {\n\t\tString sql=null;\n\t\tList<Doctor> docs = null;\n\t\tif(specification.equals(\"*\")) {\n\t\t\tsql = \"select \"\n\t\t\t\t\t+ \"u.id, u.firstName, u.lastName, u.email, u.gender,specification, description, hospital \"\n\t\t\t\t\t+ \"from HealthUsers u join doc_specification \"\n\t\t\t\t\t+ \"on doc_id=u.id \"\n\t\t\t\t\t+ \"join specifications s \"\n\t\t\t\t\t+ \" on s.id=specification_id\";\n\t\t\tdocs = jdbcTemplate.query(sql, new DoctorRowMapper());\n\t\t}\n\t\telse {\n\t\tsql = \"select \"\n\t\t\t\t+ \"u.id, u.firstName, u.lastName, u.email, u.gender,specification, description, hospital \"\n\t\t\t\t+ \"from HealthUsers u join doc_specification \"\n\t\t\t\t+ \"on doc_id=u.id \"\n\t\t\t\t+ \"join specifications s \"\n\t\t\t\t+ \" on s.id=specification_id \"\n\t\t\t\t+ \"where specification =?\";\n\t\tdocs = jdbcTemplate.query(sql, new DoctorRowMapper(),specification );\n\t\t}\n\t\treturn docs;\n\t}", "public void testInheritanceGetAllAttributes()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\t// Step 2\t\t\t\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t// Step 3\t\r\n\r\n\t\t\tCollection<AttributeInterface> specimenAttributes = specimen.getAllAttributes();\r\n\t\t\t//2 user attributes + 1 system attribute for id\r\n\t\t\tassertEquals(3, specimenAttributes.size());\r\n\r\n\t\t\t//2 child Attributes + 1 parent Attribute + 2 system generated attributes for id\r\n\t\t\tCollection<AttributeInterface> tissueSpecimenAttributes = tissueSpecimen\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\tassertEquals(5, tissueSpecimenAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenAAttributes = advanceTissueSpecimenA\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//1 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(7, advanceTissueSpecimenAAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenBAttributes = advanceTissueSpecimenB\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//2 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(8, advanceTissueSpecimenBAttributes.size());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "Set<EObject> getAllModelElements();", "public List<Entity> getAll() {\n return entities;\n }", "public List<String[]> getListOfAllProblems() {\r\n return ctrlDomain.getListOfAllProblems();\r\n }", "@Override\n public List<Workload> getAll() throws InstanceNotFoundException {\n List<Workload> list = new ArrayList<>();\n workloadRepository.findAll().forEach(list::add);\n if (list.isEmpty()) {\n throw new InstanceNotFoundException(\"Here is no Workloads\");\n }\n return list;\n }", "public Set<String> loadAllSubstanceNames();", "@SuppressWarnings(\"unchecked\")\n\t@PersistenceContext\n\tpublic static List<KoeficientObject> getInListAllValueKoeficientObject() {\n\t\tEntityManagerFactory emfactory = GlobalVariableForSQL_DBase.getDBase();\n\t\tEntityManager entitymanager = GlobalVariableForSQL_DBase.getEntityManagerDBase(emfactory);\n\t\tentitymanager.getTransaction().begin();\n\t\tQuery query = entitymanager.createNamedQuery(\"getListAllKoeficientObject\");\n\t\tList<KoeficientObject> list = query.getResultList();\n\t\tentitymanager.close();\n\t\temfactory.close();\n\t\treturn list;\n\t}", "public Vector listSpecification1() throws SQLException {\n Debug.print(\"Inside the listSpecification1 : \");\n Vector vObj = new Vector();\n try {\n makeConnection();\n String slelctStr = \"SELECT specification_id,activity_type_id,specification_name FROM \"+ DBHelper.USEA_SPECIFICATION_MASTER;\n PreparedStatement prepStmt = con.prepareStatement(slelctStr);\n // prepStmt.setString(1, activityId);\n rs = prepStmt.executeQuery();\n System.out.println(\"after execute Query listSpecification1 \");\n while (rs.next()) {\n this.specificationId = rs.getString(1);\n this.activityTypeId = rs.getString(2);\n this.specificationName = rs.getString(3);\n String [] speciList = {specificationId,specificationName};\n vObj.add(speciList);\n }\n \n }catch (SQLException e){\n releaseConnection();\n e.printStackTrace();\n }finally {\n releaseConnection();\n }\n return vObj;\n }" ]
[ "0.64288604", "0.61189735", "0.596895", "0.5879992", "0.58578813", "0.57064253", "0.540476", "0.5362522", "0.5310882", "0.52503806", "0.5202291", "0.5148515", "0.5114784", "0.5105016", "0.50795937", "0.50792164", "0.50741994", "0.5065723", "0.50441587", "0.50400823", "0.5031064", "0.50149167", "0.5008643", "0.49809295", "0.49565464", "0.49560323", "0.49497467", "0.49465445", "0.49425265", "0.49254513", "0.48814166", "0.48721063", "0.48627505", "0.48579875", "0.47542956", "0.4710296", "0.4692855", "0.4691095", "0.46786034", "0.46634355", "0.46634355", "0.46572277", "0.46490514", "0.46463978", "0.4646165", "0.4630098", "0.46072537", "0.4566315", "0.45625392", "0.45566684", "0.4532802", "0.45258635", "0.45237318", "0.44929197", "0.44878393", "0.44799638", "0.44635707", "0.4451369", "0.4448823", "0.44479728", "0.44330347", "0.44289878", "0.4428259", "0.4419309", "0.44179055", "0.44135514", "0.4408489", "0.44020218", "0.43854427", "0.43854427", "0.43854427", "0.43799794", "0.4379727", "0.43783978", "0.43772373", "0.43718338", "0.43692547", "0.436698", "0.4360272", "0.43591636", "0.43584326", "0.43467376", "0.43425354", "0.43390593", "0.43362874", "0.43341616", "0.4329932", "0.43296665", "0.43274376", "0.4319633", "0.43118078", "0.43087846", "0.4300288", "0.42986813", "0.42975318", "0.42956483", "0.42945892", "0.42937496", "0.4293541", "0.42906696" ]
0.83848196
0
endregion region > getServiceClasses, isServiceClass
@Programmatic public List<Class<?>> allServiceClasses() { List<Class<?>> serviceClasses = Lists .transform(this.servicesInjector.getRegisteredServices(), new Function<Object, Class<?>>(){ public Class<?> apply(Object o) { return o.getClass(); } }); // take a copy, to allow eg I18nFacetFactory to add in default implementations of missing services. return Collections.unmodifiableList(Lists.newArrayList(serviceClasses)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class getServiceClass() { return serviceClass; }", "ClassOfService getClassOfService();", "public Class getServiceClass()\n {\n return serviceClass;\n }", "public java.lang.String getServiceClass() {\n return serviceClass;\n }", "private void getServiceClasses(Class<?> service, Set<ProviderClass> sp) {\n LOGGER.log(Level.CONFIG, \"Searching for providers that implement: \" + service);\n Class<?>[] pca = ServiceFinder.find(service, true).toClassArray();\n for (Class pc : pca) {\n if (constrainedTo(pc)) {\n LOGGER.log(Level.CONFIG, \" Provider found: \" + pc);\n }\n }\n // Add service-defined providers to the set after application-defined\n for (Class pc : pca) {\n if (constrainedTo(pc)) {\n sp.add(new ProviderClass(pc, true));\n }\n }\n }", "@Override\n public Set<Class<?>> getClasses() {\n HashSet h = new HashSet<Class<?>>();\n h.add(AffirmationService.class );\n return h;\n }", "public static Class[] getImplementorClasses(String serviceName) {\n return getImplementorClasses(serviceName, null);\n }", "public interface ClassesService {\n\n public List<Classes> findClassesByCondition(Classes classes) throws Exception ;\n\n public void addClasses(Classes classes) throws Exception;\n\n public void updateClasses(Classes classes) throws Exception;\n}", "public interface ClassesService {\n\n PagerHelper<Classes> list(String key, Integer pageNo, Integer pageSize) throws Exception;\n\n Classes create(Classes classes);\n\n Classes update(Integer id, Classes classes) throws Exception;\n\n void delete(Integer id) throws Exception;\n\n Classes get(Integer id) throws Exception;\n\n List<StudentVo> findClassesStudent(Integer classId);\n\n void exportStudent(HttpServletResponse response,Integer classId);\n\n void exportSignStudent(HttpServletResponse response,Integer classId);\n\n Map<Integer, Classes> getAllClassesMap();\n\n}", "protected abstract ServiceObjectType getServiceObjectType();", "void setClassOfService(ClassOfService serviceClass);", "private boolean isMyServiceRunning(Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);\n\n for (ActivityManager.RunningServiceInfo serviceInfo : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(serviceInfo.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasClassname();", "public Class getServiceInterface() {\n return null;\n }", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }", "public String getTypeOfService(){\n\treturn typeOfService;\n}", "boolean hasServiceName();", "boolean hasServiceName();", "public static boolean isServiceRunning(Context ctx, Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) ctx.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "<T> T getService(Class<T> type, boolean checkExistence);", "List<Service> services();", "public static String[] getImplementors(Class serviceClass) {\n return getImplementors(serviceClass, null);\n }", "ServicesPackage getServicesPackage();", "Object getService(String serviceName, boolean checkExistence);", "private boolean isServiceRunning(String strClassName) {\n boolean bRunning = false;\n\n try{\n ActivityManager am = (ActivityManager)mContext.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> servicesList = am.getRunningServices(Integer.MAX_VALUE);\n Iterator<ActivityManager.RunningServiceInfo> serviceList = servicesList.iterator();\n\n while(serviceList.hasNext()) {\n ActivityManager.RunningServiceInfo si = (ActivityManager.RunningServiceInfo)serviceList.next();\n if(strClassName.equals(si.service.getClassName()) == true) {\n bRunning = true;\n break;\n }\n }\n\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n return bRunning;\n }", "public ServiceType getActualServiceType(){\r\n\t\treturn this.serviceTypeInUse;\r\n\t}", "protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }", "public static boolean isServiceRunning(Context context, Class<?> serviceClass) {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n return false;\n }", "java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList();", "java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList();", "public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided for extensibility beyond the core service\n * set.\n *\n * @param type The class name of the service to be retrieved.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n <T extends Service> T getService(Class<T> type)\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a WorkflowService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n WorkflowService getWorkflowService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a UserService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n UserService getUserService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns an AdministrationService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n AdministrationService getAdministrationService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a QueryService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n QueryService getQueryService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a document management service.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n DocumentManagementService getDocumentManagementService()\n throws ServiceNotAvailableException, LoginFailedException;;\n\n /**\n * Provides explicit service resource management. May be used to release resources\n * associated with a service (like connection handles or locked instances) early.\n * <p />\n * Explicitly releasing a service may be help conserving resources but is not necessary\n * as the <code>ServiceFactory</code> provides automatic resource cleanup.\n *\n * @param service The service to be released.\n *\n * @see #close()\n */\n void release(Service service);\n\n /**\n * Releases all resources hold by the service factory and its single services. All\n * services retrieved from this ServiceFactory will be closed too.\n */\n void close();\n\n void setCredentials(Map credentials);\n\n void setProperties(Map properties);\n\n /**\n * Gets the user session id\n * @return the user session id - may be null\n */\n String getSessionId();\n}", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();", "public interface HasClasses {\n /**\n * Returns list of classes\n *\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getClasses();\n\n /**\n * Returns list of all classes, including indirect descendants.\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getAllClasses();\n}", "@Override\n public ClassFileServices getClassFileServices() {\n return null;\n }", "public String getTypeOfService(){\n\t\treturn typeOfService;\n\t}", "protected CabinClassService getCabinClassService()\n\t{\n\t\treturn cabinClassService;\n\t}", "private static interface Service {}", "protected <T> T getService(Class<T> clazz) {\n \tfinal ServiceReference<T> ref = bundleContext.getServiceReference(clazz);\n \tassertNotNull(\"getService(\" + clazz.getName() + \") must find ServiceReference\", ref);\n \tfinal T result = (bundleContext.getService(ref));\n \tassertNotNull(\"getService(\" + clazz.getName() + \") must find service\", result);\n \treturn result;\n }", "@Override\r\n\tpublic final boolean isAvailale(final String service) {\n\r\n\t\tMapAware mapAware = new MapAware() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object getKey() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn service;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Object getValue() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn KxTopologyCacheContext.getSingleCacheContext().contains(ObjectHelper.CLASSKEY, ObjectHelper.CLASSVALUE,\r\n\t\t\t\tmapAware)\r\n\t\t\t\t|| KxTopologyCacheContext.getSingleCacheContext().contains(ObjectHelper.CLASSKEY,\r\n\t\t\t\t\t\tObjectHelper.WASTECLASS, mapAware);\r\n\t}", "<V> V getService(String serviceName, Class<V> targetType, boolean checkExistence);", "public static boolean isMyServiceRunning(Class<?> serviceClass, Context mContext) {\n ActivityManager manager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);\n if (manager != null) {\n for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {\n if (serviceClass.getName().equals(service.service.getClassName())) {\n return true;\n }\n }\n }\n return false;\n }", "Collection<? extends MService> getHasMicroService();", "public Vector getServiceTypes() throws ServiceException {\n return namingService.getServiceTypes();\n }", "public interface Service {\n // Service-specific methods go here\n }", "public Class<? extends ClientService> getObjectType() {\n\t\treturn ClientService.class;\r\n\t}", "<T> T getService(Class<T> type);", "@Test\n public void testSupports() {\n assertTrue(instance.supports(SpringRestService.class));\n // JAX-RS RestService class\n assertFalse(instance.supports(StandardRestService.class));\n // Default RestService class\n assertFalse(instance.supports(DefaultRestService.class));\n // No annotated RestService class\n assertFalse(instance.supports(RestService.class));\n // null\n assertFalse(instance.supports(null));\n }", "public static boolean isServiceRunning(Class <? extends Service> service, Context context) {\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n for ( ActivityManager.RunningServiceInfo runningServiceInfo : manager.getRunningServices(Integer.MAX_VALUE) ) {\n if ( service.getName().equals(runningServiceInfo.service.getClassName()) ) { return true; }\n }\n return false;\n }", "@Override\n public Collection<Class<? extends IFloodlightService>> getModuleServices() {\n \t Collection<Class<? extends IFloodlightService>> l = new ArrayList<Class<? extends IFloodlightService>>();\n l.add(IPktinHistoryService.class);\n return l;\n }", "public interface Service {\n\n}", "public interface Service {\n\n}", "boolean hasServiceList();", "public List<Class<?>> getAllModelServices() {\n\t\treturn ModelClasses.findModelClassesWithInterface(IServiceType.class);\n\t}", "public List<CatalogService> getService(String service);", "public boolean isServiceTypeSupported(String type) {\n if (type != null) {\n for (int i=0; i<serviceTypes.length; i++)\n if (type.trim().equals(serviceTypes[i])) return true;\n }\n return false;\n }", "ISet<Class<?>> collectAllTypeWiredServices();", "@NotNull\n List<? extends ClassInfo> getClasses();", "@Test\n public void testCategoryService() {\n assertEquals(\"com.dungnv.streetfood.service.ClientServiceImpl\", this.clientService.getClass().getName());\n\n }", "public Object getService(String serviceName);", "default boolean isClass() {\n return false;\n }", "public ServiceReference[] getServiceReferences(String clazz, String filter) throws InvalidSyntaxException {\r\n\t\t\t\treturn new ServiceReference[] { new MockServiceReference(new String[] { Cloneable.class.getName() }) };\r\n\t\t\t}", "@ArchTest\n public void repositories_are_only_used_by_services(JavaClasses importedClasses) {\n\n ArchRule rule = classes()\n .that().haveSimpleNameContaining(\"Repository\")\n .should().onlyHaveDependentClassesThat().haveSimpleNameContaining(\"Service\");\n\n rule.check(importedClasses);\n }", "public interface ServiceManagerInterface {\n\n /**\n * add a Service\n * @param servicePackage the service package to register\n * @param configuration The configuration of the client\n * @param profile the client profile\n * @return The added service description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription addService(\n AGServicePackageDescription servicePackage,\n AGParameter[] configuration,\n ClientProfile profile)\n throws IOException, SoapException;\n\n /**\n * gets the service manager description\n * @return service manager description\n * @throws IOException\n * @throws SoapException\n */\n AGServiceManagerDescription getDescription()\n throws IOException, SoapException;\n\n /**\n * gets the url of the node service\n * @return url of node service\n * @throws IOException\n * @throws SoapException\n */\n String getNodeServiceUrl()\n throws IOException, SoapException;\n\n /**\n * gets the available services\n * @return a vector of available services\n * @throws IOException\n * @throws SoapException\n */\n AGServiceDescription[] getServices()\n throws IOException, SoapException;\n\n /**\n * test whether the service manager is valid\n * @return the 'valid' state\n * @throws IOException\n * @throws SoapException\n */\n int isValid() throws IOException, SoapException;\n\n /**\n * removes a service from the service manager\n * @param serviceDescription the description of the service to be removed\n * @throws IOException\n * @throws SoapException\n */\n void removeService(AGServiceDescription serviceDescription)\n throws IOException, SoapException;\n\n /**\n * removes all services from the service manager\n * @throws IOException\n * @throws SoapException\n */\n void removeServices() throws IOException, SoapException;\n\n /**\n * sets the url for node service\n * @param nodeServiceUri\n * @throws IOException\n * @throws SoapException\n */\n void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;\n\n /**\n * shuts down the service manager\n * @throws IOException\n * @throws SoapException\n */\n void shutdown() throws IOException, SoapException;\n\n /**\n * stops all services on service manager\n * @throws IOException\n * @throws SoapException\n */\n void stopServices() throws IOException, SoapException;\n\n /**\n * gets the version number of the service manager\n * @return string with version of service manager\n * @throws IOException\n * @throws SoapException\n */\n String getVersion() throws IOException, SoapException;\n\n\n /**\n * Requests to join a bridge\n * @param bridgeDescription The description of the bridge\n * @throws IOException\n * @throws SoapException\n */\n void joinBridge(BridgeDescription bridgeDescription)\n throws IOException, SoapException;\n\n /**\n * Sets the streams of this service manager\n *\n * @param streamDescriptionList a vector of stream descriptions\n * @throws IOException\n * @throws SoapException\n */\n void setStreams(StreamDescription[] streamDescriptionList)\n throws IOException, SoapException;\n /**\n * adds a stream\n * @param argname stream description of new stream\n * @throws IOException\n * @throws SoapException\n */\n void addStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Removes a stream\n * @param argname The stream to remove\n * @throws IOException\n * @throws SoapException\n */\n void removeStream(StreamDescription argname)\n throws IOException, SoapException;\n /**\n * Sets the point of reference for network traffic\n * @param url The url of the point of reference server\n * @throws IOException\n * @throws SoapException\n */\n void setPointOfReference(String url)\n throws IOException, SoapException;\n\n /**\n * Sets the encryption\n * @param encryption The encryption\n * @throws IOException\n * @throws SoapException\n */\n void setEncryption(String encryption)\n throws IOException, SoapException;\n /**\n * Instructs the client to run automatic bridging\n * @throws IOException\n * @throws SoapException\n */\n void runAutomaticBridging()\n throws IOException, SoapException;\n\n /**\n * Determines if a service is enabled\n * @param service The service to get the status of\n * @return True if enabled, false otherwise\n * @throws IOException\n * @throws SoapException\n */\n boolean isServiceEnabled(AGServiceDescription service)\n throws IOException, SoapException;\n\n /**\n * Enables or disables a service\n * @param service The service to control\n * @param enabled True to enable, false to disable\n * @throws IOException\n * @throws SoapException\n */\n void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;\n\n /**\n * Gets the configuration parameters of a service\n * @param service The service to get the configuration of\n * @return The parameters\n * @throws IOException\n * @throws SoapException\n */\n AGParameter[] getServiceConfiguration(AGServiceDescription service)\n throws IOException, SoapException;\n /**\n * Sets the configuration parameters for a service\n * @param service The service to configure\n * @param config The new parameters\n * @throws IOException\n * @throws SoapException\n */\n void setServiceConfiguration(AGServiceDescription service,\n AGParameter[] config)\n throws IOException, SoapException;\n\n /**\n * Sets the client profile\n * @param profile The new profile\n * @throws IOException\n * @throws SoapException\n */\n void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;\n}", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() \n\t{\n\t\treturn null;\n\t}", "List<Class<?>> getManagedClasses();", "public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}", "net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;", "public java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList() {\n return services_;\n }", "public java.util.List<? extends go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder> \n getServicesOrBuilderList() {\n return services_;\n }", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls()\n\t{\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}", "@Override\n\t\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\t\treturn null;\n\t\t}", "public void testClassAnnotation() {\r\n TestHelper.assertClassAnnotation(ConfluenceManagementServiceLocal.class, Local.class);\r\n }", "public ServiceXML getService(String className) {\n return allXMLServices.get(className);\n }", "@Override\n\tpublic Classes findClasses(String cls_id) {\n\t\tString sql = \"select * from classes where cls_id='\" + cls_id + \"'\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tClasses classes = querys.getBean();\n\t\treturn classes;\n\t}", "Object getService(String serviceName);", "public boolean existsClass(String name)\r\n\t{\r\n\t\treturn obtainOntClass(name) != null;\r\n\t}", "public void checkClassesExistence(final Collection<String> classIds, \n\t\t\tfinal boolean shouldExist) throws ServiceException {\n\t\t\n\t\tfor(String classId : classIds) {\n\t\t\tcheckClassExistence(classId, shouldExist);\n\t\t}\n\t}", "public abstract String getServiceName();", "public boolean isServiceTypeInstalled(String fullTypeName) {\r\n ServiceData sd = ServiceData.getLocalInstance();\r\n\r\n if (!sd.containsServiceType(fullTypeName)) {\r\n log.error(\"unknown service {}\", fullTypeName);\r\n return false;\r\n }\r\n\r\n Set<Library> libraries = getUnfulfilledDependencies(fullTypeName);\r\n if (libraries.size() > 0) {\r\n // log.info(\"{} is NOT installed\", fullTypeName);\r\n return false;\r\n }\r\n\r\n // log.info(\"{} is installed\", fullTypeName);\r\n return true;\r\n }", "@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n return null;\n\t}", "public interface ConsulService {\n\n /**\n * Deregisters a node, service, or check\n */\n public void deregister(SvcInfo svcInfo);\n\n /**\n * Lists known datacenters\n * @return\n */\n public List<String> getDatacenters();\n\n /**\n * Lists nodes in a given DC\n * @return\n */\n public List<Node> getNodes();\n\n /**\n * Lists services in a given DC\n */\n public Map<String, List<String>> getServices();\n\n /**\n * Lists the nodes in a given service\n * @return\n */\n public List<CatalogService> getService(String service);\n\n /**\n * Lists the services provided by a node\n */\n public CatalogNode getNode(String node);\n \n\n\n /**\n * Returns the health info of a node\n */\n public List<HealthCheck> getNodeChecks(String node);\n\n /**\n * Returns the checks of a service\n */\n public List<HealthCheck> getServiceChecks(String service);\n\n /**\n * Returns the nodes and health info of a service\n */\n public List<ServiceHealth> getServiceInstances(String service);\n\n /**\n * Returns the checks in a given state\n */\n public List<HealthCheck> getChecksByState(String state);\n\n}", "boolean hasHasMicroService();", "public interface AddressbookService extends Service, Addressbook\n{\n /**\n * Liefert die Liste aller gefundenen Adressbuecher.\n * @return Liste der Adressbuecher.\n * Die Funktion liefert niemals <code>null</code> und auch\n * nie ein leeres Array. Denn da <code>AddressbookService</code>\n * selbst ebenfalls das <code>Addressbook</code>-Interface\n * implementiert, wird mindestens dieses zurueckgeliefert.\n * Allerdings wuerde es in diesem Fall keine Adressen finden,\n * da ja keine tatsaechlichen \"Backend\"-Adressbuecher existieren.\n * Zumindest das Hibiscus-eigene Adressbuch sollte aber immer\n * enthalten sein. \n * @throws RemoteException\n */\n public Addressbook[] getAddressbooks() throws RemoteException;\n \n /**\n * Liefert true, wenn neben dem Hibiscus-eigenen Adressbuch noch weitere gefunden wurden.\n * In diesem Fall koennte dem Benutzer z.Bsp. ein Auswahl-Dialog\n * angezeigt werden, in dem er das gewuenschte Adressbuch auswaehlen kann.\n * @return true, wenn weitere Adressbuecher existieren.\n * @throws RemoteException\n */\n public boolean hasExternalAddressbooks() throws RemoteException;\n}", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "public boolean hasService() {\n return service_ != null;\n }", "private boolean isInService() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean\");\n }" ]
[ "0.74964106", "0.7455864", "0.73583156", "0.696889", "0.66816175", "0.6570643", "0.65027255", "0.6434412", "0.6430886", "0.62930214", "0.624586", "0.6235703", "0.61639947", "0.61639947", "0.61639947", "0.61639947", "0.61639947", "0.6159094", "0.6149846", "0.6115359", "0.6115359", "0.60947317", "0.602338", "0.60141504", "0.60141504", "0.60123295", "0.59988254", "0.59702903", "0.59689873", "0.5960373", "0.59500456", "0.5944656", "0.5931516", "0.5925242", "0.59232885", "0.5896494", "0.5896494", "0.58478475", "0.5840571", "0.5840571", "0.5840571", "0.58362633", "0.5821631", "0.5812832", "0.5803766", "0.58013785", "0.5790436", "0.57761985", "0.5770252", "0.5763582", "0.574743", "0.57328373", "0.5720084", "0.5719245", "0.5717214", "0.5702555", "0.57003987", "0.5693145", "0.56796557", "0.56796557", "0.5662286", "0.5646455", "0.5633828", "0.5631167", "0.5623999", "0.5616453", "0.5611136", "0.5607151", "0.56049657", "0.560448", "0.55910474", "0.55738693", "0.5560369", "0.554774", "0.55417454", "0.5533544", "0.55310315", "0.55310315", "0.5528787", "0.5528787", "0.5528787", "0.55204916", "0.5506115", "0.5504114", "0.549305", "0.5490448", "0.5482269", "0.5479037", "0.5470234", "0.5469891", "0.54682934", "0.5467412", "0.5464044", "0.54635775", "0.54598796", "0.54505605", "0.5445066", "0.5445066", "0.5445066", "0.54424673" ]
0.66054183
5
endregion region > loaded Whether this class has been loaded.
@Programmatic public boolean loaded(final Class<?> cls) { return loaded(cls.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLoaded() {\n\treturn loaded;\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "protected boolean isLoaded()\n {\n return m_fLoaded;\n }", "public boolean isLoaded(){return true;}", "public boolean isLoaded();", "public boolean isLoaded() {\n return loaded;\n }", "public boolean hasBeenLoaded () {\n return loaded;\n }", "boolean isLoaded();", "public boolean getLoaded()\n\t{\n\t\treturn loaded;\n\t}", "@Override\n\tprotected void isLoaded() throws Error {\n\t\t\n\t}", "@Override\n\tprotected void isLoaded() throws Error {\n\t\t\n\t}", "@Override\n\tprotected void isLoaded() throws Error \n\t{\n\t\t\n\t}", "public abstract void loaded();", "public boolean isLoaded() {\n\t\treturn lib != null;\n\t}", "public boolean isLoaded() {\n\t\treturn started;\n\t}", "public boolean isLoaded() {\n return _id != null;\n }", "public boolean isLoaded()\n {\n return m_syntheticKind == JCacheSyntheticKind.JCACHE_SYNTHETHIC_LOADED;\n }", "public boolean isLoaded() {\n return m_module.isLoaded();\n }", "protected void setLoaded(boolean loaded) {\n\tthis.loaded = loaded;\n }", "public boolean isFullyLoaded() {\n return fullyLoaded;\n }", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "public boolean isLoaded() {\n\t\treturn chestsLoaded;\r\n\t}", "public boolean isLoaded() \n\t{\n\t return htRecords != null ;\n\t}", "public synchronized boolean isLoaded() {\n\t\treturn _resourceData != null;\n\t}", "public void setLoaded();", "public void setLoaded(boolean loaded);", "public boolean isLoaded() {\n return parser != null;\n }", "public native int getLoaded() /*-{\n\t\treturn this.loaded;\n\t}-*/;", "public boolean shouldLoad() {\n return load;\n }", "public abstract boolean isLoadCompleted();", "@Override\r\n\tpublic void load() {\n\t}", "public boolean isAllLoaded() {\n return allLoaded;\n }", "private boolean isTextureLoaded() {\n return loaded;\n }", "public abstract boolean Load();", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "boolean isForceLoaded();", "protected void setLoaded(boolean fLoaded)\n {\n m_fLoaded = fLoaded;\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public void thePageIsLoaded() {\r\n this.page.isLoaded();\r\n }", "@Override\n public void load() {\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "public void load() {\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public boolean hasLoadedFile() {\n return isSuccessfulFileLoad;\n }", "public static boolean isLoaded() {\n\t\ttry {\n\t\t\tPlayer.getRSPlayer();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "public void load() {\n }", "public static void load() {\n }", "@Override\n public void load() {\n }", "@Override\r\n\tpublic boolean isPageLoaded() {\n\t\treturn false;\r\n\t}", "public boolean isDataLoaded() {\n\t\t\n\t\t return dataLoaded;\n\t }", "private static void load(){\n }", "public void load() {\n handleLoad(false, false);\n }", "protected final boolean loadMapping() {\r\n if (_loaded) { return false; }\r\n _loaded = true;\r\n return true;\r\n }", "protected void ensureLoaded()\n {\n if (!m_fLoaded)\n {\n if (m_abClazz != null)\n {\n ByteArrayInputStream streamRaw = new ByteArrayInputStream(m_abClazz);\n DataInput stream = new DataInputStream(streamRaw);\n try\n {\n disassemble(stream, m_pool);\n }\n catch (IOException e)\n {\n throw ensureRuntimeException(e);\n }\n }\n\n m_fLoaded = true;\n }\n }", "public boolean isLoaded(P player){\n return playerMap.containsKey(player);\n }", "public void onLoad() {\n\t}", "protected static boolean isInitialized(){\n return initialized;\n }", "@Override\n public boolean isInitialized(){\n return isInitialized;\n }", "public boolean hasLoaded(String filename)\n {\n return this.loadedFiles.containsKey(filename);\n }", "private boolean canLoadClass(ClassLoader loader, String className) {\n try {\n loader.loadClass(className);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "@Override\n\tprotected void isLoaded() throws Error {\n\t\tif (!isPageLoaded) {\n\t\t\tAssert.fail();\n\t\t}\n\t}", "public boolean initialized() {\n return true;\r\n }", "public boolean isScreenLoaded() \n\t{\n\t\treturn screenLoaded;\n\t}", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "public void load() ;", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "public boolean isInitialized() {\n\t\treturn initialized;\n\t}", "public boolean getOnLoadFlag() {\r\n\t\treturn onLoadFlag;\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public boolean isInitialized()\n {\n return initialized;\n }", "public static final boolean libraryLoaded(){\n return PS3_Library.loaded();\n }", "public boolean isLoadData() {\n return loadData;\n }", "public boolean isInitialized() {\r\n return initialized;\r\n }", "public void visitLoadClass(LoadClass o){\n\t\tObjectType t = o.getLoadClassType(cpg);\n\t\tif (t != null){// null means \"no class is loaded\"\n\t\t\tVerifier v = VerifierFactory.getVerifier(t.getClassName());\n\t\t\tVerificationResult vr = v.doPass2();\n\t\t\tif (vr.getStatus() != VerificationResult.VERIFIED_OK){\n\t\t\t\tconstraintViolated((Instruction) o, \"Class '\"+o.getLoadClassType(cpg).getClassName()+\"' is referenced, but cannot be loaded and resolved: '\"+vr+\"'.\");\n\t\t\t}\n\t\t}\n\t}", "public boolean isInitialized() {\n return initialized;\n }", "public boolean isLoadedFromDisk() {\n return isLoadedFromDisk;\n }", "public void onLoadComplete() {\n\t\t\r\n\t}", "public boolean isInitialized();", "public boolean isInitialized() {\n return initialized;\n }", "@Override\n\tprotected void lazyLoad() {\n\t}", "public abstract void load();", "boolean initialized();", "public boolean isInitialized()\n\t{\n\t\treturn isInitialized;\n\t}", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public boolean isFinishedLoading(){ return FINISHED_LOADING; }", "public void load();", "public void load();", "public interface Loader {\n\t\tpublic void load();\n\t}", "public static boolean instantiated() {\n\treturn (coreNLP != null);\n }", "public boolean load() {\n return load(Datastore.fetchDefaultService());\n }", "public boolean isInitialized()\n {\n return this.initialized;\n }", "public boolean wasInitialized()\n {\n return this.isInitialized;\n }", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "public void libraryLoaded();", "@Override\n public Boolean isLoading() {\n return loadingInProgress;\n }" ]
[ "0.8180116", "0.817552", "0.8000884", "0.7927884", "0.79263103", "0.7916421", "0.79094005", "0.78419936", "0.7821635", "0.75931305", "0.75931305", "0.7560352", "0.7490122", "0.7424615", "0.7423829", "0.7359797", "0.73391086", "0.7337997", "0.7283942", "0.72684693", "0.7257483", "0.7224367", "0.7196935", "0.71571517", "0.7122519", "0.7113569", "0.7094273", "0.7035775", "0.70209086", "0.69575804", "0.68230206", "0.6801197", "0.68005097", "0.6785012", "0.6783536", "0.6755632", "0.675249", "0.6710263", "0.6703031", "0.66989464", "0.66894", "0.66894", "0.66894", "0.66846853", "0.66728795", "0.66696334", "0.66696334", "0.6657151", "0.6602053", "0.659699", "0.6590975", "0.65477437", "0.6530099", "0.65026915", "0.648127", "0.64771336", "0.64392954", "0.6433522", "0.6427417", "0.6419557", "0.6407939", "0.6400741", "0.63237727", "0.6316109", "0.63100004", "0.6292292", "0.6289835", "0.62820846", "0.6278473", "0.6273112", "0.6265763", "0.62403196", "0.62343943", "0.6217099", "0.6212274", "0.6209413", "0.6204833", "0.6184678", "0.6169745", "0.61603504", "0.61583805", "0.6156282", "0.61560106", "0.61490905", "0.6145764", "0.6137141", "0.61083156", "0.61046225", "0.6093886", "0.6081224", "0.60807455", "0.60807455", "0.6074374", "0.6066381", "0.6061769", "0.6056674", "0.60529816", "0.60516095", "0.6048312", "0.6038073" ]
0.7166958
23
endregion region > lookupBySpecId
@Programmatic public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) { if(!cache.isInitialized()) { throw new IllegalStateException("Internal cache not yet initialized"); } final ObjectSpecification objectSpecification = cache.getByObjectType(objectSpecId); if(objectSpecification == null) { // fallback return loadSpecification(objectSpecId.asString(), IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED); } return objectSpecification; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookup(String id) {\n return null;\n }", "public Part lookupPart(int partId) {\n for( Part part : allParts ) {\n if(part.getId() == partId) {\n return part;\n }\n }\n return null;\n }", "public Part lookupPart(int partId) {\n for(Part part : allParts) {\n if(part.getId() == partId) {\n return part;\n }\n }\n \n return null;\n }", "public Lookup findLookup(String code, String lookupGroup, long lookupParentId);", "E find(final ID identifier) throws ResourceNotFoundException;", "String getLookupKey();", "public void lookup(Id id, long version, Continuation command);", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "public Docmentory getbyid(Docmentory docmentory) {\n\treturn mapper.getbyid(docmentory);\r\n}", "public V lookup(K key);", "public List<ModelWOChdListCustom>findSpecificationById(Long specificationId);", "public static Part lookupPart(int partId) {\n for (int index = 0; index < Inventory.getAllParts().size(); index++) {\n Part currentPart = Inventory.getAllParts().get(index);\n if (currentPart.getId() == partId) {\n return currentPart;\n }\n }\n return null;\n }", "public ServiceSpecification retrieveServiceSpec(String specid) {\r\n\t\tlogger.info(\"will retrieve Service Specification from catalog orderid=\" + specid );\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICESPEC_BY_ID, specid);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service Specification object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tServiceSpecification sor = toJsonObj( (String)response, ServiceSpecification.class); \r\n\t\t\t//logger.debug(\"retrieveSpec response is: \" + response);\r\n\t\t\treturn sor;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service Specification details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected final E getType(UUID id) throws NoSuchIdException {\n\t\tE entry = dict.get(id);\n\t\tif (entry != null) {\n\t\t\treturn entry;\n\t\t} else {\n\t\t\tthrow new NoSuchIdException(\"Unknown specification id '\"\n\t\t\t\t\t+ id.toString() + \"'\");\n\t\t}\n\t}", "protected abstract E get(S spec);", "protected abstract String getId(String description);", "@Override\n\tpublic Artist findByKey(Integer id) {\n\t\treturn null;\n\t}", "ReferenceData findById(ReferenceDataId id) throws DataException;", "public NetElement lookupNetElement(String id);", "AppStandard selectById(String id);", "String idProvider();", "@SneakyThrows\n @Override\n public DeveloperSkill findByID(Long id) {\n return null; //parse.get(Math.toIntExact(id));\n }", "public interface ResIdResolver {\n /**\n * @param type type\n * @return ID value for type\n * @throws MissingParameter if ID value cannot be resolved\n */\n public String idForType(String type) throws MissingParameter;\n\n /**\n * @param type resource type\n * @return ID value for type\n */\n public Optional<String> idForTypeOptional(String type);\n}", "public void testResolveByIDInExplicitMap() throws Exception {\n\n String id2 = \"test2-occ_2\";\n super.checkResolveByIDInMap(id2,tm2);\n // assert that the object returned is \n // a occurrence and that it is the one expected\n assertEquals(id2, tag.getOccurrence().getID());\n \n }", "Concept getConcept(String id);", "@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String selectgoodsSpecById(Integer id) {\n\t\treturn orderMapper.selectgoodsSpecById(id);\n\t}", "public abstract ArrayList<T> findFromReference(int id);", "V get(K id);", "private ResourceLocation findMatchingEntry(String publicId) {\n return getElements().stream()\n .filter(e -> e.getPublicId().equals(publicId)).findFirst()\n .orElse(null);\n }", "void checkNotFound(Integer id);", "Object find(String name);", "private PropertyDescriptor locatePropertyDescriptor(Set<PropertyDescriptor> propertyDescriptors, PropertyDescriptor specDescriptor) {\n for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {\n if (propertyDescriptor.equals(specDescriptor)) {\n return propertyDescriptor;\n }\n }\n return specDescriptor;\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "private Identifier resolve(Identifier id, String field) throws NotFound, UnrecoverableException, RetryableException {\n \n logger.debug(task.taskLabel() + \" entering resolve...\");\n try {\n ObjectLocationList oll = ((CNRead)nodeCommunications.getCnRead()).resolve(session, id);\n if (logger.isDebugEnabled()) \n logger.debug(task.taskLabel() + String.format(\" %s %s exists on the CN.\", field, id.getValue()));\n return oll.getIdentifier();\n\n } catch (NotFound ex) {\n // assume if identifierReservationService has thrown NotFound exception SystemMetadata does not exist\n if (logger.isDebugEnabled()) \n logger.debug(task.taskLabel() + String.format(\" %s %s does not exist on the CN.\", field, id.getValue()));\n throw ex;\n \n } catch (ServiceFailure e) {\n V2TransferObjectTask.extractRetryableException(e);\n throw new UnrecoverableException(\"Unexpected Exception from CN /resolve !\" + e.getDescription(), e);\n\n } catch ( NotImplemented | InvalidToken | NotAuthorized e) {\n throw new UnrecoverableException(\"Unexpected Exception from CN /resolve ! \" + e.getDescription(), e);\n }\n }", "List<SysId> selectByExample(SysIdExample example);", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "private static Parts findPart(String part_id, Data dat) {\r\n\t\tfor (Parts part : dat.getParts_list()) {\r\n\t\t\tif (part.getId().equalsIgnoreCase(part_id)) {\r\n\t\t\t\treturn part;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public abstract boolean lookup(Key key);", "public Object lookup(int par1)\n {\n int j = computeHash(par1);\n\n for (IntHashMapEntry inthashmapentry = this.slots[getSlotIndex(j, this.slots.length)]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n return inthashmapentry.valueEntry;\n }\n }\n\n return null;\n }", "public interface IStatusIdFinder {\r\n\t\r\n\t/**\r\n\t * Gets the status ID.\r\n\t * @param object status ID key\r\n\t * @return status ID\r\n\t */\r\n\tpublic String getStatusId(Object object);\r\n\r\n}", "public int find(int p) {\r\n return id[p];\r\n }", "@Override\r\n\tpublic CodeRangeDis findById(String id) {\n\t\treturn codeRangeDisMapper.findById(id);\r\n\t}", "public void dbLookupById(EdaContext xContext) throws IcofException{\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetLookupIdStatement(xContext);\n\n\t\ttry {\n\t\t\tgetStatement().setLong(1, getId());\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbLookupById()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! selectSingleRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbLookupById()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to find row for query.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t}", "SysId selectByPrimaryKey(String id);", "HelpInfo selectByPrimaryKey(Integer hId);", "private SymbolTableItem resolveFromImports(String id) {\n ListIterator<Imported> i = imports.listIterator(imports.size());\n while(i.hasPrevious()) {\n Imported item = i.previous();\n if (item.fullNamesOnly == false || item.fullNamesOnly && id.startsWith(item.table.unitName)) {\n SymbolTableItem resolved = item.table.resolveImmediateOnly(id);\n if (resolved != null && \n (resolved.desc.visibility == SymbolVisibility.PUBLIC ||\n (resolved.desc.visibility == SymbolVisibility.PROTECTED &&\n item.table.parentNamespace.equals(parentNamespace))))\n return resolved;\n }\n }\n return null;\n }", "public Data findById(Object id);", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "SysCode selectByPrimaryKey(String id);", "public interface HealthBlockRecordsDataService extends MotechDataService<HealthBlock> {\n\n /**\n * finds the Health Block details by its parent code\n *\n * @param stateCode\n * @param districtCode\n * @param talukaCode\n * @param healthBlockCode\n * @return HealthBlock\n */\n @Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);\n\n}", "public E lookup(String var) throws IOException {\n E exp = get(var);\n if (exp != null) {\n return get(var);\n } else {\n throw new IOException(\"Exception ( VarID = \" + var + \") : Le VarId n'a pas été défini\");\n }\n }", "@Test\n\tpublic void useExtractedDriverId() {\n\t\t\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\tand().\n\t\t\tpathParam(\"driverId\",ninthDriverId).\n\t\twhen().\n\t\t\tget(\"/drivers/{driverId}.json\").\n\t\tthen().\n\t\t\tassertThat().\n\t\t\tbody(\"MRData.DriverTable.Drivers[0].nationality\", equalTo(\"German\"));\n\t}", "@Override\n\tpublic Listing findById(int theId) {\n\t\tOptional<Listing> result = theListingRepo.findById(theId);\n\t\tListing theListing= null;\n\t\tif (result.isPresent()) {\n\t\t\ttheListing = result.get();\n\t\t\t}\n\t\t\telse {\n\t\t\t// we didn't find the employee\t\t\t\t\t\n\t\t\tthrow new RuntimeException(\"Did not find Lisitng id - \" + theId);\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\treturn theListing;\t\t\t\t\n\t}", "public Object lookupConfigurationEntry(String key);", "SyncRecord findObject(String name, int type) throws NotFoundException\r\n\t{\r\n\t\tfor (int i=0; i<syncTable.size(); i++)\r\n\t\t{\r\n\t\t\tSyncRecord myrec = (SyncRecord)syncTable.elementAt(i);\r\n\t\t\tif ((myrec.name).equals(name) && (myrec.type)==type)\r\n\t\t\t\treturn myrec;\r\n\t\t}\r\n\t\tthrow new NotFoundException();\r\n\t}", "public String getNamedId();", "@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}", "Persistent getResolved(Map id) {\n return resolved.get(id);\n }", "E findById(K id);", "<T> T findById(String typeName, String id, Class<T> clazz);", "public TicketRes searchById(int num){\n Optional<Ticket> ticketOpt=ticketRepository.findById(num);\n Ticket ticket;\n if(ticketOpt.isPresent())\n ticket=ticketOpt.get();\n else\n throw new NoSuchElementException(\"ticket avec num (\"+num+\") introuvable ;\");\n\n return mapp.map(ticket,TicketRes.class);\n\n }", "org.hl7.fhir.Identifier getIdentifier();", "public abstract T findByID(ID id) ;", "public void testGetObjectSpecificationWithNotFoundIdentifier() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"key\", \"identifier2\");\r\n fail(\"UnknownReferenceException is expected.\");\r\n } catch (UnknownReferenceException e) {\r\n // ok\r\n }\r\n }", "public So_cdVO getById(String so_cd);", "String get(String id);", "protected abstract Object doLocalLookup( Name name )\n throws NamingException;", "protected final int internalFind(int paramInt)\n/* */ {\n/* 200 */ int i = computeSlot(paramInt);\n/* 201 */ while (this.m_flagTable[i] != false) {\n/* 202 */ if (paramInt == this.m_keyTable[i]) {\n/* 203 */ return i;\n/* */ }\n/* 205 */ i = stepSlot(i);\n/* */ }\n/* 207 */ return -i - 1;\n/* */ }", "AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}", "Object get(ID id) throws Exception;", "T getbyId(I id);", "public Product lookupProduct(int productId) {\n for( Product product : allProducts ) {\n if(product.getId() == productId) {\n return product;\n }\n }\n return null;\n }", "public String lookup( String lfn, String handle ) {\n String result = null;\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n\n if( (result = catalog.lookup( lfn, handle )) != null ){\n return result;\n }\n }\n return result;\n\n }", "T findById(ID id) ;", "Optional<V> lookup(K k);", "@Test\n\tpublic void findById() {\n\t\tICallsService iCallsService = new CallsServiceImpl(new ArrayList<>());\n\t\tiCallsService.addCallReceived(new Call(1l));\n\t\tAssert.assertTrue(1l == iCallsService.findById(1l).getId().longValue());\n\t}", "private InputSource urlLookup(ResourceLocation matchingEntry) {\n\n String uri = matchingEntry.getLocation();\n URL baseURL;\n\n //\n // The ResourceLocation may specify a relative url for its\n // location attribute. This is resolved using the appropriate\n // base.\n //\n if (matchingEntry.getBase() != null) {\n baseURL = matchingEntry.getBase();\n } else {\n try {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } catch (MalformedURLException ex) {\n throw new BuildException(\"Project basedir cannot be converted to a URL\");\n }\n }\n\n URL url;\n\n try {\n url = new URL(baseURL, uri);\n } catch (MalformedURLException ex) {\n url = null;\n }\n\n InputSource source = null;\n if (url != null) {\n try {\n InputStream is = null;\n URLConnection conn = url.openConnection();\n if (conn != null) {\n conn.setUseCaches(false);\n is = conn.getInputStream();\n }\n if (is != null) {\n source = new InputSource(is);\n String sysid = url.toExternalForm();\n source.setSystemId(sysid);\n log(\"catalog entry matched as a URL: '\"\n + sysid + \"'\", Project.MSG_DEBUG);\n }\n } catch (IOException ex) {\n // ignore\n }\n }\n\n return source;\n\n }", "public void testResolveByID() throws Exception {\n\n String id = \"occ_pollux\";\n super.checkResolveByID(id);\n // assert that the object returned is \n // a occurrence and that it is the one expected\n assertEquals(id, tag.getOccurrence().getID());\n \n }", "String getSlingId();", "public abstract T byId(ID id);", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }" ]
[ "0.6504341", "0.6210124", "0.6160202", "0.59529865", "0.5894553", "0.5893515", "0.57377785", "0.5672964", "0.5589469", "0.55742866", "0.55661315", "0.5548098", "0.55424726", "0.55137277", "0.55064094", "0.55046076", "0.55021036", "0.5490127", "0.542422", "0.5413824", "0.5395486", "0.5393812", "0.5362563", "0.5353166", "0.5351405", "0.53506804", "0.53431815", "0.5339462", "0.5323637", "0.53234696", "0.5318765", "0.5304778", "0.5283919", "0.5281628", "0.5280808", "0.5278225", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52773124", "0.52682364", "0.5266502", "0.5262413", "0.52593327", "0.52579194", "0.5255867", "0.5254879", "0.52473074", "0.5245971", "0.5243119", "0.5242884", "0.52395624", "0.52292234", "0.5213076", "0.5210054", "0.5205733", "0.5197758", "0.518269", "0.51811343", "0.51786894", "0.51781416", "0.51777434", "0.5177041", "0.51745707", "0.5171367", "0.5169469", "0.5169025", "0.51672643", "0.51628155", "0.5160048", "0.51570153", "0.5149699", "0.5148623", "0.5147406", "0.51454186", "0.5137047", "0.51327467", "0.51296234", "0.5128855", "0.51285845", "0.51268333", "0.5123943", "0.5112793", "0.5111688", "0.5111039" ]
0.6862247
0
legt eine neue Steuerrate fest
public Steuer(int owner, int rate, int faction) { this.owner = owner; this.rate = rate; this.faction = faction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "void berechneFlaeche() {\n\t}", "public void sendeSpielfeld();", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n public void salir() {\n }", "public void trenneVerbindung();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "@Override\n public void perish() {\n \n }", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}", "public void validerSaisie();", "@Override\n public int getSalida() {\n return 0;\n }", "public void sendeFehlerHelo();", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public void Exterior() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n System.out.println(\"Wohin m�chten Sie gehen?\");\n return;\n }else if(spieler.getAktuellerZustand().toString().equals(\"Bewegungsunf�hig\")) {\n \tSystem.out.println(\"Sie sind bewegungsunf�hig und m�ssen sich heilen bevor sie weiter k�nnen\");\n \treturn;\n }\n\n String richtung = befehl.gibZweitesWort();\n\n // Wir versuchen den Raum zu verlassen.\n Raum naechsterRaum = spieler.getAktuellerRaum().getAusgang(richtung);\n\n if (naechsterRaum == null) {\n System.out.println(\"Dort ist keine T�r!\");\n }\n else {\n \tif(naechsterRaum.getClass().getName().equals(\"Level.Teleporter\")) {\n \t\tspieler.setAktuellerRaum(landkarte.getZufaelligenRaum());\n \t\tSystem.out.println(\"Du wurdest Teleportiert\");\n \t}else {\n \t\t spieler.setAktuellerRaum(naechsterRaum);\n \t}\n\n \trauminfoAusgeben();\n }\n }", "@Override\n\tprotected String getSalirForward() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void sendeBeenden();", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public abstract Koordinate schuss();", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "private UsineJoueur() {}", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic double aumentarSueldo() {\n\t\treturn 0;\r\n\t}", "public void stg() {\n\n\t}", "public void mo1972o() throws cf {\r\n }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public void sendeSpielerWeg(String spieler);", "public void sendeNeuerSpieler(String spieler);", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void sinyal();", "void Vorrücken()\n {\n }", "public Husdjurshotell(){}", "@Override\n\tpublic void e() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "public int storrelse(){\n return elementer;\n }", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}", "public int storrelse();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "protected void aktualisierenFirst() {\r\n\t\taktualisieren();\r\n\t\tfarbeSetzen(\"Weiss\");\r\n\t}", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void asetaTeksti(){\n }", "@Override\n public void date()\n {\n }", "void invalid() {\n\t\tSystem.out.println(\"falsche Eingabe...\");\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public Empfänger() {\t\t\t\t\t// std. Konstruktor\r\n\t\t}", "private void poetries() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "void entrerAuGarage();", "@Override\n public void function()\n {\n }" ]
[ "0.6722655", "0.67072386", "0.6655088", "0.65334517", "0.65075475", "0.6488783", "0.64497703", "0.62828296", "0.6261129", "0.6212622", "0.61951685", "0.6180119", "0.61783236", "0.61671716", "0.61668473", "0.6151114", "0.6150734", "0.6118314", "0.6114196", "0.6053211", "0.6045088", "0.60396", "0.60193104", "0.6016719", "0.6009368", "0.60014766", "0.6001162", "0.5995116", "0.5948081", "0.59298337", "0.592477", "0.5921565", "0.59117377", "0.5873289", "0.5862063", "0.5835777", "0.582805", "0.5820152", "0.581836", "0.57864493", "0.5779244", "0.5756431", "0.57414794", "0.57337666", "0.571817", "0.57121766", "0.5709116", "0.5699107", "0.56863606", "0.5686046", "0.568128", "0.56804246", "0.56792986", "0.56723064", "0.5669346", "0.5664108", "0.5663614", "0.5663315", "0.56525785", "0.5649547", "0.5646201", "0.56459934", "0.5639158", "0.56292844", "0.5628919", "0.56270957", "0.56258947", "0.5621965", "0.56203914", "0.56128013", "0.56127656", "0.5605844", "0.5602516", "0.56020504", "0.5598252", "0.5594436", "0.5594288", "0.55878973", "0.55833346", "0.55791944", "0.557816", "0.55700463", "0.5559422", "0.55502003", "0.553175", "0.5530607", "0.5530092", "0.55269456", "0.55265415", "0.55232817", "0.55222064", "0.5519926", "0.5518577", "0.55165213", "0.55164796", "0.55162734", "0.55069566", "0.55059797", "0.5497806", "0.54954803", "0.54945856" ]
0.0
-1
diese Partei legt die Rate fest
public void setOwner(int owner) { this.owner = owner; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getRate();", "public float getRate(){\r\n return rate;\r\n }", "public void sendeRate(String spieler);", "double getTransRate();", "public void setRate(int rate) { this.rate = rate; }", "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}", "public int getRate() {\n return rate_;\n }", "public double getRate() {\n return rate;\n }", "public double getRate() {\n return rate;\n }", "int getMortgageRate();", "public void setRate();", "public Integer getRate() {\r\n return rate;\r\n }", "public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}", "public int getRate() {\n return rate_;\n }", "public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}", "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "public double getRate() {\n\t\treturn rate;\n\t}", "@Override protected double convertRate(double rate) {\n return super.convertRate(rate);\n }", "@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}", "public float getRate() {\n\t\treturn rate;\n\t}", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "public Rate rate() {\n _initialize();\n return rate;\n }", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public int getChargeRate();", "public abstract void setRate();", "@Override\n\t\tpublic double getSlipRate() {\n\t\t\treturn 0;\n\t\t}", "public double calculateRate() {\n\t\tdouble rate = 0;\n\t\tfor (int i = 0; i < upgrades.size(); i++) {\n\t\t\trate += upgrades.get(i).getProduction();\n\t\t}\n\t\tbrain.setRate(rate);\n\t\treturn rate;\n\t}", "double calculateRate(Temperature temperature, double Hrxn);", "public DepreciatingPolicy(float amount, float rate){\r\n super(amount);\r\n this.rate = rate*100;\r\n }", "protected abstract Double getRate(T object);", "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "public double pay(){\n\t\treturn payRate;\n\t}", "@Override\r\n\tpublic double basicRates() {\r\n\t\tdouble length = GPScoordinates.distance(getStartingPoint(), getDestinationPoint());\r\n\t\tif(length < 5) {\r\n\t\t\treturn 6.2;\r\n\t\t}else if(length >=5 && length <10) {\r\n\t\t\treturn 5.5;\r\n\t\t}else if (length >=10 && length <20) {\r\n\t\t\treturn 3.25;\r\n\t\t}else {\r\n\t\t\treturn 2.6;\r\n\t\t}\r\n\t}", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public int getCustomInformationTransferRate();", "int getSmpRate();", "public void updateRate(double r){\r\n rate *= r;\r\n }", "abstract double calculateCurrentDiscountRate();", "float getVacationAccrualRate();", "public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}", "protected InterestRate() {\n\t}", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "protected double getDataRate() {\n\t\treturn (double) getThroughput() / (double) getElapsedTime();\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void InterestRate() {\n\t\t\tSystem.out.println(\"9 percent\");\n\t\t}", "public static double getRate(){\r\n Scanner s = new Scanner(System.in);\r\n double rate;\r\n do{\r\n System.out.print(\"Enter the current prime interest rate: \");\r\n rate = parseDouble(s.next());\r\n rate = rate * 0.01;\r\n }while(rate == -1);\r\n System.out.println(\"---------------------------------------------\");\r\n return rate;\r\n }", "public abstract double getDiscountRate();", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=30-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "static double chooseRate(String selectedRate){\n JsonObject listRates = conversionRates.get(\"rates\").getAsJsonObject();\n return listRates.get(selectedRate).getAsDouble();\n\n }", "public double getInterest(){return this.interest_rate;}", "public double tradeRate()\n\t{\n\t\treturn _dblTradeRate;\n\t}", "double getPerimetro();", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=20-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "private Double calculateRate(TSDBData tsdbData) {\n logger.trace(\"BEGIN Double calculateRate(TSDBData tsdbData)\");\n int rateIndex;\n int rateDataPoints;\n Double rate = 0.0;\n ArrayList dataPointsArray;\n\n rateIndex = tsdbData.getColumns().indexOf(\"rate\");\n rateDataPoints = tsdbData.getPoints().size();\n for (int i = 0; i < tsdbData.getPoints().size(); i++) {\n dataPointsArray = tsdbData.getPoints().get(i);\n rate = rate + Double.parseDouble(dataPointsArray.get(rateIndex) + \"\");\n }\n logger.trace(\"DATA Double calculateRate(TSDBData tsdbData): rate=\" + rate);\n rate = rate / tsdbData.getPoints().size();\n logger.trace(\"END Double calculateRate(TSDBData tsdbData)\");\n return rate;\n }", "Rate initRate(Rate iRate)\n {\n iRate.updateElementValue(\"Rate\");\n return iRate;\n }", "@Override\n\tpublic double calculsalaire() {\n\t\treturn 1500 + nbY*20;\n\t}", "public Double getReturnRate() {\r\n return returnRate;\r\n }", "Rate save(Rate u);", "public int getThisDataRate(){\r\n\t\tString option = (String) comboBox.getSelectedItem();\r\n\t\tif (option.equals(\"250kbs\")){\r\n\t\t\tdataRate = 0;\r\n\t\t}else if(option.equals(\"1mbs\")){\r\n\t\t\tdataRate = 1;\r\n\t\t}else{\r\n\t\t\tdataRate = 2;\r\n\t\t}\r\n\t\treturn dataRate;\r\n\t}", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=50-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "private double calculatePer(double currentRate, Map<String, String> earningsPerShare) {\n double current = parseToDoubleOrZero(earningsPerShare.get(fundamentalData.getCurrentYear()).replace(\",\", \".\"));\n return currentRate / current;\n }", "public abstract double getPreis();", "@Override\n public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }", "double requestCurrentRate(String fromCurrency,\n String toCurrency);", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "@Override\n\tpublic double calculateRate(int distance, double weight) {\n\t\tdouble rate = 0;\n\t\tif (weight >= 0 && weight <= 2) {\n\t\t\trate = 0.0020;\n\t\t\trate = rate * distance;\n\n\t\t} else if (weight >= 3 && weight <= 8) {\n\t\t\trate = 0.0022;\n\t\t\trate = rate * distance;\n\t\t} else if (weight >= 9 && weight <= 15) {\n\t\t\trate = 0.0024;\n\t\t\treturn rate * distance;\n\t\t}\n\t\tif (weight >= 1*16 && weight <= 3*16) {\n\t\t\trate = 0.0150 * distance;\n\t\t} else if (weight >= 4*16 && weight <= 8*16) {\n\t\t\trate = 0.0160 * distance;\n\t\t} else if (weight >= 9 * 16) {\n\t\t\trate = 0.0170 * distance;\n\t\t}\n\n\t\treturn rate;\n\t}", "public double getReturnRate() {\n return returnRate;\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public double getInterestRate(){\n return interestRate;\n }", "public abstract float perimetro();", "@Override\n\tpublic double perimetro() {\n\t\treturn 0;\n\t}", "protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}", "@Override\r\n\tpublic double recargoImpuesto() {\n\t\treturn 0.03;\r\n\t}", "@Override\n\tpublic double calcSimple(double amt, int year, float rate) {\n\t\tdouble si = amt * year * rate / 100.0;\n\t\treturn si;\n\t}", "public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "protected double getPaymentRate() {\n\t\tdouble rate = 0;\n\n\t\tfor (PayloadBuilderSet set : sets) {\n\t\t\tif (set.isActive())\n\t\t\t\trate += set.getPaymentRate();\n\t\t}\n\n\t\treturn rate;\n\t}", "public static double getValue(Exchange exchange, String name) {\n\n double rate = -1.0;\n\n switch (name) {\n case \"AUD\":\n rate = exchange.getRates().getAUD();\n break;\n case \"BGN\":\n rate = exchange.getRates().getBGN();\n break;\n case \"BRL\":\n rate = exchange.getRates().getBRL();\n break;\n case \"CAD\":\n rate = exchange.getRates().getCAD();\n break;\n case \"CHF\":\n rate = exchange.getRates().getCHF();\n break;\n case \"CNY\":\n rate = exchange.getRates().getCNY();\n break;\n case \"CZK\":\n rate = exchange.getRates().getCZK();\n break;\n case \"DKK\":\n rate = exchange.getRates().getDKK();\n break;\n case \"GBP\":\n rate = exchange.getRates().getGBP();\n break;\n case \"HKD\":\n rate = exchange.getRates().getHKD();\n break;\n case \"HRK\":\n rate = exchange.getRates().getHRK();\n break;\n case \"HUF\":\n rate = exchange.getRates().getHUF();\n break;\n case \"IDR\":\n rate = exchange.getRates().getIDR();\n break;\n case \"ILS\":\n rate = exchange.getRates().getILS();\n break;\n case \"INR\":\n rate = exchange.getRates().getINR();\n break;\n case \"JPY\":\n rate = exchange.getRates().getJPY();\n break;\n case \"KRW\":\n rate = exchange.getRates().getKRW();\n break;\n case \"MXN\":\n rate = exchange.getRates().getMXN();\n break;\n case \"MYR\":\n rate = exchange.getRates().getMYR();\n break;\n case \"NOK\":\n rate = exchange.getRates().getNOK();\n break;\n case \"NZD\":\n rate = exchange.getRates().getNZD();\n break;\n case \"PHP\":\n rate = exchange.getRates().getPHP();\n break;\n case \"PLN\":\n rate = exchange.getRates().getPLN();\n break;\n case \"RON\":\n rate = exchange.getRates().getRON();\n break;\n case \"RUB\":\n rate = exchange.getRates().getRUB();\n break;\n case \"SEK\":\n rate = exchange.getRates().getSEK();\n break;\n case \"SGD\":\n rate = exchange.getRates().getSGD();\n break;\n case \"THB\":\n rate = exchange.getRates().getTHB();\n break;\n case \"TRY\":\n rate = exchange.getRates().getTRY();\n break;\n case \"ZAR\":\n rate = exchange.getRates().getZAR();\n break;\n case \"EUR\":\n rate = exchange.getRates().getEUR();\n break;\n case \"USD\":\n rate = exchange.getRates().getUSD();\n break;\n default:\n break;\n }\n\n return rate;\n }", "public static double getInterestRate(){\n\t\t return interest_rate;\r\n\t }", "@Override\n public double tuition(){\n return 2500;\n }", "@Override\n\tint getRateOfInterest() {\n\t\treturn 7;\n\t}", "public float getlatestrate(String selection,String item) throws SQLException\n {\n // int stock_rate[]= new int [2];\n PreparedStatement remaining_stock = conn.prepareStatement(\"Select latest_rate from purchases where Categroy=? and Item=? \");\n remaining_stock.setString(1, selection);\n remaining_stock.setString(2, item);\n ResultSet remaining_stock_rows = remaining_stock.executeQuery(); \n \n float rate=0;\n while(remaining_stock_rows.next()) \n {\n \n rate=Float.parseFloat(remaining_stock_rows.getString(1));\n \n }\n return rate;\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}", "@Override\r\n\tpublic double rideFare() {\r\n\t\tdouble trafficRate = 1;\r\n\t\tswitch(this.getTrafficKind()) {\r\n\t\t case Low:\r\n\t\t\ttrafficRate = 1;break;\r\n\t\t\tcase Medium:\r\n\t\t\t\ttrafficRate = 1.1;break;\r\n\t\t\tcase High:\r\n\t\t\t\ttrafficRate = 1.5;break;\r\n\t\t}\r\n\t\tdouble basicRate = 0;\r\n\t\tif (this.getLength() <5) { \r\n\t\t\tbasicRate = 3.3;\r\n\t\t} else if (10 > this.getLength()){\r\n\t\t\tbasicRate = 4.2;\r\n\t\t} else if (this.getLength() <20){\r\n\t\t\tbasicRate = 1.91;\r\n\t\t} else {\r\n\t\t\tbasicRate = 1.5;\r\n\t\t}\r\n\t\t\r\n\t\treturn basicRate * trafficRate * this.getLength();\r\n\t}", "public static double getXoRate() {\n\t\treturn xoRate;\n\t}", "public String getRegularRate() {\n return regularRate;\n }", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "public interface IRate {\n\t\n\t//writing the class outline\n\tpublic void setRate();\n\tpublic void increaseRate();\n}", "private static int chargeRate(Thing b, Thing s) {\n \t\tint rate=b.getStat(\"WP\");\r\n \t\t\r\n \t\t// bonus for appropraite recharge skill\r\n \t\trate=rate*(1+b.getStat(rechargeSkill(s)));\r\n \t\t\r\n \t\t// spell specific charge rate\r\n \t\t// default is 100\r\n \t\trate=(rate*s.getStat(\"ChargeRate\"));\r\n \t\t\r\n \t\t// more costly spells take longer to recharge\r\n \t\trate=rate/s.getStat(\"SpellCost\");\r\n \t\t\r\n \t\tif (rate<=0) {\r\n \t\t\tGame.warn(\"Spell.chargeRate(...)==0 for \"+s.name());\r\n \t\t}\r\n \t\t\r\n \t\treturn rate;\r\n \t}", "void printRate(Rate iRate)\n {\n System.out.println(iRate.getElementValue());\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public double getPercepcion(){\n return localPercepcion;\n }", "float getPreGain();", "public int getMoveRate() {\n return moveRate;\r\n }", "private float getRefreshRate() {\n return 1;\n }", "public void calculatePF() {\r\n\t\tfloat pfRate = 10.5f;\r\n\t\tSystem.out.println(\"The PF rate of the employee is \"+pfRate);\r\n\t\tdisplay();\r\n\t}" ]
[ "0.7872481", "0.74552584", "0.7290948", "0.7240544", "0.72045183", "0.7157025", "0.7129507", "0.71116877", "0.7103335", "0.7103335", "0.70614123", "0.7015791", "0.70103705", "0.70069295", "0.69440246", "0.6921845", "0.6892809", "0.6886404", "0.6845438", "0.6834227", "0.6826681", "0.6733291", "0.6690159", "0.66375184", "0.6615995", "0.6580587", "0.6573321", "0.6494622", "0.64905596", "0.64675015", "0.6455277", "0.64351046", "0.63975406", "0.6387647", "0.6372028", "0.63578796", "0.63496697", "0.634908", "0.6346863", "0.63275135", "0.63206697", "0.63199687", "0.6316525", "0.631089", "0.6292491", "0.62880236", "0.62778145", "0.6275128", "0.6258313", "0.622724", "0.62129414", "0.61875653", "0.61868227", "0.61812806", "0.6180588", "0.6175456", "0.617281", "0.6167241", "0.61630815", "0.6139425", "0.6137807", "0.6136658", "0.6132107", "0.6130542", "0.61119986", "0.610713", "0.60794383", "0.60735875", "0.6051914", "0.60514534", "0.60462004", "0.6035346", "0.60339075", "0.6030783", "0.60235494", "0.6020912", "0.60181487", "0.60161144", "0.6014931", "0.5994195", "0.5990213", "0.5979181", "0.5970217", "0.59618795", "0.59585774", "0.5952831", "0.5934854", "0.5932753", "0.59269273", "0.5926377", "0.59224194", "0.591777", "0.59044904", "0.5903618", "0.5899332", "0.58946", "0.58844453", "0.5883092", "0.58808887", "0.58749384", "0.58672136" ]
0.0
-1
diese Steuerrate wird verlangt
public void setRate(int rate) { this.rate = rate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n System.out.println(\"Wohin m�chten Sie gehen?\");\n return;\n }else if(spieler.getAktuellerZustand().toString().equals(\"Bewegungsunf�hig\")) {\n \tSystem.out.println(\"Sie sind bewegungsunf�hig und m�ssen sich heilen bevor sie weiter k�nnen\");\n \treturn;\n }\n\n String richtung = befehl.gibZweitesWort();\n\n // Wir versuchen den Raum zu verlassen.\n Raum naechsterRaum = spieler.getAktuellerRaum().getAusgang(richtung);\n\n if (naechsterRaum == null) {\n System.out.println(\"Dort ist keine T�r!\");\n }\n else {\n \tif(naechsterRaum.getClass().getName().equals(\"Level.Teleporter\")) {\n \t\tspieler.setAktuellerRaum(landkarte.getZufaelligenRaum());\n \t\tSystem.out.println(\"Du wurdest Teleportiert\");\n \t}else {\n \t\t spieler.setAktuellerRaum(naechsterRaum);\n \t}\n\n \trauminfoAusgeben();\n }\n }", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "public void sendeSpielfeld();", "@Override\n\tpublic void yürü() {\n\n\t}", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void trenneVerbindung();", "public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "@Override\r\n public void salir() {\n }", "void berechneFlaeche() {\n\t}", "public void validerSaisie();", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "private void zeitGeber() {\n GregorianCalendar datum = new GregorianCalendar();\n stunden = datum.get(Calendar.HOUR_OF_DAY);\n minuten = datum.get(Calendar.MINUTE);\n sekunden = datum.get(Calendar.SECOND);\n inform();\n }", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "@Override\n public int getSalida() {\n return 0;\n }", "public Trimestre(){\n id_trimestre=0;\n numero=0;\n debut_trimestre= new Date(2012,8,12);\n fin_trimestre=new Date(2013,1,13);\n id_anneeScolaire=0;\n }", "protected void aktualisierenFirst() {\r\n\t\taktualisieren();\r\n\t\tfarbeSetzen(\"Weiss\");\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public void beeindig(int gehaaldeSlagen){\n //doe het reguliere-geval\n if(rondetype.isRegulier()){\n updateScore(gehaaldeSlagen);\n }\n // doe het passpel-geval\n else{\n \n }\n }", "@Override\n public void date()\n {\n }", "public SignaturEater()\r\n {\r\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void verurteilen(Schurke schurke) {\n\t\tif (!this.korrupt) {\n\t\t\tschurke.MetroDollarVeraendern(-1000);\n\t\t}\n\t\tthis.metroDollar += 60000;\n\t}", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "@PrePersist\n\tvoid erstelltam() {\n\t\tthis.erstelltam = new GregorianCalendar();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void validerFormation() {\n\t\tSystem.out.println(\"Le manager \" + super.getPrenom() + \" \" + super.getNom() + \" valide la formation\");\n\t}", "public void asetaTeksti(){\n }", "public void verarbeite() {\n\t\t\r\n\t}", "public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void verwerkRijVoorKassa() {\r\n while(kassarij.erIsEenRij()) {\r\n Persoon staatBijKassa = kassarij.eerstePersoonInRij();\r\n kassa.rekenAf(staatBijKassa);\r\n }\r\n }", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "@Override\n\tpublic void rotiereNachRechts() {\n\n\t}", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public int storrelse();", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public boolean muzeBytEuler(){\n\t\turciStupneVrcholu();\n\t\t//zjisti jestli je graf orientovany\n\t\tint druhGrafu = orientaceGrafu();\n\t\t\n\t\tif(druhGrafu == 0){\n\t\t\t//pokud nejsou vsechny vrcholy sudeho stupne vrati false\n\t\t\tif(!stupneProNeoriGraf()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(druhGrafu == 1){\n\t\t\t//pokud nejsou vstupni a vystupni stupne u kazdeho vrchlu si rovny \n\t\t\t//vrati false\n\t\t\tif(!stupneProOriGraf()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(druhGrafu == 2){\n\t\t\tSystem.out.println(\"Cast grafu je orientovana a cast neorientovana\");\n\t\t\treturn false;\n\t\t}\n\t\t//pokud jsou splneny podminky stupnu vraci true;\n\t\treturn true;\n\t\t\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic boolean faelltAuf(TetrominoSpielstein tetrominoSpielstein) {\n\t\treturn false;\n\t}", "double kalkuliereZeit();", "public void sendeSpielerWeg(String spieler);", "public void sendeNeuerSpieler(String spieler);", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Vrachtwagen(String merk, int bouwjaar, String kleur, double lading) {\r\n//\t\thaalt de variabelen op van de class voertuig\r\n\t\tsuper(merk, bouwjaar, kleur);\r\n//\t\tgeeft de lading een waarde \r\n\t\tthis.lading = lading;\r\n\t}", "public void sendeFehlerHelo();", "private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void Vorrücken()\n {\n }", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "public Zufallsgenerator(){//der arbeitskonstruktor, der alles setzt\n\t\t\n\t\tfile=\"Zwischenstand.txt\";\n\t\tint x=Gamepanel.Spielfeld.length;//hol die spielfeld-länge\n\n\t\tString ausgabe=\"\";\n\t\tausgabe+=\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\";\n\t\tausgabe+=\"\\n\";\n\t\t\n\t\tausgabe+=\"<level>\";\n\t\tausgabe+=\"\\n\";\n\t\ttry{\n\t\tFile schreiber=new File(file);\n\t\tFileWriter fwriter=new FileWriter(schreiber);\n\t\t\n\t\t/**\n\t\t * Die Methode muss mehrmals verwendet werden, da sonst der String oft schnell zu groß wird\n\t\t */\n\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\tchar c=ausgabe.charAt(k);\n\t\t\tif(c=='\\n')\n\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\telse fwriter.write(c);\n\t\t}\n\t\tausgabe=\"\";\n\t\tdouble ran;\n\t\t\n\t\tfor(int i=0;i<x;i++){//methode aus dem schreibe_xml\n\t\t\t\n\t\t\tfor(int j=0;j<x;j++){\t\t\t\t\n\t\t\t\tausgabe+=(\"\\t<Feld>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Typ>\");\n\t\t\t\t\n\t\t\t\tif(i == 0 || i == 14 || j == 0 || j == 14){\n\t\t\t\t\tausgabe+=\"unzerstoerbar\";\n\t\t\t\t} else if((i == 1 && j == 1) || (i == 1 && j == 2) || (i == 2 && j == 1) || (i == 13 && j == 13)\n\t\t\t\t\t\t|| (i == 13 && j == 12) || (i == 12 && j == 13)) {\n\t\t\t\t\tausgabe+=\"Weg\";\n\t\t\t\t} else if(i == 7 && j == 7){\n\t\t\t\t\tausgabe +=\"Ausgang\";\n\t\t\t\t} else {\n\t\t\t\t\tran = (int) (Math.random()*3);\n\t\t\t\t\tif(ran == 0) ausgabe += \"Weg\";\n\t\t\t\t\tif(ran == 1) ausgabe += \"zerstoerbar\";\n\t\t\t\t\tif(ran == 2) ausgabe += \"zerstoerbar\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tausgabe+=(\"</Typ>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Position><X>\"+j+\"</X><Y>\"+i+\"</Y></Position>\\n\");\n\t\t\t\tausgabe+=(\"\\t</Feld>\\n\");\n\t\n\t\t\t}\n\t\t\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\t\t\tchar c=ausgabe.charAt(k);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\tausgabe=\"\";\n\t\t\t}\n\n\t\t\tausgabe+=\"\\n\\t<Spieler1>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+40+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+40+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler1>\";\n\t\t\t\n\t\t\tausgabe+=\"\\n\\t<Spieler2>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+520+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+520+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler2>\";\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\tausgabe+=\"\\n\\n\\n</level>\";\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\tfwriter.flush();\n\t\t\t\tfwriter.close();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t\n\t\t}\n\t\t\n\t}", "public void setGeboorteDatum(int geboorteDag, int geboorteMaand, int geboorteJaar)\n {\n switch (geboorteMaand){\n case 1 : \n case 3 :\n case 5 :\n case 7 :\n case 8 :\n case 10:\n case 12:\n if (geboorteDag >= 1 && geboorteDag <= 31){\n this.geboorteDag = geboorteDag;\n geldigeDag = true;\n }\n else {\n System.out.println (\"Dag voldoet niet aan de voorwaarden.\"); \n }\n break ;\n case 4 :\n case 6 :\n case 9 :\n case 11:\n if (geboorteDag >= 1 && geboorteDag <= 30){\n this.geboorteDag = geboorteDag;\n geldigeDag = true;\n }\n else {\n System.out.println (\"Dag voldoet niet aan de voorwaarden deze maand heeft geen 31 dagen.\");\n\n }\n break ;\n case 2 :\n if(geboorteJaar % 4 == 0)\n {\n if((geboorteJaar % 100 == 0) && (geboorteJaar % 400 != 0))\n {\n isSchrikkeljaar = false;\n }\n else\n {\n isSchrikkeljaar = true;\n }\n }\n else\n {\n isSchrikkeljaar = false;\n } \n\n if(isSchrikkeljaar == false)\n {\n if(geboorteDag >= 1 && geboorteDag <= 28){\n geboorteDag = geboorteDag;\n geldigeDag = true;\n }\n else{\n geboorteDag = 0;\n geldigeDag = false;\n System.out.println (\"deze maand gaat maar tot 28 dagen\");\n }\n }\n\n if(isSchrikkeljaar == true)\n {\n if(geboorteDag >= 1 && geboorteDag <= 29){\n geboorteDag = geboorteDag;\n geldigeDag = true;\n }\n else{\n geboorteDag = 0;\n geldigeDag = false;\n System.out.println (\"deze maand gaat maar tot 29 dagen\");\n }\n }\n break ;\n }\n\n if (geboorteMaand >= 1 && geboorteMaand <= 12 && geldigeDag == true){\n this.geboorteMaand = geboorteMaand;\n }\n else {\n System.out.println (\"Maand voldoet niet aan de voorwaarden.\");\n geboorteMaand = 0;\n }\n\n if (geboorteJaar >= 1900 && geboorteJaar <= 2100 && geldigeDag == true){\n this.geboorteJaar = geboorteJaar;\n }\n else {\n System.out.println (\"Jaar voldoet niet aan de voorwaarden.\");\n geboorteJaar = 0;\n } \n }", "public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }", "public void actualiser(){\n try{\n \t\n /* Memo des variables : horaireDepart tableau de string contenant l'heure de depart entree par l'user\n * heure = heure saisie castee en int, minutes = minutes saisie castee en Integer\n * tpsRest = tableau de string contenant la duree du cours en heure entree par l'user\n * minutage = format minutes horaire = format heure, ils servent a formater les deux variables currentTime qui recuperent l'heure en ms\n * tempsrestant = variable calculant le temps restant en minutes, heurerestante = variable calculant le nombre d'heure restantes\n * heureDuree = duree du cours totale en int minutesDuree = duree totale du cours en minute\n * tempsfinal = temps restant reel en prenant en compte la duree du cours\n * angle = temps radian engleu = temps en toDegrees\n */\n String[] horaireDepart = Reader.read(saisie.getText(), this.p, \"\\\\ \");\n \n //on check si le pattern est bon et si l'utilisateur n'est pas un tard\n if(Reader.isHour(horaireDepart)){\n \t\n int heure = Integer.parseInt(horaireDepart[0]);\n int minutes = Integer.parseInt(horaireDepart[2]);\n minutes += (heure*60);\n String[] tpsrest = Reader.read(format.getText(), this.p, \"\\\\ \");\n \n //conversion de la saisie en SimpleDateFormat pour les calculs\n SimpleDateFormat minutage = new SimpleDateFormat (\"mm\");\n SimpleDateFormat Horaire = new SimpleDateFormat (\"HH\");\n \n //recupere l'heure en ms\n Date currentTime_1 = new Date(System.currentTimeMillis());\n Date currentTime_2 = new Date(System.currentTimeMillis());\n \n //cast en int pour les calculs\n int tempsrestant = Integer.parseInt(minutage.format(currentTime_1));\n int heurerestante = Integer.parseInt(Horaire.format(currentTime_2))*60;\n tempsrestant += heurerestante;\n \n //pareil mais pour la duree\n if(Reader.isHour(tpsrest)){\n int heureDuree = Integer.parseInt(tpsrest[0]);\n int minutesDuree = Integer.parseInt(tpsrest[2]);\n minutesDuree += (heureDuree*60);\n tempsrestant -= minutes;\n int tempsfinal = minutesDuree - tempsrestant;\n \n //conversion du temps en angle pour l'afficher \n double angle = ((double)tempsfinal*2/(double)minutesDuree)*Math.PI;\n int engleu = 360 - (int)Math.toDegrees(angle);\n for(int i = 0; i < engleu; i++){\n this.panne.dessineLine(getGraphics(), i);\n }\n \n //conversion du temps en pi radiant pour l'affichage\n if(tempsfinal < minutesDuree){\n tempsfinal *= 2;\n for(int i = minutesDuree; i > 1; i--){\n if(tempsfinal % i == 0 && minutesDuree % i == 0){\n tempsfinal /= i;\n minutesDuree /= i;\n }\n }\n }\n \n //update l'affichage\n this.resultat.setText(tempsfinal + \"/\" + minutesDuree + \"π radiant\");\n this.resultat.update(this.resultat.getGraphics());\n }\n }\n }catch(FormatSaisieException fse){\n this.resultat.setText(fse.errMsg(this.p.toString()));\n }\n }", "void entrerAuGarage();", "@Test\r\n public void testDateiEinlesen() throws Exception {\r\n System.out.println(\"dateiEinlesen\");\r\n String dateipfad = \"\";\r\n Texteinlesen instance = new Texteinlesen();\r\n instance.dateiEinlesen(dateipfad);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public abstract Koordinate schuss();", "@Override\n\tpublic void trabajar() {\n\n\t}", "public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public String meinStatus() {\n try {\n System.out.println(\"--------------------STATUS--------------------\");\n System.out.println(\"Spielfigur: \" + spielfigur);\n System.out.println(\"Kontostand: \" + kontostand);\n System.out.println(\"Aktuell befindest du dich auf: \" + this.aktuellesFeldName.getFeldname());\n\n System.out.println(\"Folgende Felder sind in deinem Besitz :\");\n System.out.println(\"----------------------------------------\");\n for (Spielfelder s : felderInBesitz) {\n\n System.out.println(\"Feldname: \" + s.getFeldname());\n System.out.println(\"Feldummer: \" + s.getFeldnummer());\n\n if (s instanceof Straße) {\n Straße bf = (Straße) s;\n System.out.println(\"Farbe: \" + bf.getFarbe());\n System.out.println(\"Häuser: \" + bf.getAnzahlHaeuser());\n System.out.println(\"Hotels: \" + bf.getAnzahlHotels());\n\n }\n System.out.println(\"----------------------------------------\");\n }\n System.out.println(\"--------------------STATUS ENDE--------------------\");\n System.out.println(\"Gebe JA ein um letzte Aktion durchzuführen\");\n return br.readLine();\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public void setInstdte(Date instdte) {\r\n this.instdte = instdte;\r\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}", "public Rechnung ladeRechnung() throws IOException, ClassNotFoundException {\n \n Rechnung rechnung = liesRechnung(ois);\n \n return rechnung;\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void aktualisiern(int drehzahl) {\n\t\tif(drehzahl >6321)\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl zu groß!! Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl im richtigen Bereich. Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t}" ]
[ "0.65773547", "0.643071", "0.63195425", "0.62658376", "0.6238157", "0.619573", "0.61437595", "0.61272633", "0.61216396", "0.61197835", "0.6064413", "0.60209376", "0.60072523", "0.59965545", "0.59753716", "0.5967154", "0.5952017", "0.5870272", "0.5854939", "0.58391976", "0.583665", "0.58076984", "0.5796399", "0.5774001", "0.57539093", "0.5747406", "0.5743922", "0.5742106", "0.57296836", "0.57222736", "0.57171196", "0.5693473", "0.5687587", "0.5678949", "0.56750524", "0.56681854", "0.5656681", "0.5650909", "0.5636812", "0.56358945", "0.56309366", "0.56280726", "0.56137437", "0.5609126", "0.56037605", "0.56010056", "0.5593143", "0.5583712", "0.5581438", "0.5576756", "0.5574119", "0.5571311", "0.556683", "0.55586565", "0.554788", "0.5542579", "0.55384964", "0.5535995", "0.5533056", "0.5531936", "0.5527063", "0.55243206", "0.55161244", "0.5512984", "0.55085784", "0.5501927", "0.5499591", "0.54990196", "0.5496158", "0.54957706", "0.5495696", "0.5486062", "0.5474273", "0.54574233", "0.5450591", "0.5443423", "0.54383665", "0.5430269", "0.5423384", "0.5423113", "0.5420116", "0.5415499", "0.5412468", "0.5411288", "0.54084593", "0.5397825", "0.53945583", "0.5393303", "0.5384985", "0.5383724", "0.5381882", "0.53756213", "0.53744143", "0.537341", "0.53732604", "0.5373", "0.53729314", "0.53684676", "0.5366348", "0.5364222", "0.5357709" ]
0.0
-1
diese Partei hat zu zahlen
public void setFaction(int faction) { this.faction = faction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }", "public Uzsakymas paimtiFragmenta() {\n\t\tString[] langeliai = this.file_line.split ( \",\" );\n\t\t\n\t\tUzsakymas uzsakymas = null;\n\t\t\n\t\tif ( ! this.file_line.trim().equals(\"\") ) { \n\t\t\n\t\t\tuzsakymas = new Uzsakymas(); \n\t\t\t\n\t\t\tuzsakymas.setPav ( langeliai [ 0 ] );\n\t\t\tuzsakymas.setTrukme_ruosimo ( 0 );\n\t\t\tuzsakymas.setTrukme_kaitinimo ( 0 );\n\t\t\t\n\t\t\ttry {\n\t\t\t\n\t\t\t\tif ( langeliai.length > 1 ) {\n\t\t\t\t\n\t\t\t\t\tuzsakymas.setTrukme_ruosimo ( Integer.parseInt( langeliai [ 1 ] ) );\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch ( Exception e ) {\n\t\t\t\t\n\t\t\t\tuzsakymas.setTrukme_ruosimo ( -1 );\n\t\t\t}\t\t\t\n\t\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\n\t\t\t\tif ( langeliai.length > 2 ) {\n\t\t\n\t\t\t\t\tuzsakymas.setTrukme_kaitinimo ( Integer.parseInt( langeliai [ 2 ] ) );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch ( Exception e ) {\t\n\t\t\t\t\n\t\t\t\tuzsakymas.setTrukme_kaitinimo ( -1 );\n\t\t\t}\n\t\t}\n\t\n\t\treturn uzsakymas;\n\t}", "separador(){\r\n uno = null;\r\n dos = null;\r\n tres = null;\r\n cero = null;\r\n }", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "public Loup(String ligne){\n String delimiteur = \" \";\n StringTokenizer tokenizer = new StringTokenizer(ligne, delimiteur);\n String inutile = tokenizer.nextToken();\n this.ptVie = Integer.parseInt(tokenizer.nextToken());\n this.pourcentageAtt = Integer.parseInt(tokenizer.nextToken());\n this.pourcentagePar = Integer.parseInt(tokenizer.nextToken());\n this.degAtt = Integer.parseInt(tokenizer.nextToken());\n this.ptPar = Integer.parseInt(tokenizer.nextToken());\n this.pos = new Point2D(Integer.parseInt(tokenizer.nextToken()),Integer.parseInt(tokenizer.nextToken()));\n }", "private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public void ParcoursPrefixe() {\r\n System.out.print(getElement() + \",\");\r\n if (getGauche() != null) {\r\n getGauche().ParcoursPrefixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursPrefixe();\r\n }\r\n }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "@Override\n\tpublic void put_paras(String para, String value) {\n\t\t\n\t}", "public MapperDeSalidaExcepcionFormat() {\n super();\n listaMappeo = new LinkedList();\n }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "public void ParcoursSuffixe() {\r\n if (getGauche() != null) {\r\n getGauche().ParcoursSuffixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursSuffixe();\r\n }\r\n System.out.print(getElement() + \",\");\r\n }", "public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "private static void getInfos(String ligne) throws IOException {\n String[] info = ligne.split(\" \");\n nbVideo = Integer.parseInt(info[0]);\n nbEndpoint = Integer.parseInt(info[1]);\n nbDescri = Integer.parseInt(info[2]);\n nbCache = Integer.parseInt(info[3]);\n tailleCache = Integer.parseInt(info[4]);\n }", "private String[] separarCoordenadas(String pCasilla){\n\t\treturn pCasilla.split(\",\");\n\t}", "@Override\n\tpublic void readCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public Final_parametre() {\r\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public Polinomio(String cadenaPolinomio) {\n patron = Pattern.compile(PATRON_POLINOMIO);//se carga el patron polinomio\n polinomio = ConvertirPolinomio(cadenaPolinomio);\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private void permuta(String parziale,String lettere,int livello, List<String> risultato) {\r\n\t\tif(lettere.length()==0) { //caso terminale\r\n\t\t\t\r\n\t\t\t//la soluzione parziale è anche sol completa\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if(parziale è una parola valida?){ -->bisogna dargli accesso a dizionario\r\n\t\t\trisultato.add(parziale);\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t//fai ricorsione\r\n\t\t\t//sottoproblema== una lettera(un singolo carattere) di 'lettere'\r\n\t\t\tfor(int pos=0;pos<lettere.length();pos++) {\r\n\t\t\t\tchar tentativo= lettere.charAt(pos);\r\n\t\t\t\t\r\n\t\t\t\tString nuovaParziale=parziale+tentativo;\r\n\t\t\t\tString nuovaLettere= lettere.substring(0,pos)+ lettere.substring(pos+1);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if(nuovaParziale è un Prefisso valido di almeno una parola nel dizionario){\r\n\t\t\t\t\t//esempio aqz-->NO car-->SI\r\n\t\t\t\tpermuta(nuovaParziale, nuovaLettere, livello+1,risultato);\r\n\t\t\t\t\r\n\t\t\t\t//backtracking -->si può escludere introducendo nuove parziali senza toccare i parametri di input\r\n\t\t\t\t//rimettere a posto parziale\r\n\t\t\t\t//rimettere a posto lettere\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void disparar(){}", "public void pararPersonaje(char letra) {\n switch (letra) {\n case 'd':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Derecha\";//Guarda en la variable jugadorVista hacia donde miramos\n }\n break;\n case 's':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Abajo\";\n }\n break;\n case 'a':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Izquierda\";\n }\n break;\n case 'w':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Arriba\";\n }\n break;\n }\n\n }", "private int separarCoordenadasFil(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[0]);\n\t}", "public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }", "private void parseData() {\n\t\t\r\n\t}", "private void remplirPrestaraireData() {\n\t}", "public Par (P prim, S seg) {\n\t\tthis.primeiro = prim;\n\t\tthis.segundo = seg;\n\t}", "@Override\n public String toString() {\n return \"Pato{\" + \"patas=\" + patas + \", volar=\" + volar + '}';\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "@Override\n\tprotected void prepare() {\n\t\tfor(ProcessInfoParameter parameter :getParameter()){\n\t\t\tString name = parameter.getParameterName();\n\t\t\tif(parameter.getParameter() == null){\n\t\t\t\t;\n\t\t\t}else if(name.equals(\"XX_TipoRetencion\")){\n\t\t\t\tp_TypeRetention = (String) parameter.getParameter();\n\t\t\t}\n\t\t\telse if(name.equals(\"C_Invoice_From_ID\"))\n\t\t\t\tp_Invoice_From = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"C_Invoice_To_ID\"))\n\t\t\t\tp_Invoice_To = parameter.getParameterAsInt();\t\n\t\t\telse if(name.equals(\"DateDoc\"))\n\t\t\t\tp_DateDoc = (Timestamp) parameter.getParameter();\t\t\n\t\t}\n\t}", "public void main(String[] args) {\n String datas=\"\";\n try {\n File myObj = new File(\"configuracion.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n String[] partes = datas.split(\">\"); //separa el contenido del fichero en diferentes string\n String[] cambios; //y lo vuelve a separar para quitar los titulos entre <>. Ej: <Localizaciones>\n for (int i = 1; i < 4; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n //calcular num de elementos de cada parte\n int[] numelementos = new int[3];\n for (int i = 0; i < 3; i++) {\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='(')\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag1=1;\n }\n }\n }\n\n localizacionesString = new String [numelementos[0]]; //incializa la informacion de cada objeto \n personajesString = new String [numelementos[1]]; //segun el largo de los strings que hemos separado\n objetosString = new String [numelementos[2]];\n String cambio = \"\";\n int count = 0 ;\n\n //Se rellena cada string con un for propio\n //Dentro de un try para deteccion de errores\n try {\n //for para Localizaciones\n for (int i=0; count<numelementos[0]; ++i){ \n if (partes[1].charAt(i)==')'){\n localizacionesString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesString[count]=localizacionesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n if (partes[1].charAt(i)==','){ //Control de errores en el txt /*\n if(partes[1].charAt(i+1)!=' '){\n cambio=cambio+\", \";\n continue;\n }\n if(partes[1].charAt(i+1)==' '&&partes[1].charAt(i+2)==' '){\n cambio=cambio+\", \";\n ++i;\n for(;;i++){\n if(partes[1].charAt(i)!=' ')\n break;\n }\n }\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\"; \n }\n for (int f,i = 0; i < numelementos[0]; i++) {\n f=0;\n for (int j = 0; j < localizacionesString[i].length(); j++) {\n if(localizacionesString[i].charAt(j)==')'||localizacionesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count = 0;\n\n //for para Personajes\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n personajesString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n personajesString[count]=personajesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[1]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < personajesString[i].length(); j++) {\n if(personajesString[i].charAt(j)==')'||personajesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count=0;\n\n //for para Objetos\n for (int i=0; count<numelementos[2]; ++i){\n if (partes[3].charAt(i)==')'){\n objetosString[count]=\"\";\n cambio=cambio+partes[3].charAt(i);\n objetosString[count]=objetosString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[3].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[2]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < objetosString[i].length(); j++) {\n if(objetosString[i].charAt(j)==')'||objetosString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n\n \n } catch (Exception e) {\n System.out.println(\"ERROR EN LECTURA FICHERO\");\n flag1 = 1;\n }\n \n \n\n\n\n\n\n //leer fichero de objetivos(funciona igual que el de configuracion.txt)\n\n datas=\"\";\n try {\n File myObj = new File(\"objetivos.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n partes = datas.split(\">\");\n for (int i = 1; i < 3; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n numelementos = new int[2];\n for(int i=0 ; i<2 ; i++){\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='('){\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag2=1;\n }\n }\n }\n }\n\n localizacionesObjetivoString = new String [numelementos[0]];\n objetosObjetivoString = new String [numelementos[1]];\n cambio=\"\";\n\n count = 0;\n\n try {\n // for para las localizaciones objetivo\n for (int i=0; count<numelementos[0]; ++i){\n if (partes[1].charAt(i)==')'){\n localizacionesObjetivoString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesObjetivoString[count]=localizacionesObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < localizacionesObjetivoString[i].length(); j++) {\n if(localizacionesObjetivoString[i].charAt(j)==')'||localizacionesObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n count=0;\n\n // for para los objetos objetivo\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n objetosObjetivoString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n objetosObjetivoString[count]=objetosObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < objetosObjetivoString[i].length(); j++) {\n if(objetosObjetivoString[i].charAt(j)==')'||objetosObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n } catch (Exception e) {\n System.out.println(\"ERRROR EN LA LECTURA DE FICHERO\");\n flag2=1;\n }\n \n System.out.println(\"\");\n }", "public void sendeSpielerWeg(String spieler);", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public void nombreParking (String queNombreParking) {\n nombreParking = queNombreParking;\n\n }", "private void extractParameter(ArrayList<Parameter> parameters, String[] parameterArr) {\n\t\tfor (int i = 0; i < parameterArr.length; i++) {\n\t\t\tif (parameterArr[i].charAt(0) == INVERTED_SLASH) {\n\n\t\t\t\t// format.\n\t\t\t\tString para = parameterArr[i].substring(1, parameterArr[i].length());\n\t\t\t\t// If the next parameter charAt(0) is not \\\\, then it going to\n\t\t\t\t// concat together\n\t\t\t\t// with this paragraph\n\n\t\t\t\tString paraContent = \"\";\n\n\t\t\t\tfor (int c = i + 1; c < parameterArr.length; c++) {\n\t\t\t\t\tif (parameterArr[c].charAt(0) != INVERTED_SLASH) {\n\t\t\t\t\t\tparaContent += parameterArr[c].substring(0, parameterArr[c].length()) + \" \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint paraType = mapParameterType(para);\n\t\t\t\tif (paraType != ERROR_COMMAND_TYPE) {\n\t\t\t\t\tparameters.add(new Parameter(paraType, paraContent.trim()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\tpublic GeometrijskiLik stvoriIzStringa(String parametri) {\r\n\r\n\t\t\tString[] parametriNiz = parametri.split(\"\\\\s+\");\r\n\t\t\tif (parametriNiz.length != 4) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Netocan broj argumenata.\");\r\n\t\t\t}\r\n\t\t\tint[] parametriBrojevi = new int[4];\r\n\t\t\tfor (int i = 0; i < parametriNiz.length; i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparametriBrojevi[i] = Integer.parseInt(parametriNiz[i]);\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\"Nisu dani integer brojevi.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn new Elipsa(parametriBrojevi[0], parametriBrojevi[1],\r\n\t\t\t\t\tparametriBrojevi[2], parametriBrojevi[3]);\r\n\t\t}", "private String getCampo3() {\n String campo = this.campoLivre.substring(15);\n System.out.println(\"campo3 \" + campo);\n return boleto.getDigitoCampo(campo);\n }", "@Override\r\n public String toString() {\r\n// ritorna una stringa\r\n return \"pollo\";\r\n }", "public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}", "public Papagaj(String meno, int pocetKoncatin, double vaha, String farba) {\r\n super(\"Papagaj\", \"Voliera\", pocetKoncatin); // volanie konstruktora predka\r\n this.meno = meno; // nastavenie nazvu zivocicha\r\n this.farba = farba; // nastavenie farby\r\n this.vaha = vaha; // nastavenie vahy\r\n }", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "private void seePerso() {\n\t\tfor (int i = 0; i < persoList.size(); i++) {\n\t\t\tPersonnage perso = persoList.get(i);\n\t\t\tSystem.out.println(\"id : \" + i);\n\t\t\tSystem.out.println(perso);\n\t\t}\n\n\t\tSystem.out.println(\"souhaitez vous modifier un personnage ? o/n\");\n\t\tif (sc.nextLine().toLowerCase().contentEquals(\"o\")) {\n\t\t\tSystem.out.println(\"Lequel ? id\");\n\t\t\tint id = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tchangePerso(id);\n\t\t}\n\t}", "private void loadFromOutputline(String p, SBEPanel panel) {\n StringTokenizer stok = new StringTokenizer(p,\";\\\"\");\n stok.nextToken();//mid\n String id=stok.nextToken();\n stok.nextToken();//bio seq.\n loadSNPInto(panel,stok.nextToken());//snp\n \n int pl = -1;\n try {\n pl =Integer.parseInt(stok.nextToken());//pl\n }catch(NumberFormatException e) {};\n stok.nextToken();//primerlength\n stok.nextToken();//gc\n stok.nextToken();//tm\n stok.nextToken();//excl. 5\n stok.nextToken();//excl. 3\n stok.nextToken();//sec1\n stok.nextToken();//sec2\n stok.nextToken();//sec3\n stok.nextToken();//sec4\n stok.nextToken();//3 or 5\n stok.nextToken();//t\n stok.nextToken();//g\n stok.nextToken();//pcrprod. length\n String seq=stok.nextToken();//\n panel.tfName.setText(id);\n panel.tfSequence.setText(seq);\n panel.setSelectedPL(pl);\n }", "public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public void modifierpointV(String nomAgence,Scanner sc) {\n\t\t\tint i=this.existPointV(nomAgence);\n\t\t\tnotExist:{\n\t\t\t\tif (i==-1) {System.out.println(\"cette agence n'exsite pas ! \\n\\n\"); break notExist;}\n\t\t\t\t\n\t\t\t\tint rep;\n\t\t\t\tString numTele;\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"1-Modifier l'adresse de l'agence \");\n\t\t\t\tSystem.out.println(\"2-Modifier le numéro de téléphone de l'agence \");\n\t\t\t\tSystem.out.println(\"3-Changer le type de l'agence \");\n\t\t\t\trep=sc.nextInt();\n\t\t\t\t\n\t\t\t\tEnumWilaya w;\n\t\t\t\tswitch(rep) \n\t\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Donner la nouvelle adresse :\");\n\t\t\t\t\tSystem.out.print(\"Numéro de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNumRue(sc.nextInt());\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Nom de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNomRue(sc.nextLine());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Numéro de wilaya : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tw=Adresse.saisieWilaya(rep);\n\t\t\t\t\tif (w!=null) break;\n\t\t\t\t\tSystem.out.print(\"numéro wilaya incorrect ! reéssayer : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setWilaya(w);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.print(\"Donner le nouveau numéro de téléphone : \");\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tnumTele = sc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tif (numTele.charAt(0)=='0' & numTele.length()==10) break;\n\t\t\t\t\tSystem.out.print(\"numéro inccorect ! veillez resaisir : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\tthis.pointV.get(i).setNumTele(numTele);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Selectioner le type de l'agence : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"1-Principale\");\n\t\t\t\t\tSystem.out.println(\"2-Secondaire\");\n\t\t\t\t\tSystem.out.print(\"Votre choix : \");\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tif (rep==1 || rep==2) break;\n\t\t\t\t\tSystem.out.println(\"choix invalide ! reéssayez : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).setType(rep);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\tScanner lectorInt = new Scanner(System.in);\n\t\tScanner lectorString = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese información de pasajero\");\n\t\tSystem.out.println(\"Ingrese nombre: \");\n\t\tString nombre = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese apellido: \");\n\t\tString apellido = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese edad: \");\n\t\tint edad = lectorInt.nextInt();\n\t\tSystem.out.println(\"Que tipo de pasajero es: 1:Pasajero Vip 2:Pasajero Económico \");\n\t\tint opcion = lectorInt.nextInt();\n\t\tString membresia = \"\";\n\t\tString descuento = \"\";\n\t\tif (opcion == 1) {\n\t\t\tSystem.out.println(\"Ingrese Código de Membresía\");\n\t\t\tmembresia = lectorString.nextLine();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Ingrese Código de Descuento\");\n\t\t\tdescuento = lectorString.nextLine();\n\t\t}\n\n\t\tPasajeroVip pasajero1 = new PasajeroVip();\n\t\tpasajero1.setNombre(nombre);\n\t\tpasajero1.setApellido(apellido);\n\t\tpasajero1.setCodigoMembresia(membresia);\n\t\tpasajero1.setEdad(edad);\n\n\t\tPasajeroVip pasajero2 = new PasajeroVip(\"Juan\", \"Tandre\", \"as2345\", 23);\n\n\t\tPasajeroEconomico pasajeroEconomico1 = new PasajeroEconomico();\n\t\tpasajeroEconomico1.setNombre(\"Helena\");\n\t\tpasajeroEconomico1.setApellido(\"Frias\");\n\t\tpasajeroEconomico1.setCodigoDescuento(\"1234df\");\n\t\tpasajeroEconomico1.setEdad(25);\n\n\t\tPasajero[][] asientos = new Pasajero[4][5];\n\t\tasientos[0][0] = pasajero1;\n\t\tasientos[0][1] = pasajero2;\n\t\tasientos[0][2] = pasajero1;\n\t\tasientos[0][3] = pasajeroEconomico1;\n\t\tasientos[1][0] = pasajero1;\n\t\tasientos[1][1] = pasajeroEconomico1;\n\n\t\tint opcionSalir = 0;\n\t\tdo {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ingrese datos del asiento, 0:continuar, -1:SALIR\");\n\t\t\topcionSalir = lectorInt.nextInt();\n\t\t\tif (opcionSalir == 0) {\n\t\t\t\tSystem.out.print(\"Ingrese fila del asiento: \");\n\t\t\t\tint fila = lectorInt.nextInt();\n\t\t\t\tSystem.out.print(\"Ingrese columna del asiento: \");\n\t\t\t\tint columna = lectorInt.nextInt();\n\t\t\t\tSystem.out.println(\"Los datos del pasajero son: \");\n\t\t\t\tSystem.out.println(asientos[fila][columna]);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Va ha salir del sistema\");\n\t\t\t}\n\t\t} while (opcionSalir != -1);\n\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "public void sendeNeuerSpieler(String spieler);", "private String[] Asignacion(String texto) {\n String[] retorno = new String[2];\n try {\n retorno = texto.split(\"=\");\n if (retorno.length == 2) {\n if (retorno[0].toLowerCase().contains(\"int\")) {\n if (retorno[0].contains(\"int\")) {\n if (retorno[0].startsWith(\"int\")) {\n String aux[] = retorno[0].split(\"int\");\n if (aux.length == 2) {\n retorno[0] = \"1\";//aceptacion\n retorno[1] = aux[1];//nombre variable\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";//error\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"se encuentra mal escrito el int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se encontro la palabra reservada int.\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n } catch (Exception e) {\n System.out.println(\"Error en Asignacion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public void preguntarDespegue(){\n String respuesta = this.mediador.preguntarDespegue(this);\n System.out.println(respuesta);\n if (respuesta==\"SI\"){\n this.setPosicion(1);\n this.indicarEstado(\"Preparando para el despegue\");\n }\n }", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public void caricaPartita(String partita) {\n\r\n }", "public perro(String data, int animo_in, jefe jefe_in, juguete fun) {\n nombre = data;\n animo = animo_in;\n jefe_name = jefe_in.getNombre();\n funny = fun;\n }", "public PortAllié getSparte() {\n\t\treturn this.Sparte;\n\t}", "private void poetries() {\n\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "@Override\n public String toString() {\n return \"CapteurVitesse(\"+sonRail+\",PositionSurRail:\"+positionSurRail+\")\";\n }", "public int getPodbrojParcele() {\n return podbrojParcele;\n }", "private String getCampo3() {\r\n String campo = this.campoLivre.substring(15);\r\n return boleto.getDigitoCampo(campo);\r\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "private int separarCoordenadasCol(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[1]);\n\t}", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_pelanggan\", id_pelanggan);\n params.put(\"isi_pengaduan\", isi);\n return params;\n }", "public String toString()\n\t{\n\t\treturn pasientnummer + \", \" +navn+\", \"+foedselsnummer+\", \"+adresse+\", \"+postnummer;\t\n\t}", "public String getPar() {\n\t\treturn par;\n\t}", "@Override\n public String toString() { \n return super.getName() + getP1().toString() + \", \" + getP2().toString() \n + \", \" + getP3().toString();\n }", "public void setApellidos(String p) { this.apellidos = p; }", "public ParametroPorParametroPK() {\r\n\t}", "@Override\n\tpublic String editPriyom(String priyom) {\n\t\treturn null;\n\t}", "@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }", "static void pontipo(String t){\r\n\t\tStruct s=new Struct(t,0);\r\n\t\tStruct auxt=buscaT(s);\r\n\t\t/*He encontrado el tipo q tengo q insertar*/\r\n\t\tif(aux==null){\r\n\t\t\t//Parse.SemError(1);\r\n\t\t\tSystem.out.println(\"ERROR TIPO NO ENCONTRADO!!\");\r\n\t\t}else{\r\n\t\t\tObj aux2=aux;\r\n\t\t\twhile (aux2 != null){\r\n\t\t\t\taux2.type=auxt;\r\n\t\t\t\taux2=aux2.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private PassedData(Parcel p) {\n this.a = p.readInt();\n this.b = p.readLong();\n this.c = p.readString();\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }", "public void insertar (String p) {\n int x = p.length();\n for (int i = x-1; i >=0; i--) {\n System.out.println(p.charAt(i));\n pila.add(p.charAt(i)+\"\");\n }\n }", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "String[] chiediSecondaScommessa();", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "private static List<TokenInfo> parsePara(String args) {\n\t\tList<TokenInfo> tokens = new ArrayList<TokenInfo>();\n\t\tStringBuffer token = new StringBuffer();\n\t\tint status = 0;\n\t\tfor_bp: for (int i = 0; i < args.length(); i++) {\n\t\t\tchar c = args.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase ' ': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '-': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstatus = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\ttoken.append('-');\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokenIn(tokens, token, status);\n\n\t\treturn tokens;\n\t}", "String extractParameters ();" ]
[ "0.6295441", "0.61306876", "0.61154515", "0.61066264", "0.6065511", "0.6008014", "0.5937609", "0.5842109", "0.5796452", "0.5743078", "0.5635314", "0.5591271", "0.55878174", "0.5567765", "0.55594647", "0.5556371", "0.5487664", "0.54799026", "0.547891", "0.54543495", "0.5452689", "0.5447487", "0.5446449", "0.542647", "0.5392655", "0.5392514", "0.5391283", "0.5390155", "0.53864926", "0.538593", "0.53655595", "0.53318495", "0.5319971", "0.53149027", "0.52999836", "0.5298504", "0.52734625", "0.5261356", "0.5258993", "0.5257014", "0.52568257", "0.52505857", "0.52496135", "0.5241805", "0.5238832", "0.52379644", "0.52316827", "0.5230138", "0.522936", "0.52243197", "0.5218332", "0.5213834", "0.5206598", "0.52020407", "0.52007717", "0.5200275", "0.5185746", "0.5185737", "0.5183765", "0.5182317", "0.517583", "0.5175072", "0.5169918", "0.51646024", "0.5162507", "0.5156078", "0.5156005", "0.5152846", "0.5140785", "0.5139168", "0.5138638", "0.51339984", "0.5132812", "0.513268", "0.51319844", "0.5123715", "0.5121738", "0.51216143", "0.5118537", "0.5117127", "0.51158357", "0.51155114", "0.5112179", "0.5111284", "0.51094073", "0.5105013", "0.5103093", "0.5100887", "0.50991446", "0.5098601", "0.50946164", "0.50942075", "0.5087559", "0.5085504", "0.5084244", "0.5083098", "0.5083038", "0.50822264", "0.5073188", "0.5069141", "0.5068854" ]
0.0
-1
Interface for the fitness function in a NEAT network.
public interface NeatFitness { public double calculate(Network network); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fitnessFunction()\n\t{\n\t\t\n\t}", "public abstract double getFitness(Genotype genotype);", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}", "public abstract double evaluateFitness();", "String getFitnessFunction();", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "public float getFitness()\r\n\t{\r\n\t\treturn fitness;\r\n\t}", "public int fitness() {\n\t\t//System.out.println(\"/!\\\\ WARNING: Full fitness() called!\");\n\t\tint fitness = 0;\n\t\tint fitnessCases = (int) Math.pow(2, circuit.order);\n\t\tfor (int i=0; i<fitnessCases; i++) {\n\t\t\tValuation v = new Valuation(i, circuit.order);\n\t\t\tboolean actualOutput = tree.evaluate(v);\n\t\t\tboolean correctOutput = v.correctOutput();\n\t\t\t\n\t\t\tif (actualOutput == correctOutput) fitness++;\n\t\t}\n\t\t\n\t\tthis.fitness = fitness;\n\t\tthis.fitnessCases = null;\n\t\t\n\t\treturn fitness;\n\t}", "public int getFitness()\n {\n return this.fitness;\n }", "public interface GAIndividual\r\n{\r\n public void mutate(double rate);\r\n public GAIndividual directReproduce();\r\n public GAIndividual reproduce( GAIndividual i );\r\n \r\n public int getFitness();\r\n public void setFitness ( int fitness );\r\n public void setRoulette (int start, int finish);\r\n public boolean hasRouletteNumber (int winner);\r\n public String toString();\r\n}", "void ComputeFitness(){\n\t\tint i, pos;\n\t\t// individual t;\n\t\tdouble min, sum = 0, sumSize = 0, tm;\n\t\t// First Compute Raw fitness\n\t\tfor(i = 0; i < poplen; i++)\n\t\t{\n\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t}\n\t\t\t\n\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t}\n\t\t//tim individual co fitness be nhat\n\t\tmin = oldpop[0].fitness;\n\t\tpos = 0;\n\t\tsum = oldpop[0].fitness;\n\t\tsumSize = oldpop[0].size;\n\t\t\n\t\tfor(i = 1; i < poplen; i++) {\n\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\tmin = oldpop[i].fitness;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t\tsum += oldpop[i].fitness;\n\t\t\tsumSize += oldpop[i].size;\n//\t\t\tpopSize[gen][i]= oldpop[i].size;\n\t\t}\n\t\t// copy the best and average\n\t\tbestcurrent[gen] = new individual();\n\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n\t\taverage[gen] = sum /poplen;\n\t\taverageSize[gen] = sumSize /poplen;\n\t\t// Third Compute Adjusted fitness\n\t\tAdjustFitness();\n\t\t// Finally Compute nomarlized fitness\n \t\tNormalizeFitness();\n\t}", "public int getFitness(){\n return fitness;\n }", "public interface MetaNEATEvolvable {\n\t\n\tpublic int getPopulationSize();\n\t\n\tpublic MetaNEATGenome getGenome(int index);\n\t\n\tpublic void evolveNextGeneration();\n\t\n\tpublic int getNumberOfSpecies();\n\n}", "public abstract double getConstraintFitness();", "public double calculateFitness(DNA dna);", "public abstract double getAestheticFitness();", "public abstract void updateFitness();", "public interface FitnessCalc1 {\n public double utilityFunction(Individual X);\n public double function(double x, Individual X);\n}", "public interface Population {\n public List<Individual> selectRandomIndividuals(int n, boolean withReplacement);\n\n public void evaluateFitnesses();\n\n public Individual crossoverOnePoint(Individual a, Individual b);\n\n public Individual crossoverTwoPoint(Individual a, Individual b);\n\n public Individual crossoverUniform(Individual a, Individual b);\n\n public void evolveMuLambda(int numParents, int numChildren, double mean, double variance);\n\n public void evolveMuPlusLambda(int numParents, int numChildren, double mean, double mutationRate);\n\n public void evolveGeneticAlgorithm();\n\n public void saveIndividualsAsPlayersInDb();\n\n public void addListener(EvolutionCompleteListener listener);\n\n}", "public void incrementFitness()\n {\n this.fitness++;\n }", "public Object eval(Individual ind)\r\n {\r\n BinaryIndividual bi = (BinaryIndividual)ind;\r\n int partialFitness = 0;\r\n int distance = 0;\r\n double fitness = 0.0;\r\n\r\n\t for (int i=0; i<100; i++){\r\n\r\n\t distance = 0;\r\n\r\n\t for (int j=0; j<100; j++){\r\n\t if (!((BinaryIndividual)target[i]).getBooleanAllele(j)^bi.getBooleanAllele(j)) { \r\n\t\t distance++;\r\n\t }\r\n \r\n\t if (distance > partialFitness) {\r\n\t partialFitness = distance;\r\n\t }\r\n\t }\r\n }\r\n\r\n fitness = (double)partialFitness/100.0;\r\n return new Double(fitness);\r\n \r\n\r\n }", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "public void setFitness(int f){\n this.fitness = f;\n }", "private static double fitness(PMCGenotype gene, int trials)\n\t{\n\t\tController<MOVE> btc = new PacManBTController(decode(gene));\n\t\treturn runExperiment(btc, ghostController, trials);\n\t}", "void setFitness(double fitness) throws UnsupportedOperationException;", "public double getFitness() {\n if (fitness == 0) {\n fitness = 1/(double)getDistance();\n }\n return fitness;\n }", "public interface GeneticOptimizer {\r\n\tpublic int getGenPopulation();\r\n\tpublic void setGenPopulation(Integer popSize);\r\n\tpublic int getGenIterations();\r\n\tpublic void setGenIterations(Integer iterations);\r\n\r\n}", "double getFitnessScore(){\n return fitnessScore;\n }", "@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}", "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "public double bestFitness()\r\n {\r\n\treturn bestFitness;\r\n }", "public int getFitness(Graph_GA obj)\r\n\t{\r\n\t\tint fitness_score = 0;\r\n\t\tSet<DefaultEdge> edges= obj.graph_inp.edgeSet();\r\n Iterator<DefaultEdge> edges_list = edges.iterator();\r\n \r\n while(edges_list.hasNext())\r\n {\r\n \tDefaultEdge new_edge = edges_list.next();\r\n \tGA_Graph_Node source = obj.graph_inp.getEdgeSource(new_edge);\r\n \tGA_Graph_Node target = obj.graph_inp.getEdgeTarget(new_edge);\r\n \tif(chromosome[source.numID-1] == chromosome[target.numID-1])\r\n \t{\r\n \t\tfitness_score = fitness_score-1;\r\n \t}\r\n }\r\n\t\treturn fitness_score;\r\n\t}", "public int getFitness(){\n\t\treturn getEnergy()*-1; \n\t}", "protected float calcFitness(Individual ind) {\n\t\t\tdouble w = (double) ind.getWait();\n\t\t\tdouble g = (double) ind.getMove();\n\t\t\treturn (float) (g/(w+g));\n\t\t}", "double fitness(int gene) {\r\n \tint sum = 0;\r\n \tint prod= 1;\r\n \tfor (int j=0; j<LEN; j++) {\r\n \t\tif (oldpop[gene][j]==0) {\r\n \t\t\tsum += (j+1);\r\n \t\t} else {\r\n \t\t\tprod *= (j+1);\r\n \t\t}\r\n \t}\r\n \treturn Math.abs(sum - SUMTARG)/SUMTARG \r\n \t + Math.abs(prod - PRODTARG)/PRODTARG;\r\n }", "public double getFitness(){\n return averageFitness;\n }", "@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts();\n\n\t\t// Convert to a weighted percentage.\n\t\tbestScore = worstScore - population.get(minimum()).conflicts();\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tthisChromo = population.get(i);\n\t\t\tthisChromo.fitness((worstScore - thisChromo.conflicts()) * 100.0 / bestScore);\n\t\t}\n\n\t\treturn;\n\t}", "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "public int getFitness() {\n\t\treturn getEnergy() * -1;\n\t}", "public default double getFitness(Cell cell) {\n return getFitness(cell.getGenotype());\n }", "public interface INeighborhood<T extends SingleObjectiveSolution> {\n\n T randomNeighbor(T t);\n\n}", "public interface FriendshipGraph extends MyGraph\n{\n /** Distance value for source and target vertex pairs that are disconnected. */\n public static final int disconnectedDist = -1;\n \n \n /**\n * Returns the set of neighbours for a vertex. If vertex doesn't exist, then a warning to System.err should be issued.\n *\n * @param vertLabel Vertex to find the neighbourhood for.\n *\n * @returns The set of neighbours of vertex 'vertLabel'.\n */\n public abstract ArrayList<String> neighbours(String vertLabel);\n\t\n\t\n\t/**\n\t * Computes the shortest path distance between two vertices. If one or both of the vertices doesn't exist, then a warning to System.err should be issued.\n\t *\n\t * Note for undirected graph, which vertex is the origin and which is the destination doesn't matter, i.e., distance(A,B) = distance (B,A).\n\t *\n\t * @param vertLabel1 Origin vertex to compute shortest path distance from. \n\t * @param vertLabel2 Destination vertex to compute shortest path distance to.\n\t *\n\t * @returns Shortest path distance. If there is no path between the vertices, then the value of FriendshipGraph.disconnectedDist should be returned.\n\t */\n\tpublic abstract int shortestPathDistance(String vertLabel1, String vertLabel2);\n\t\n}", "public interface GeneFunctions {\n /**\n * Metoda zwraca randomowy gen\n * \n * @return randomowy gen\n */\n public int randomGene();\n\n /**\n * Metoda mutuje gen i zwraca go\n * \n * @param gene\n * gen\n * @return zmutowany gen\n */\n public int mutateGene(int gene);\n}", "public double calcFitness(int[] genes) {\n\t\treturn 0;\n\t}", "double CalculateFitness(double fun) \n\t {\n\t\t double result=0;\n\t\t if(fun>=0)\n\t\t {\n\t\t\t result=1/(fun+1);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t \n\t\t\t result=0;\n\t\t }\n\t\t return result;\n\t }", "private Fitness getFitnessObject() throws Exception{\n String fitnessClassname = \"\";\n try {\n fitnessClassname = getStringProperty(ParameterList.FITNESS_FUNCTION, false).replaceAll(\"\\\\s\", \"\");\n Class<?> fitnessClass = Class.forName(fitnessClassname);\n return (Fitness)fitnessClass.newInstance();\n } \n catch (ClassNotFoundException e) {\n throw new ClassNotFoundException(\"Error loading the fitness function. Class \" + fitnessClassname + \" not found\", e);\n } \n }", "public interface AStarGraph {\n List<WeightedEdge> neighbors(Position v);\n double estimatedDistanceToGoal(Position s, Position goal);\n}", "public interface Heuristic\r\n{\r\n\r\n double calcStartToGoalCost(State currentState, State goalState);\r\n}", "public interface Population {\n\n /**\n * Add the specified chromosome to the population.\n * If the size of the population has reached to maxSize, eviction is done\n * removing chromosomes with the worst fitness\n * @param chromosome\n */\n void addChromosome(@NotNull final Chromosome chromosome);\n\n /**\n * Return a random chromosome\n * @return\n */\n Chromosome getRandom();\n\n\n /**\n * Return a random chromosome among the first limit fittest chromosomes\n * @param limit Nth fittest chromosome\n * @return\n */\n Chromosome getRandomAmongFittest(int limit);\n\n /**\n * Remove the specified chromosome from the population\n * @param chromosome\n */\n boolean removeChromosome(@NotNull final Chromosome chromosome);\n\n /**\n * Return the fittest chromosome\n * @return\n */\n Chromosome fittestChromosome();\n\n /**\n * Number of chromosome in the population\n * @return\n */\n int size();\n\n /**\n * Return the hits of each chromosomes\n * @return\n */\n Map<String, Long> hits();\n}", "public float AssignFitness() {\n\t\t\n\t\tfitness = 0;\n\t\tif(sample_map.size() == 0) {\n\t\t\treturn fitness;\n\t\t}\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tfitness += ptr.s.weight;\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfitness /= sample_map.size();\n\t\treturn fitness;\n\t}", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "public interface Function extends xbeast.Statistic {\n\n /**\n * @return dimension of the Function *\n */\n public int getDimension();\n\n /**\n * @return main value. For a 1 dimensional Function, this is the only\n * value, but for a Tree this can be the root height, while the individual\n * values obtained from getValue(dim) return the node heights.\n */\n default public double getArrayValue() {\n \treturn getArrayValue(0);\n }\n\n /**\n * @param dim requested dimension\n * @return dim'th value (if any)\n */\n public double getArrayValue(int dim);\n\n /**\n * @return all values as a double[]\n */\n default double[] getDoubleValues() {\n double[] values = new double[getDimension()];\n for (int i = 0; i < values.length; i++) {\n values[i] = getArrayValue(i);\n }\n return values;\n }\n \n @Description(\"Function that does not change over time\")\n public class Constant extends BEASTObject implements Function {\n \tprivate double [] values;\n \tprivate String[] names;\n \t\n \tpublic Constant() {\n \t\tvalues = new double[1];\n \t}\n \tpublic Constant(@Param(name=\"value\", description=\"Space delimited string of double values\") String v) {\n \t\tsetValue(v);\n \t}\n \t\n \tpublic void setValue(String v) {\n \t\tString [] strs = v.trim().split(\"\\\\s+\"); \t\t\n \t\tvalues = new double[strs.length];\n \t\tfor (int i = 0; i < strs.length; i++) {\n \t\t\tvalues[i] = Double.parseDouble(strs[i]);\n \t\t}\n \t}\n\n \tpublic String getValue() {\n \t\tStringBuilder b = new StringBuilder();\n \t\tfor (int i = 0; i < values.length; i++) {\n \t\t\tb.append(values[i] + \" \");\n \t\t}\n \t\treturn b.toString().trim();\n \t}\n \t\n\t\t@Override\n\t\tpublic int getDimension() {\n\t\t\treturn values.length;\n\t\t}\n\n\t\t@Override\n\t\tpublic double getArrayValue(int dim) {\n\t\t\treturn values[dim];\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic void initAndValidate() {\n\t\t}\n\t\t\n\t\t\n\t\t@Override\n\t\tpublic String getDimensionName(int dim) {\n\t\t\tif (names != null && names.length > dim) {\n\t\t\t\treturn names[dim];\n\t\t\t}\n\t\t\treturn Function.super.getDimensionName(dim);\n\t\t}\n\t\t\n\t\t@Override\n\t\tpublic void setDimensionNames(String[] names) {\n\t\t\tthis.names = names.clone();\n\t\t\t\n\t\t}\n \t\n }\n}", "public interface ObjectiveFunctionI {\n public void setData(chromosome chromosome1, int indexOfObjective);\n public void setOriginalSolution(chromosome originalChromosome);\n\n public void setFirstImplement(boolean firstImplement);\n public void calcObjective();\n public chromosome getchromosome();\n //public double[] getObjectiveValues(int index);\n //public double getMinObjectiveValue();\n //public double getMaxObjectiveValue();\n}", "public int randomGene();", "private Double fitness(Term $f) {\n\t\t// Using a lambda to transform a formula to a function.\n\t\tFx g = x -> {this.x=x; return (Double)$abs.apply($sub.apply($f,$target)).evaluate();};\n\t\treturn integral(LOWER_BOUND, UPPER_BOUND, Fx.$f.bind(g));\n\t}", "public static void main(String[] args) {\n\t\tfinal Engine<DoubleGene, Double> engine = Engine\n\t\t\t\t.builder(JeneticsDemo2::eval, Codecs.ofScalar(DoubleRange.of(0, 2 * Math.PI)))\n\t\t\t\t\t.populationSize(500)\n\t\t\t\t\t.optimize(Optimize.MINIMUM)\n\t\t\t\t\t.offspringSelector(new StochasticUniversalSelector<>())\n\t\t\t\t\t.alterers(new Mutator<>(0.03), new MeanAlterer<>(0.6))\n\t\t\t\t\t.build();\n\n\t\t// Execute the GA (engine).\n\t\tfinal Phenotype<DoubleGene, Double> result = engine.stream()\n\t\t\t\t// Truncate the evolution stream if no better individual could\n\t\t\t\t// be found after 5 consecutive generations.\n\t\t\t\t.limit(Limits.bySteadyFitness(5))\n\t\t\t\t// Terminate the evolution after maximal 100 generations.\n\t\t\t\t.limit(100).collect(EvolutionResult.toBestPhenotype());\n\t\t\n\t\tSystem.out.println(\"Best GenoType: \" + result);\n\t}", "public double worstFitness()\r\n {\r\n\treturn worstFitness;\r\n }", "public double[] getFitness() {\n return this.m_Fitness;\n }", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "public abstract double accept(TopologyVisitor visitor);", "public interface Heuristic {\n}", "@Override\n\tpublic FTrend execute(Problem problem, int maxEvaluations) throws Exception\n\t{\n\t\tFTrend FT = new FTrend(); // Create a fitness trend instance\n\t\tint problemDimension = problem.getDimension(); // Store the dimensionality of the problem domain\n\t\tdouble[][] bounds = problem.getBounds(); // Store the bounds of each variable in the problem domain\n\t\t\n\t\tdouble[] best = new double[problemDimension]; // Initialise the best known solution variable\n\t\tdouble fBest = Double.NaN; // Initialise the fitness value, i.e. \"f(x)\", of the best solution known\n\t\tint k = 0; // Initialise the incremental counter variable\n\t\t\n\t\t// Self-Adaptive Differential Evolution (jDE - jitterDE) variables\n\t\tint populationSize \t \t\t\t= getParameter(\"p0\").intValue(); // Initialise the population size \n\t\t//double scalingFactor \t\t\t= getParameter(\"p1\").doubleValue(); // Initialise the scaling factor of the mutation operator\n\t\t//double crossoverRate \t\t\t= getParameter(\"p2\").doubleValue(); // Initialise the crossover rate of the binomial crossover operator\n\t\tdouble scalingFactorLowerBound \t= getParameter(\"p3\").doubleValue(); // Initialise the upper bound value of the scaling factor of the mutation operator\n\t\tdouble scalingFactorUpperBound \t= getParameter(\"p4\").doubleValue(); // Initialise the lower bound value of the scaling factor of the mutation operator\n\t\tdouble tauOne \t\t\t\t\t= getParameter(\"p5\").doubleValue(); // Initialise the first random probability controlling the scaling factor of the mutation operator\n\t\tdouble tauTwo \t\t\t\t\t= getParameter(\"p6\").doubleValue(); // Initialise the second random probability controlling the binomial crossover rate of the crossover operator\n\t\t\n\t\tdouble[] scalingFactor = new double[populationSize]; // Initialise the scaling factor of the mutation operator\n\t\tdouble[] crossoverRate = new double[populationSize]; // Initialise the crossover rate of the binomial crossover operator\n\t\t\n\t\tdouble[][] population = new double[populationSize][problemDimension]; // Initialise the population of individuals (solutions) variable\n\t\tdouble[] solutionFitness = new double[populationSize]; // Initialise the fitness of a solution (individual) variable\n\t\t\n\t\t// Short Distance Exploration (SDE) variables\n\t\tdouble alpha \t\t\t\t= getParameter(\"p7\"); // Initialise the alpha cut value of the length of the problems decision space\n\t\tdouble proceduralIterations = getParameter(\"p8\").intValue(); // Initialise the procedural iteration budget variable\n\t\t\n\t\tdouble fShort = fBest; // Initialise the fitness value, i.e. \"f(x)\", of the trial solution\n\t\tdouble[] xShort = best; // Initialise the trial solution variable\n\t\tdouble[] exploratoryRadius = new double[problemDimension]; // Initialise the exploratory radius variable for the Short Distance Exploration (S) algorithm\n\t\t\n\t\t// Evaluate initial population of individuals\n\t\tfor (int i = 0; i < populationSize; i++) // For the size of the population of individuals (solutions), do the following\n\t\t{\n\t\t\tdouble[] initialSolution = generateRandomSolution(bounds, problemDimension); // Generate the initial solution (guess)\n\t\t\t\n\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t{\n\t\t\t\tpopulation[i][j] = initialSolution[j]; // Initialise the iterated solution (individual) that comprises the population, to the initial solution randomly generated \n\t\t\t}\n\t\t\t\n\t\t\tsolutionFitness[i] = problem.f(population[i]); // Calculate and store the fitness (value) of the iterated solution (individual)\n\t\t\tk++; // Increment the counter to near the computational budget\t\t\n\n\t\t\tif (i == 0 || solutionFitness[i] < fBest) // If the solution generated is the first solution in the population or the fitness of the solution is better than the fitness of the best known solution, do the following\n\t\t\t{\n\t\t\t\tfBest = solutionFitness[i]; // Store the iterated solutions (individuals) fitness (value) as the best known solution\n\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < problemDimension; j++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tbest[j] = population[i][j]; // Update the best solution to the points comprising the iterated solution (individual) in the population\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (i == 0 || k % 100 == 0) // If the iterated individual in the population is first individual in the population or the current iteration is divisible by '100' and has no remainder, do the following\n\t\t\t{\n\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Main loop\n\t\twhile (k < maxEvaluations) // While the computational budget has not been met, do the following\n\t\t{\n\t\t\tdouble[][] nextGeneration = new double[populationSize][problemDimension]; // Reinitialise the next generation of individuals representing the population variable\n\t\t\t\n\t\t\tfor (int j = 0; j < populationSize && k < maxEvaluations; j++) // For the size of the population of individuals (solutions) and whilst within the computational budget, do the following\n\t\t\t{\n\t\t\t\tint fitnessTrendPopulated = 0; // Initialise the fitness trend populated variable\n\t\t\t\t\n\t\t\t\tdouble[] mutantIndividual \t = new double[problemDimension]; // Reinitialise the mutated individuals variable\n\t\t\t\tdouble[] crossoverIndividual = new double[problemDimension]; // Reinitialise the offspring variable\n\t\t\t\tdouble[] populationIndividual = new double[problemDimension]; // Reinitialise the individual (solution) comprising the population variable \n\t\t\t\t\n\t\t\t\tdouble currentFitness \t= Double.NaN; // Reinitialise the fitness of the current solution (individual)\n\t\t\t\tdouble crossoverFitness = Double.NaN; // Reinitialise the fitness of the offspring solution (individual)\n\t\t\t\t\n\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t{\n\t\t\t\t\tpopulationIndividual[l] = population[j][l]; // Initialise the individual (solution) in the population to the iterated individual in the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentFitness = solutionFitness[j]; // Set the current fitness (value) to the fitness of the current individual (solution)\n\t\t\t\n\t\t\t\t// Update the scaling factor (F)\n\t\t\t\tif (RandUtils.random() < tauOne) // If the randomly generated number is smaller than the probability of controlling the scaling factor of the mutation operator, do the following\n\t\t\t\t{\n\t\t\t\t\tscalingFactor[j] = scalingFactorLowerBound + RandUtils.random() * scalingFactorUpperBound; // Resample the scaling factor for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// DE/rand/1 mutation operator\n\t\t\t\tmutantIndividual = originalMutation(population, scalingFactor[j], problemDimension); // Function call, mutate the population of individuals to obtain a new mutated individual\n\t\t\t\t//mutantIndividual = toro(mutantIndividual, bounds); // Correct the mutated individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\t// Update the crossover rate (CR)\n\t\t\t\tif (RandUtils.random() < tauTwo) // If the randomly generated number is smaller than the probability of controlling the crossover rate of the binomial crossover operator, do the following\n\t\t\t\t{\n\t\t \tcrossoverRate[j] = RandUtils.random(); // Resample the crossover rate for the iterated individual of the population\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Binomial crossover operator\n\t\t\t\tcrossoverIndividual = binomialCrossover(populationIndividual, mutantIndividual, crossoverRate[j], problemDimension); // Function call, crossover the current individual and the mutated individual, binomially (recombination)\n\t\t\t\tcrossoverIndividual = toro(crossoverIndividual, bounds); // Correct the offspring individual (solution) that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\n\t\t\t\tcrossoverFitness = problem.f(crossoverIndividual); // Calculate and store the fitness (value) of the offspring solution (individual)\n\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\n\t\t\t\t// Replace the original individual in the population\n\t\t\t\tif (crossoverFitness < currentFitness) // If the offspring individual is fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\t\t\t\tnextGeneration[j][l] = crossoverIndividual[l]; // Replace the original individual (solution) in the population with the offspring individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = crossoverFitness; // Update the fitness of the individual (solution) to the fitness of the offspring individual (solution)\n\t\t\t\t\t\n\t\t\t\t\t// Update the best known solution\n\t\t\t\t\tif (crossoverFitness < fBest) // If the offspring individual (solution) is fitter than the best known individual (solution), do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tfBest = crossoverFitness; // Update the fitness (value) of the best known solution to the fitness (value) of the offspring individual (solution)\n\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tbest[l] = crossoverIndividual[l]; // Update the best known individual (solution) to the offspring individual (solution)\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reset exploratory radius\n\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texploratoryRadius[i] = alpha * (bounds[i][1] - bounds[i][0]); // Calculate and the exploratory radius for each variable in the problem domain\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Main loop\n\t\t\t\t\t\tfor (int l = 0; l < proceduralIterations && k < maxEvaluations; l++) // For the size of the procedural iteration budget and whilst within the computational budget, do the following\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboolean improved = false; // Initialise the improved variable (reinitialise every iteration)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension && k < maxEvaluations; i++) // For the dimensionality of the problem and whilst within the computational budget, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\txShort[i] = best[i] - exploratoryRadius[i]; // Perturb the currently iterated variable in the problem domain, negatively, along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (k < maxEvaluations) // Else if the trial solution is not an improvement to the best solution found and its within the computational budget, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\txShort[i] = best[i] + (exploratoryRadius[i] / 2); // Perturb the currently iterated variable in the problem domain, positively (half-step), along the corresponding axis (exclusively) \n\t\t\t\t\t\t\t\t\txShort = toro(xShort, bounds); // Correct the trial solution that may exist out of the bounds of the search space (problem domain)\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfShort = problem.f(xShort); // Calculate the new fitness value of the trial solution\n\t\t\t\t\t\t\t\t\tk++; // Increment the counter to near the computational budget\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (fShort <= fBest) // If the trial solution is an improvement or equivalent to the best known solution, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbest[i] = xShort[i]; // Update the best known solution to the current trial solution (one variable perturbed at each iteration)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfBest = fShort; // Store the fitness value of the improved trial solution\n\t\t\t\t\t\t\t\t\t\t//FT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\timproved = true; // The trial solution is an improvement or equivalent to the best known solution\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse // Else if the trial solution is not an improvement to the best solution found, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\txShort[i] = best[i]; // Return to the original point after the perturbations, as an improvement could not be recognised\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (improved == false) // If the current best solution has never improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < exploratoryRadius.length; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\texploratoryRadius[i] = exploratoryRadius[i] / 2; // Store the exploratory radius for each variable in the problem domain to itself, halved (closer search from initial solution in case the initial guess is the optimum)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse // Else if the current best solution has improved from the initial best solution, do the following\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor (int i = 0; i < problemDimension; i++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnextGeneration[j][i] = best[i]; // Replace the original individual (solution) in the population with the best known solution (individual)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsolutionFitness[j] = fBest; // Update the fitness of the individual (solution) to the fitness of the best known solution (individual)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse // Else if the offspring individual is not fitter than the original individual in the population, do the following\n\t\t\t\t{\n\t\t\t\t\tfor (int l = 0; l < problemDimension; l++) // For the dimensionality of the problem, do the following\n\t\t\t\t\t{\n\t\t\t\t\t\tnextGeneration[j][l] = populationIndividual[l]; // Restore the design variables (genes) of the original individual (solution) as the updated individual (solution)\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\tsolutionFitness[j] = currentFitness; // Restore the fitness (value) of the solution to the fitness (value) of the iterated individual (solution)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (k % 100 == 0 && fitnessTrendPopulated != k) // If the current iteration is divisible by '100' and has no remainder whilst the fitness trend has not been populated for the current iteration, do the following\n\t\t\t\t{\n\t\t\t\t\tFT.add(k, fBest); // Add the best solution found in this iteration to the fitness trend (saved to a .txt file)\n\t\t\t\t\tfitnessTrendPopulated = k; // The fitness trend has been populated for the current iteration\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Survivor selection (1-to-1 spawning)\n\t\t\tpopulation = nextGeneration; // Update the current population of individuals to the next generation of fitter individuals\n\t\t}\n\t\t\n\t\tfinalBest = best; // Store the final iteration of the best known solution\n\t\tFT.add(k, fBest); // Add the final iteration of the best known solution to the fitness trend (saved to a .txt file)\n\n\t\treturn FT; // Return the fitness trend\n\t}", "public interface InputSummingFunction {\r\n\r\n\t/**\r\n\t * Performs calculations based on the output values of the input neurons.\r\n\t * \r\n\t * @param inputConnections\r\n\t * neuron's input connections\r\n\t * @return total input for the neuron having the input connections\r\n\t */\r\n\tdouble collectOutput(List<NeuronsConnection> inputConnections);\r\n\r\n}", "public interface AStarGraph<Vertex> {\n /** Returns the list of outgoing edges from the given vertex. */\n List<WeightedEdge<Vertex>> neighbors(Vertex v);\n\n /**\n * Returns an estimated distance from vertex s to the goal vertex according to\n * the A* heuristic function for this graph.\n */\n double estimatedDistanceToGoal(Vertex s, Vertex goal);\n}", "public interface Phenotype {\n /**\n * Returns the relative scalar fitness for a given cell.\n *\n * @param cell the cell to evaluate.\n *\n * @return the relative scalar fitness for the specified cell.\n *\n * @throws ClassCastException unless the genotype of the cell\n * has a runtime type compatible with this phenotype.\n */\n public default double getFitness(Cell cell) {\n return getFitness(cell.getGenotype());\n }\n\n /**\n * Returns the relative scalar fitness for a given genotype.\n *\n * @param genotype the genotype to evaluate.\n *\n * @return the relative scalar fitness for the specified genotype.\n *\n * @throws ClassCastException unless the genotype has a runtime\n * type compatible with this phenotype.\n */\n public abstract double getFitness(Genotype genotype);\n}", "public static GFDnetResult evaluateGeneNames(Graph<String> network, Organism organism, String ontology, int version, TaskMonitor tm){\n tm.setTitle(\"Executing GFD-Net analysis\");\n if (!Ontology.isOntology(ontology)){\n throw new IllegalArgumentException(\"The ontology cannot be recognised\");\n }\n if (version < 1 && version > 3) {\n throw new IllegalArgumentException(\"Wrong version of GFD-Net\");\n }\n tm.setStatusMessage(\"Retrieving genes from GO\");\n Graph<GeneInput> geneInputsNetwork = GOUtils.getGenInputNetwork(network, organism, ontology);\n GFDnetVoronoi voronoi = new GFDnetVoronoi();\n for (GeneInput gene : geneInputsNetwork.getNodes()){\n gene.clearRepresentationSelected();\n }\n tm.setStatusMessage(\"Analyzing the network\");\n GFDnetResult result = voronoi.evaluateRepresentations(geneInputsNetwork, ontology, version, tm);\n result.setOrganism(organism);\n return result;\n }", "public interface SelectionFunction\n{\n // this function chooses an individual given the group of individuals, \"pop\"\n /**\n * Chooses an individual given the group a population.\n * @parameter pop Population of <code>GAIndividual</code> objects to be used for selection.\n * @return <code>GAIndividual</code> object selected from the supplied population.\n * @see GAIndividual\n */\n public GAIndividual selectParent(Vector pop);\n}", "public void setFitness(int fit)\n {\n this.fitness=fit;\n }", "@SuppressWarnings({ \"unchecked\", \"deprecation\" })\n\tprivate static NeuralNetwork mutate(NeuralNetwork newnn, Singleton s1) throws NoSuchMethodException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {\n\t\tEvolveSingleton s = (EvolveSingleton) s1;\n\t\tNeuralNetManager.Neuraltracker(newnn);\n\t\t//determines type of mutation\n\t\tdouble selector = Math.random();\n\t\t//creates an arraylist of all genes\n\t\tArrayList<Gene> genes = new ArrayList<Gene>();\n\t\tfor (Layer l : newnn.getLayers()){\n\t\t\t\tfor (Neuron n : l.getNeurons()){\t\t\t\t\t\t\n\t\t\t\t\tfor (Gene g : n.getGenes())genes.add(g);\t\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t// gene mutation\n\t\tif (selector < s.getDisableProbability()&& genes.size() > 0){\t\t\t\t\n\t\t\tGene gene= genes.get(0);\n\t\t\tif(genes.size() > 1) gene= genes.get(rand.nextInt(genes.size()-1));\n\t\t\tif(selector < s.getAdjustProbability()) {\n\t\t\t\t//adjust weight\n\t\t\t\tgene.setWeight(gene.getWeight()*(1+(Math.random()*.1)));\n\t\t\t}\n\t\t\telse if (selector < s.getRandomProbability()){\n\t\t\t\t// new random weight\n\t\t\t\tgene.setWeight(Math.random()*2 - 1);\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//disable/enable gene\n\t\t\t\tgene.toggle();\t\n\t\t\t}\n\t\t\n\t\t}\n\t\telse if (selector < s.getNewGeneProbability() || genes.size() == 0){\n\t\t\t// new gene\n\t\t\tint layer = 0;\n\t\t\tif (newnn.getLayers().size() > 2) layer = rand.nextInt(newnn.getLayers().size()-2);\n\t\t\tint neuron = 0;\n\t\t\tif (newnn.getLayers().get(layer).getNeurons().size() > 1){\n\t\t\t\t\tneuron = rand.nextInt(newnn.getLayers().get(layer).getNeurons().size()-1);\n\t\t\t}\n\t\t\tint layer2 = newnn.getLayers().size()-1;\n\t\t\tif (newnn.getLayers().size()-2-layer > 0) layer2 = layer + 1 + rand.nextInt(newnn.getLayers().size()-2-layer);\n\t\t\tint neuron2 = 0;\n\t\t\tif (newnn.getLayers().get(layer2).getNeurons().size() > 1){\n\t\t\t\t\tneuron2 = rand.nextInt(newnn.getLayers().get(layer2).getNeurons().size()-1);\n\t\t\t}\n \t\t\tdouble weight = Math.random()*2 - 1;\n \t\t\tNeuron in = newnn.getLayers().get(layer).getNeurons().get(neuron);\n \t\t\tGene g = new Gene(newnn.getLayers().get(layer2).getNeurons().get(neuron2), weight);\n \t\t\tnewnn.getLayers().get(layer2).getNeurons().get(neuron2).addInput(g);\n \t\t\tfor(int i = 0; i < in.getGenes().size();i++){\n \t \t\t\tif (newnn.getLayers().get(layer).getNeurons().get(neuron).getGenes().get(i).getConnection().getLayernumber() == layer2 &&newnn.getLayers().get(layer).getNeurons().get(neuron).getGenes().get(i).getConnection().getNumber() == neuron2){\n \t \t\t\t\tin.RemoveGenes(in.getGenes().get(i));\n \t \t\t\t\ti--;\n \t \t\t\t}\n \t \t\t}\n \t\t\tin.AddGenes(g);\n\t\t}\n\t\telse{\n\t\t\tClass<? extends Layer> layerClass = (Class<? extends Layer>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Layer\");\n\t\t\tClass<? extends Neuron> neuronClass = (Class<? extends Neuron>) Class.forName(\"BackEvolution.\"+s.getType()+\".\"+s.getType()+\"Neuron\");\n\t\t\tif (newnn.getLayers().size() == 2 || selector > s.getExistingLayerProbability()){\n\t\t\t\t//new neuron in new layer\n\t\t\t\tClass<?>[] types = {boolean.class,boolean.class};\n\t\t\t\tConstructor<? extends Layer> con = layerClass.getConstructor(types);\n\t\t\t\tLayer l = con.newInstance(false,false);\n\n\t\t\t\tnewnn.addLayer(l);\n\t\t\t\tl.setNumber(newnn.getLayers().size()-1);\n\t\t\t\tNeuron n = neuronClass.newInstance();\n\t\t\t\tl.addNeuron(n);\n\t\t\t\tn.setNumber(1);\n\t\t\t\tn.setLayernumber(newnn.getLayers().size()-1);\n\t\t\t\tLayer outputlayer = newnn.getLayers().get(newnn.getLayers().size()-1);\n\t\t\t\toutputlayer.setNumber(newnn.getLayers().size());\n\n\t\t\t\t\n\t\t\t\tArrayList<Gene> genes2 = new ArrayList<Gene>();\n\t\t\t\tfor (Gene g : genes){\n\t\t\t\t\tif (newnn.getLayers().get(g.getConnection().getLayernumber()-1).isOutput()) genes2.add(g);\n\t\t\t\t}\n\t\t\t\tif (genes2.size() > 0){\n\t\t\t\t\tGene gene= genes2.get((int) ((genes2.size()-1)*Math.random()));\n\t\t\t\t\tNeuron out = gene.getConnection();\n\t\t\t\t\tgene.setConnection(n);\n\t\t\t\t\tn.AddGenes(new Gene(out, Math.random()*2 -1));\n\t\t\t\t\tgene.setInput(n);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tArrayList<Neuron> ns = new ArrayList<Neuron>();\n\t\t\t\t\tfor (Gene g : genes){\n\t\t\t\t\t\tns.add(g.getConnection());\n\t\t\t\t\t}\n\t\t\t\t\tGene gene = new Gene(n, Math.random()*2-1);\n\t\t\t\t\tn.addInput(gene);\n\t\t\t\t\tGene gene2 = new Gene(outputlayer.getNeurons().get(0), Math.random()*2-1);\n\t\t\t\t\tif(outputlayer.getNeurons().size()-1 > 0) gene2 = new Gene(outputlayer.getNeurons().get(rand.nextInt(outputlayer.getNeurons().size()-1)), Math.random()*2-1);\n\t\t\t\t\ttry{\n\t\t\t\t\t\tNeuron in = ns.get(rand.nextInt(ns.size()-1));\n\t\t\t\t\t\tin.AddGenes(gene);\n\t\t\t\t\t\tgene.setInput(in);\n\t\t\t\t\t\tgene.getConnection().addInput(gene);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tns.get(0).AddGenes(gene);\n\t\t\t\t\t\tgene.setInput(ns.get(0));\n\t\t\t\t\t\tgene.getConnection().addInput(gene);\n\t\t\t\t\t}\n\t\t\t\t\tn.AddGenes(gene2);\n\t\t\t\t\tgene2.setInput(n);\n\t\t\t\t\tgene2.getConnection().addInput(gene2);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\telse{\n\t\t\t\t//new node in existing layer\n\t\t\t\tArrayList<Layer> layers = new ArrayList<Layer>();\n\t\t\t\tfor (Layer l : newnn.getLayers()){\n\t\t\t\t\tif (!l.isInput()&&!l.isOutput()){\n\t\t\t\t\t\tlayers.add(l);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tLayer selected = null;\n\t\t\t\ttry{\n\t\t\t\t\tselected = layers.get(rand.nextInt(layers.size()-1));\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tselected = layers.get(0);\n\t\t\t\t}\n\t\t\t\tArrayList<Gene> genes2 = new ArrayList<Gene>();\n\t\t\t\tfor (int i = 0 ; i < selected.getNumber()-1; i++){\n\t\t\t\t\tLayer l = newnn.getLayers().get(i);\t\n\t\t\t\t\tfor (Neuron n : l.getNeurons()){\n\t\t\t\t\t\tfor(Gene g : n.getGenes()){\n\t\t\t\t\t\t\tif (g.getConnection().getLayernumber() > selected.getNumber() && n.getLayernumber() < selected.getNumber())genes2.add(g);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tGene gene = null;\n\t\t\t\t\ttry{\n\t\t\t\t\t\tgene = genes2.get(rand.nextInt(genes2.size()-1));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tgene = genes2.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tNeuron n = neuronClass.newInstance();\n\t\t\t\t\t\n\t\t\t\t\tn.setLayernumber(selected.getNumber());\t\t\t\t\n\t\t\t\t\tselected.addNeuron(n);\n\t\t\t\t\tn.setNumber(selected.getNeurons().size());\n\t\t\t\t\tNeuron out = gene.getConnection();\n\t\t\t\t\tgene.setConnection(n);\n\t\t\t\t\tGene gene2 = new Gene(out, Math.random()*2-1);\n\t\t\t\t\tn.AddGenes(gene2);\n\t\t\t\t\tgene2.setInput(n);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tArrayList<Neuron> ns = newnn.getLayers().get(0).getNeurons();\n\t\t\t\t\tNeuron in = null;\n\t\t\t\t\ttry{\n\t\t\t\t\t\tin = ns.get(rand.nextInt(ns.size()-1));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception f){\n\t\t\t\t\t\tin = ns.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tArrayList<Neuron> ns2 = ((Layer) newnn.getLayers().get(newnn.getLayers().size()-1)).getNeurons();\n\t\t\t\t\tNeuron on = null;\n\t\t\t\t\ttry{\n\t\t\t\t\t\ton = ns2.get(rand.nextInt(ns2.size()-1));\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception f){\n\t\t\t\t\t\ton = ns2.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tNeuron n = neuronClass.newInstance();\n\t\t\t\t\tGene gene1 = new Gene(n, Math.random()*2-1);\n\t\t\t\t\tin.AddGenes(gene1);\n\t\t\t\t\tgene1.setInput(in);\n\t\t\t\t\tGene gene2 =new Gene(on,Math.random()*2-1);\n\t\t\t\t\tgene2.setInput(n);\n\t\t\t\t\tn.AddGenes(gene2);\n\t\t\t\t\tselected.addNeuron(n);\n\t\t\t\t\tn.setNumber(selected.getNeurons().size());\n\t\t\t\t\tn.setLayernumber(selected.getNumber());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newnn;\n\t}", "public GAIndividual()\n {\n m_fitness = 0;\n m_genome = new ArrayList<Integer>();\n }", "public abstract int evalFunction(Player nodePlayer);", "public double averageFitness()\r\n {\r\n\treturn averageFitness;\r\n }", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "@Test\n public void applyFitness() {\n final List<TrainingListener> listeners = new ArrayList<>();\n final MockModel model = new MockModel() {\n @Override\n public void setListeners(Collection<TrainingListener> listenersToSet) {\n listeners.clear();\n listeners.addAll(listenersToSet);\n }\n\n @Override\n public void addListeners(TrainingListener... listener) {\n listeners.addAll(Stream.of(listener).collect(Collectors.toList()));\n }\n\n @Override\n public long numParams() {\n return (long)(5* 1e4);\n }\n\n @Override\n public double score() {\n return 1.23451234;\n }\n };\n final FitnessPolicy<ModelAdapter> policy = new FitnessPolicyTraining<>(3);\n final double[] measuredScore = {-1};\n\n policy.apply(new ModelAdapter() {\n @Override\n public void fit(DataSetIterator iter) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public <T extends IEvaluation> T[] eval(DataSetIterator iter, T... evals) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public Model asModel() {\n return model;\n }\n }, fitness -> measuredScore[0] = fitness);\n\n assertEquals(\"Incorrect number of training listeners\", 1, listeners.size());\n\n // Bleh! Hardcoded knowledge of TrainingListener implementation!\n listeners.forEach(listener -> listener.iterationDone(model, 0, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 1, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 2, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"Incorrect fitness!\", 1.235005, measuredScore[0], 1e-10);\n }", "void ComputeFitnessBefore(){\n\t\t\t\tint i, pos;\n\t\t\t\t// individual t;\n\t\t\t\tdouble min, sum = 0, tm;\n\t\t\t\t// First Compute Raw fitness\n\t\t\t\tfor(i = 0; i < poplen; i++)\n\t\t\t\t{\n\t\t\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t\t\t}\n\t\t\t\t//tim individual co fitness be nhat\n\t\t\t\tmin = oldpop[0].fitness;\t\t\t\n\t\t\t\tsum = oldpop[0].fitness;\t\t\t\n\t\t\t\t\n\t\t\t\tfor(i = 1; i < poplen; i++) {\n\t\t\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\t\t\tmin = oldpop[i].fitness;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tsum += oldpop[i].fitness;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// copy the best and average\n//\t\t\t\tbestBeforeFitness[gen]=min;\n//\t\t\t\tavgBeforeFitness[gen]=sum/poplen;\n//\t\t\t\tbestcurrent[gen] = new individual();\n//\t\t\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n//\t\t\t\taverage[gen] = sum /poplen;\t\t\t\n\t\t\t\t\n\t\t\t}", "public abstract float getCost(AStarNode paramAStarNode);", "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's hidden neuron, false otherwise\n */\n boolean isHiddenNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.OUTPUT.\n *\n * @return true if it's output neuron, false otherwise\n */\n boolean isOutputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.BIAS.\n *\n * @return true if it's bias neuron, false otherwise\n */\n boolean isBiasNeuron();\n\n /**\n * Getter for neuron's name.\n *\n * @return String of this neuron's name\n */\n String getName();\n\n /**\n * Setter for neuron's name.\n *\n * @param name String value as new name for this neuron\n * @return this Neuron instance\n */\n Neuron setName(String name);\n\n /**\n * Gets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return the List of Neuron instance that leads to this neuron\n */\n List<Neuron> getDendrites();\n\n /**\n * Sets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setDendrites(List<Neuron> dendrites);\n\n /**\n * Gets the current value of this neuron.\n *\n * @return double value of this neuron\n */\n double getAxon();\n\n /**\n * Sets the value for this neuron.\n * Could be called only for input neurons.\n * Hidden neurons and output neurons calculating their values using information from their incoming connections\n * and using activation function, and bias neuron always have axon = 1.\n *\n * @param newValue new axon value for input neuron\n * @return this Neuron instance\n */\n Neuron setAxon(double newValue);\n\n /**\n * Gets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type as they can't have outgoing connections.\n *\n * @return the List of Neuron instance that this neuron leads to\n */\n List<Neuron> getSynapses();\n\n /**\n * Sets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type, as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setSynapses(List<Neuron> synapses);\n\n /**\n * Gets the type of this neuron.\n *\n * @return NeuronType value that represents this neuron's type\n */\n NeuronType getType();\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @return new computed soma value\n */\n double calculateSoma(List<Double> weights);\n\n /**\n * Calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateAxon(ActivationFunction activationFunction);\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n * Then calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);\n\n double getDelta();\n\n void setDelta(double delta);\n}", "public double[] calculatefitnessvalue(String str) {\t\n\t\tint a = Integer.parseInt(str.substring(0, 5), 2); \n\t\tint b = Integer.parseInt(str.substring(6, 11), 2);\n\t\tint c = Integer.parseInt(str.substring(12, 17), 2);\n\t\tint d = Integer.parseInt(str.substring(18, 23), 2);\n\t\tint e = Integer.parseInt(str.substring(24, 29), 2);\n\t\tint f = Integer.parseInt(str.substring(30, 35), 2);\n\t\tint g = Integer.parseInt(str.substring(36, 41), 2);\n\t\tint h = Integer.parseInt(str.substring(42, 47), 2);\n\t\tint i = Integer.parseInt(str.substring(48, 53), 2);\n\t\tint j = Integer.parseInt(str.substring(54, 59), 2);\n\n\t\tdouble x1 = a * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of x\n\t\tdouble x2 = b * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of y\n\t\tdouble x3 = c * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x4 = d * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x5 = e * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x6 = f * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x7 = g * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x8 = h * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x9 = i * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x10 = j * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\t\n\t\t//the Objective function\n\t\tdouble fitness = 3 - Math.sin(2 * x1) * Math.sin(2 * x1) \n\t\t\t\t+ Math.sin(2 * x2) * Math.sin(2 * x2)\n\t\t\t\t- Math.sin(2 * x3) * Math.sin(2 * x3)\n\t\t\t\t+ Math.sin(2 * x4) * Math.sin(2 * x4)\n\t\t\t\t- Math.sin(2 * x5) * Math.sin(2 * x5)\n\t\t\t\t+ Math.sin(2 * x6) * Math.sin(2 * x6)\n\t\t\t\t- Math.sin(2 * x7) * Math.sin(2 * x7)\n\t\t\t\t+ Math.sin(2 * x8) * Math.sin(2 * x8)\n\t\t\t\t- Math.sin(2 * x9) * Math.sin(2 * x9)\n\t\t\t\t+ Math.sin(2 * x10) * Math.sin(2 * x10);\n\t\t\n\t\tdouble[] returns = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, fitness };\n\t\treturn returns;\n\t}", "public interface IGP<T extends IGPForest> {\n int getGeneration();\n\n int getGenerationOfBSF();\n\n int getEvaluations();\n\n T getBestSoFar();\n\n T getBestOfGeneration();\n\n int getLastInnovation();\n\n List<T> getLastGenerationPopulation();\n\n void showBestSoFar();\n}", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "public static interface SpatialTransmitVisitor\r\n {\r\n /**\r\n * Compute signal strength between source radio and given point.\r\n *\r\n * @param srcInfo source radio information\r\n * @param srcLoc source radio location\r\n * @param dst destination radio location\r\n * @return signal strength\r\n */\r\n double computeSignal(RadioInfo srcInfo, Location srcLoc, Location dst);\r\n\r\n /**\r\n * Transmit packet to given destination.\r\n *\r\n * @param srcInfo source radio information\r\n * @param srcLoc source radio location\r\n * @param dstInfo destination radio information\r\n * @param dstEntity destination radio entity\r\n * @param dstLoc destination radio location\r\n * @param msg message to transmit\r\n * @param durationObj transmit duration\r\n */\r\n void visitTransmit(RadioInfo srcInfo, Location srcLoc, \r\n RadioInfo dstInfo, RadioInterface dstEntity, Location dstLoc, \r\n Message msg, Long durationObj);\r\n }", "public interface EnergyDistribution {\n\n void calculateEnergy(Growth growth, Grid grid, int energyInside, int energyOnEdges);\n void showEnergy(Growth growth, Grid grid, int energyInside, int energyOnEdges);\n void showMicrostructure(Growth growth, Grid grid, int energyInside, int energyOnEdges);\n}", "protected void setFitness(float fit)\t{\tfitness = fit;\t\t}", "public abstract float getEstimatedCost(AStarNode paramAStarNode);", "void EvolutionWithElitism(){\n\t\t \tint i, j, l, k;\n\t\t\t//individual[] temp;\n\t\t\tbyte _flippc=0,_flippm=0;\n//\t\t\tString _temp1=\"\", _temp2=\"\";\n\t\t\tint[] _cp;\n\t\t\tnode[] _nd,_nm;\n\t\t\t// Khoi tao quan the dau tien \n\t\t\tRampedInit(6, 0.5);\n\t\t\t//RampedInitOffLine(6, 0.5,15);\n\t\t\t\n//\t\t\tconstructiveRate = new double[NUMGEN];\n//\t\t\tsemanticDistance = new double[NUMGEN];\n\t\t\t\n\t\t\tgen = 0;\n\t\t\twhile(gen < generation) {\n\t\t\t\t\n\t\t\t\tComputeFitness();\n\t\t\t\t\n//\t\t\t\tint g_ncross = 0;\n//\t\t\t\tdouble g_sd = 0;\n//\t\t\t\tPrintToFile();\n\t//----------------------\n//\t\t\t\tFileInputStream instream = null;\n//\t\t\t\tPrintStream outstream = null;\n//\t\t\t\tPrintStream console = System.out;\n//\t\t\t\ttry {\n//\t\t\t\t\toutstream = new PrintStream(new FileOutputStream(\"c:/result/\" + \"detail_\"+ gen + \".txt\"));\n//\t\t\t\t\tSystem.setOut(outstream);\n//\t\t\t\t} catch(Exception e) {\n//\t\t\t\t\tSystem.err.println(\"Error Occurred.\");\n//\t\t\t\t}\n//\t\t\t\tfor(i = 0; i < poplen; i++) {\n//\t\t\t\t\tSystem.out.printf(\"%3.5f \",oldpop[i].fitness);\n//\t\t\t\t\tif((i+1) % 10 == 0) {\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(oldpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// copy anh tot nhat sang the he sau\t \t\n\t\t\t\tnewpop[0].CopyIndividual(bestcurrent[gen], TRUE);\n\t\t\t\t// dot bien anh thu 2\n\t\t\t \n\t\t\t\tl=1;\t\n\t\t\t\ti = TourSelect(TOURSIZE);\n//\t\t\t\t\n\t\t\t\t\n\t\t\t newpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\tindividual[] m_individual0=new individual[1];\n\t\t\t\tint[] _mt0=new int[1];\n\t\t\t\t_nm=new node[1];\n\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual0, 15, TRUE,_mt0,_nm);\n\t\t\t\tnewpop[l]=new individual();\n\t\t\t\tnewpop[l].CopyIndividual(m_individual0[0], TRUE);\t\t\t\n\t\t\t\tnewpop[l].evaluated=FALSE;\t\t\n//\t\t\t\t\n//\t\t\t\tm_individual0=null;\n\t\t\t\t\n\t//------------------------\t\t\n\t\t\t\tl = 2;\t\t\t\n\t\t\t\twhile(l < poplen) {\n\t\t\t\t//\tSystem.out.println(\"Generation \"+ String.valueOf(gen)+\":\");\n\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\n\t\t\t\t\ti = TourSelect(TOURSIZE);\n\t\t\t\t\tj = TourSelect(TOURSIZE);\n\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t _flippc=Flip(pcross);\n//\t\t\t\t System.out.printf(\"pcross:%d\", _flippc);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippc == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] i_temp=new individual[2];\n\t\t\t\t\t\t_cp=new int[2];\n\t\t\t\t\t\t_nd=new node[2];\n\t\t\t\t//\t\n\t\t\t\t//\t\tif(SubTreeSwapWithTTest(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(SubTreeSwap(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(i_temp[0],TRUE);\n\t\t\t\t\t\t\tnewpop[l+1].CopyIndividual(i_temp[1],TRUE);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tncross++;\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// semantic distance\n//\t\t\t\t\t\t\tg_sd += newpop[l].getSemanticDistance(oldpop[i]);\n//\t\t\t\t\t\t\tg_sd += newpop[l+1].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tg_sd += oldpop[i].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t} \n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// mutation test\n\t\t\t\t\t_flippm=Flip(pmutate);\n//\t\t\t\t\tSystem.out.printf(\"pmutation:%d\", _flippm);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippm == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l]=new individual();\n\t\t\t\t\t\tnewpop[l].CopyIndividual(m_individual[0], TRUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+l+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Flip(pmutate) == 1) {\n\t\t\t\t\t\tindividual[] m_individual1=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l + 1], m_individual1, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l+1]=new individual();\n\t\t\t\t\t\tnewpop[l+1].CopyIndividual(m_individual1[0], TRUE);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+(l+1)+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual1=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\tl += 2;\n\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(newpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n//\t\t\t\toutstream.close();\n//\t\t\t\tSystem.setOut(console);\n\t\t\t\t// Thống kê tỷ lệ tTest\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t//\t\t\tsemanticDistance[gen] = g_sd / (2.0 * g_ncross);\n//\t\t\t\tsemanticDistance[gen] = g_sd /g_ncross;\n\t\t\t\t\n\t\t\t\tgen++;\n\t\t\t\tfor(k = 0; k < poplen; k++)\n\t\t\t\t{\n\t\t\t\t\toldpop[k]=null;\n\t\t\t\t\toldpop[k]=new individual();\n\t\t\t\t\toldpop[k].CopyIndividual(newpop[k], TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static void main(String[] args) throws IOException {\n\t\tint p = 8;\n\t\t// r is the fraction of the population to be replaced by Crossover at\n\t\t// each step\n//\t\tdouble r = Double.valueOf(8).doubleValue();\n\t\tdouble r = 8;\n\t\t// m is the rate of mutation\n//\t\tdouble m = Double.valueOf(8).doubleValue();\n\t\tdouble m = 8;\n\n\t\t// Write into files...\n\t\tFile outputFile = new File(\"testGA.txt\");\n\t\tFileWriter out = new FileWriter(outputFile);\n\n\t\t////////////////////////\n\t\tp = 33;\n\t\tr = 0.6;\n\t\tm = 0.1;\n\n\t\t// Report the population size, crossover rate and mutation rate\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Learning the 8-queens problem with a Genetic Algorithm\");\n\t\tSystem.out.println(\"Population Size: \" + p);\n\t\tSystem.out.println(\"Crossover Rate: \" + r);\n\t\tSystem.out.println(\"Mutation Rate: \" + m);\n\t\tSystem.out.println();\n\t\tout.write(\"Parameters are p=\" + p + \", \" + \"r=\" + r + \" and m=\" + m + \"\\r\");\n\n\t\t// The genetic algorithm\n\t\tint iterationNum = 0;\n\t\tHypothesis bestIndividual;\n\t\tint bestFitness;\n\t\tdouble aveFitness;\n\t\t// Randomly generate initial population\n\t\tGA algorithm = new GA(p, r, m);\n\t\t// For each individual compute fitness\n\t\talgorithm.computeFitness();\n\t\t// Get the best individual\n\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\tbestFitness = bestIndividual.getFitness();\n\t\taveFitness = algorithm.computeAveFitness();\n\t\t// Iterate till we get the very best individual\n\t\twhile (bestFitness != 0) {\n\t\t\t// Select the very best members of the population to survive\n\t\t\talgorithm.select();\n\t\t\t// Make the best members reproduce themselves\n\t\t\talgorithm.crossover();\n\t\t\t// Add some mutations to new population\n\t\t\talgorithm.mutate();\n\t\t\t// The successor population becomes the current population\n\t\t\talgorithm.setNextGeneration();\n\t\t\t// For each individual compute fitness\n\t\t\talgorithm.computeFitness();\n\t\t\t// Get the best individual\n\t\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\t\tbestFitness = bestIndividual.getFitness();\n\t\t\taveFitness = algorithm.computeAveFitness();\n\t\t\t// Report best results to the user at every five iterations\n\t\t\tif (iterationNum % 5 == 0) {\n\t\t\t\tSystem.out.println(\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness\n\t\t\t\t\t\t+ \" Average Fitness \" + aveFitness);\n\t\t\t\tSystem.out.println(\"Best solution: \" + bestIndividual.toString());\n\t\t\t\tSystem.out.println();\n\t\t\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\t\t}\n\t\t\titerationNum++;\n\t\t}\n\t\tSystem.out.println(\n\t\t\t\t\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness + \" Average Fitness \" + aveFitness);\n\t\tSystem.out.println(\"Solution is \" + bestIndividual.toString());\n\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\tout.close();\n\t}", "static interface FittingFunction {\r\n\r\n /**\r\n * Returns the value of the function for the given array of parameter\r\n * values.\r\n */\r\n double evaluate(double[] argument);\r\n\r\n /**\r\n * Returns the number of parameters.\r\n */\r\n int getNumParameters();\r\n }", "public interface CommonInterface {\n\n\t/* FEED FORWARD\n\t * The input vector. An array of doubles.\n * @return The value returned by the LUT or NN for this input vector\n\t * \tX the input vector. An array of doubles.\n\t * The value return by LUT OR NN for this input vector\n\t * returns output of the neurons forward propagation\n\t * */\n\tpublic double outputFor(double [] X);\n\n\t/* \n\t * Method will tell NN or LUT the output value that should be mapped \n\t * to given input vector i.e. the desired correct output value for an input\n\t * @param X the input vector\n\t * @param argValue The new value to learn\n\t * @return the error in output for input vector \n\t */\n\tpublic double train(double[] X, double argValue);\n\t/*\n\t * Method to write either a LUT or weights of neural net to a file\n\t * @param argFile of type File\n\t */\n\tpublic void save (File argFile) throws IOException;\n\t/*\n\t * Loads LUT or NN weights from file. Load must of course have \n\t * knowledge of how data was written out by save mehtod.\n\t * Should raise an error in case that attempt is being made\n\t * to load data into an LUT or NN whose struct does not match the data in\n\t * the file (.eg. wrong number of hidden neurons)\n\t */\n\tpublic void load (String argFileName) throws IOException;\n}", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}", "public interface EngineNeuralNetwork extends EngineMachineLearning {\r\n\t\r\n\t/**\r\n\t * Decode an array to the neural network weights.\r\n\t * @param data The data to decode.\r\n\t */\r\n\tvoid decodeNetwork(double[] data);\r\n\r\n\t/**\r\n\t * Encode the neural network weights to an array.\r\n\t * @return The encoded neural network.\r\n\t */\r\n\tdouble[] encodeNetwork();\r\n\r\n\t/**\r\n\t * @return The length of the encoded array.\r\n\t */\r\n\tint getEncodeLength();\r\n}", "public interface Heuristic extends Serializable {\n\tpublic final String PATH = \"heuristic\";\n\tpublic final String BEST = \"CNN_f2_p8_m100_o50_t20_99\";\n\t\n\tpublic Heuristic copy();\n\tpublic double evaluate(State state);\n\tpublic void save(String name);\n\tpublic Heuristic mutate(double mutationProb);\n\tpublic List<Heuristic> crossover(Heuristic other);\n\t\n\t/**\n\t * perform crossover between pairs of parents, and return a new population with:\n\t * \t- All the parents\n\t * \t- All the crossover\n\t * - Mutation of the crossover\t\n\t * @param parents : List of parents. They must be an even number\n\t * @param populationSize : size of the population to return. It must be at least twice the number of parents\n\t * @param mutationProb : the probability to mutate a parameter\n\t * @param mutationScale : the scale that multiply the random number that will be summed to the parameter to modify\n\t * @return A list of new Heuristic that must be put into the existing brains for the new Tournament\n\t */\n\tpublic static List<Heuristic> nextGeneration(List<Heuristic> parents, int populationSize, double mutationProb) {\n\t\tif(parents.size() % 2 != 0 || parents.size() < 2)\n\t\t\tthrow new IllegalArgumentException(\"Must be an even number of parents\");\n\t\t\t\t\n\t\tList<Heuristic> ret = new ArrayList<>();\n\t\t\n\t\tfor(Heuristic par : parents)\n\t\t\tret.add(par.copy());\n\t\t\n\t\tfor(int i=0; i<parents.size(); i+=2) {\n\t\t\tList<Heuristic> children = parents.get(i).crossover(parents.get(i+1));\n\t\t\t\n\t\t\tfor(Heuristic child : children)\n\t\t\t\tret.add(child.copy());\n\t\t\t\n\t\t\twhile(ret.size() < (i+2)/parents.size() * populationSize)\n\t\t\t\tfor(Heuristic child : children) {\n\t\t\t\t\tret.add(child.copy().mutate(mutationProb));\n\t\t\t\t\tif(ret.size() == populationSize) return ret;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}\n\t\n\t/**\n\t * Return an heuristic from the file <filename>. if <filename> == \"new\" it will return a new Heuristic\n\t * @param filename. Name of the file to load. NO need to include the extension\n\t * @return\n\t */\n\tpublic static Heuristic of(String filename) {\n\t\tif(filename.equalsIgnoreCase(\"new\"))\n\t\t\treturn new HeuristicNN(64, 32, 16);\n\t\treturn HeuristicNN.load(filename);\n\t}\n}", "public double getPopulation () { return n.getPopulation(); }", "public Particle(FitnessFunction fitnessFunc){\n rnd = new Random();\n position = new double[2];\n position[0] = rnd.nextDouble()*(upperp - lowerp) + lowerp;\n position[1] = rnd.nextDouble()*(upperp - lowerp) + lowerp;\n pbest = position;\n v = new double[2];\n v[0] = rnd.nextDouble()*(upperv - lowerv) + lowerv;\n v[1] = rnd.nextDouble()*(upperv - lowerv) + lowerv;\n this.fitnessFunction = fitnessFunc;\n }", "@Override\n public Algorithm getAlgorithm(String name, Properties properties, Problem problem) {\n if (name.equals(\"NSGAII\")) {\n TypedProperties typed_props = new TypedProperties(properties);\n int pop_size = typed_props.getInt(\"populationSize\", 100);\n Initialization initialization = makeInitializer(problem, pop_size);\n DominanceComparator comparator = new ParetoDominanceComparator();\n NondominatedSortingPopulation population = new NondominatedSortingPopulation(comparator);\n TournamentSelection selection =\n new TournamentSelection(2, new ChainedComparator(new ParetoDominanceComparator(),\n new CrowdingComparator()));\n Variation variation = OperatorFactory.getInstance().getVariation(\"ux+svum+sm\", properties, problem);\n return decorateWithPeriodicActions(\n new NSGAII(problem, population, null, selection, variation, initialization));\n }\n return null;\n }", "public interface DeployedNffg {\n\t/**\n\t * Adds a new node to this already deployed NF-FG. The node is added without any link.\n\t * A node name is chosen by the implementation\n\t * @param type\tthe type of VNF the node to be added has to implement\n\t * @param hostName\tthe name of the host requested for allocation or null if no specific host is requested\n\t * @throws AllocationException if the node could not be added because allocation was not possible.\n\t * @throws ServiceException\tif any other error occurred when trying to deploy the NF-FG.\n\t * returns\tan interface for reading information about the added node.\n\t */\n\tNodeReader addNode(VNFTypeReader type, String hostName) throws AllocationException, ServiceException;\n\n\t/**\n\t * Adds a new link to this already deployed NF-FG without specification of throughput and latency requirements.\n\t * A link name is chosen by the implementation\n\t * @param source\tthe source node of the link\n\t * @param dest\tthe destination node of the link\n\t * @param overwrite\ttrue if the link information has to be overwritten if the link was already present\n\t * @throws NoNodeException if any of the nodes passed as arguments does not exist in the deployed NF-FG.\n\t * @throws LinkAlreadyPresentException\tif a link connecting the specified nodes was already present and overwrite is false.\n\t * @throws ServiceException\tif any other error occurred when trying to add the link.\n\t * returns\tan interface for reading information about the added link.\n\t */\n\tLinkReader addLink(NodeReader source, NodeReader dest, boolean overwrite) throws NoNodeException, LinkAlreadyPresentException, ServiceException;\n\n\t/**\n\t * Provides an NffgReader to read information about the deployed NF-FG.\n\t * The reader must be up to date with the modifications made by the other methods of this interface\n\t * @return an object that provides information about the deployed NF-FG\n\t * @throws ServiceException if any error occurs when trying to create the reader\n\t */\n\tNffgReader getReader() throws ServiceException;\n\n}", "float getTransferFunction(ArrayList<INode> Nodes, ArrayList edges);" ]
[ "0.7274804", "0.67863727", "0.67615193", "0.672967", "0.6713065", "0.65285367", "0.64820105", "0.6437834", "0.6374203", "0.6342447", "0.63234997", "0.63212323", "0.6310492", "0.6184136", "0.61707306", "0.61397374", "0.6095531", "0.6093976", "0.6079215", "0.6064957", "0.6025503", "0.59876466", "0.59819525", "0.5958799", "0.59225655", "0.59051186", "0.5856952", "0.5850188", "0.58299136", "0.5807619", "0.58065706", "0.5791773", "0.5765768", "0.5755598", "0.5683786", "0.5680648", "0.56603914", "0.5655491", "0.56212074", "0.55745685", "0.5563601", "0.55375594", "0.55185884", "0.55081683", "0.5487614", "0.54857194", "0.5479975", "0.54724246", "0.5447327", "0.5445194", "0.5415907", "0.5406627", "0.540353", "0.5396783", "0.5380355", "0.5380157", "0.5378356", "0.537642", "0.5365", "0.53464216", "0.5344069", "0.53318465", "0.5323897", "0.5308768", "0.53079146", "0.53076583", "0.5303859", "0.52913254", "0.5285749", "0.528294", "0.52827424", "0.52752304", "0.5268446", "0.5268308", "0.52615017", "0.5240412", "0.5236846", "0.5224878", "0.5205709", "0.5198266", "0.51956004", "0.5179108", "0.51715076", "0.5166772", "0.51384836", "0.51361275", "0.51357496", "0.51258856", "0.5125293", "0.51157343", "0.5115666", "0.51147634", "0.5111323", "0.51087415", "0.50992817", "0.50965106", "0.5094154", "0.5091766", "0.5070509", "0.506889" ]
0.78101194
0
Retrieve chosen Entry Entry clickedEntry = (Entry) adapterView.getItemAtPosition(i); Give info to new view Intent intent = new Intent(MainActivity.this, DetailActivity.class); intent.putExtra("clickedEntry", clickedEntry); startActivity(intent);
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void OnItemClick(View view, int postion) {\n Intent intent = new Intent(MyPubishActivity.this, IndexDetailActivity.class);\n String entryId = String.valueOf(publishList.get(postion).getItem_id());\n intent.putExtra(\"entryId\", entryId);\n startActivity(intent);\n }", "@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\r\n intent.putExtra(\"item\", itemList.get(position));\r\n context.startActivity(intent);\r\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Intent i = new Intent(getApplicationContext(), ArticleActivity.class);\n //get the article to display\n Article article = articles.get(position);\n //pass in that article into intent\n i.putExtra(\"article\", article);\n //launch the activity\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n Intent intent = new Intent(getActivity(), DetailsActivity.class);\n intent.putExtra(\"info\", mContactList.get(position));\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Intent i = new Intent(CRA.this,\n SingleItemView.class);\n // Pass data \"name\" followed by the position\n i.putExtra(\"name\", ob.get(position).getString(\"name\")\n .toString());\n // Open SingleItemView.java Activity\n startActivity(i);\n }", "public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Intent myIntent = new Intent(MainActivity.this, DetailActivity.class);\n myIntent.putExtra(getResources().getString(R.string.pasoDatosGasolinera), presenterGasolineras.getGasolineras().get(position));\n MainActivity.this.startActivity(myIntent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView,\n View view, int position, long rowId) {\n Traffic traffic = resultsOfIncidents.get(position);\n\n Intent intent = new Intent(IncidentsClass.this, DetailsClass.class);\n intent.putExtra(\"title\", traffic.getTitle());\n intent.putExtra(\"description\", traffic.getDescription());\n intent.putExtra(\"link\", traffic.getLink());\n intent.putExtra(\"georss\", traffic.getGeorss());\n intent.putExtra(\"author\", traffic.getAuthor());\n intent.putExtra(\"comments\", traffic.getComments());\n intent.putExtra(\"pubDate\", traffic.getPubDate());\n startActivity(intent);\n }", "public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {\n \t//makes new intent\n Intent i = new Intent(view.getContext(), DetailActivity.class);\n \n //sends the title, description, and link of the item clicked to the detail activity\n i.putExtra(\"title\", listItems.get(pos).getTitle());\n i.putExtra(\"description\", listItems.get(pos).getDescription());\n i.putExtra(\"link\", listItems.get(pos).getLink());\n \n //start activity\n activity.startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MediaPlayer.create(getActivity(), R.raw.click).start();\n\n RedditEntry redditEntry = (RedditEntry) adapterView.getItemAtPosition(i);\n Intent intent = new Intent(getActivity(), EntryDisplayActivity.class);\n intent.putExtra(\"entry\", redditEntry);\n startActivity(intent);\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\n public void onClick(View view) {\n // Get the clicked post\n int position = getAdapterPosition();\n // Valid Position\n if (position != RecyclerView.NO_POSITION) {\n Post post = posts.get(position);\n Intent intent = new Intent(context, DetailsActivity.class);\n // Doing the post parcelable means converting its attributes to a String\n intent.putExtra(\"postDetails\", Parcels.wrap(post));\n context.startActivity(intent);\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ApplicationParents.getInstance().parents.push(getIntent());\n\n Exercise exercise = (Exercise) listView.getItemAtPosition(position);\n Intent i = new Intent(EditWorkoutActivity.this, EditExerciseActivity.class);\n i.putExtra(\"Exercise\", exercise);\n i.putExtra(\"Workout\", workout);\n i.putExtra(\"User\", user);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long id) {\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n if (view.getId()== position){\n Intent intent = new Intent(MainActivity.this, Details.class);\n intent.putExtra(\"name\", \"bangladesh\");\n startActivity(intent);\n }\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tItemNewFeed item = (ItemNewFeed) parent\n\t\t\t\t\t\t.getItemAtPosition(position);\n\t\t\t\tIntent intent = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tintent.putExtra(\"LINK\", item.getLink());\n\t\t\t\tintent.putExtra(\"TITLE\", item.getName());\n\t\t\t\tintent.putExtra(\"IMAGE\", item.getImage());\n\t\t\t\tintent.putExtra(\"DES\", item.getMessage());\n\t\t\t\tintent.putExtra(\"TITME\", item.getTime());\n\t\t\t\tintent.putExtra(\"POST_ID\", item.getPost_id());\n\t\t\t\tintent.putExtra(\"POS\", 2);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n int id_To_Search = arg2 + 1;\r\n String name = (String) arg0.getItemAtPosition(arg2);\r\n\r\n Bundle dataBundle = new Bundle();\r\n dataBundle.putString(\"name\", name);\r\n dataBundle.putInt(\"id\", id_To_Search);\r\n\r\n Intent intent = new Intent(getApplicationContext(),DisplayCreatedRecipes.class);\r\n intent.putExtras(dataBundle);\r\n startActivity(intent);\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(this, QuestDisplayActivity.class );\n intent.putExtra(\"Quest\", quests.get(position));\n\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n Object object = listView.getItemAtPosition(position);\n Itinerary itinerary = (Itinerary) object;\n // specifies the next Activity to move to: ItineraryDetailActivity\n Intent intent = new Intent(ViewBookedItineraryActivity.this, ItineraryDetailActivity.class);\n // passes the data to ItineraryDetailActivity\n intent.putExtra(\"itineraryKey\", itinerary);\n // starts ItineraryDetailActivity\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent i = new Intent(getActivity(), SingleItemView.class);\n\t\t\t\t// Pass all data rank\n\t\t\t\ti.putExtra(\"rank\", rank);\n\t\t\t\t// Pass all data country\n\t\t\t\ti.putExtra(\"country\", country);\n\t\t\t\t// Pass all data population\n\t\t\t\ti.putExtra(\"population\", population);\n\t\t\t\t// Pass all data flag\n\t\t\t\ti.putExtra(\"flag\", flag);\n\t\t\t\t// Pass a single position\n\t\t\t\ti.putExtra(\"position\", position);\n\t\t\t\t// Open SingleItemView.java Activity\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n public void onClick(View v) {\n int mPosition = getLayoutPosition();\n // Use that to access the affected item in cryptoList.\n double idClicked = cryptoList.get(mPosition).market_cap_rank; //[mPosition].market_cap_rank; //get(mPosition);\n\n Intent i = new Intent(v.getContext(), Detail.class);\n i.putExtra(\"rank\", idClicked);\n v.getContext().startActivity(i);\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n MovieItem movieItem = arrayAdapter.getItem(position);\n Intent i = new Intent(getActivity(), DetailActivity.class);\n i.putExtra(\"myData\", movieItem);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Building theSelectedBuilding = buildingList.get(position);\n\n Intent intent = new Intent(getApplicationContext(), DetailsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.putExtra(\"building_name\", theSelectedBuilding.getName());\n intent.putExtra(\"building_description\", theSelectedBuilding.getDescription());\n intent.putExtra(\"building_address\", theSelectedBuilding.getAddress());\n intent.putExtra(\"building_hours\", theSelectedBuilding.getDate());\n intent.putExtra(\"building_id\", theSelectedBuilding.getBuildingId());\n intent.putExtra(\"building_image\", theSelectedBuilding.getImage());\n startActivity(intent);\n\n }", "public void editEntry(int id) {\n ListView entryList = (ListView) getView().findViewById(R.id.breakfastFoods);\n ListAdapter arrayAdapter = entryList.getAdapter();\n String entry = (String) arrayAdapter.getItem(id);\n Intent i = new Intent(getActivity(), EditEntry.class);\n i.putExtra(\"pos\", \"\" + id);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent openCauseFullDetailViewPage = new Intent(NeedyProfile.this, CauseFullDetailView.class);\n startActivity(openCauseFullDetailViewPage);\n\n\n }", "public void onItemClick(int mPosition)\n {\n final FoodEntry entry = httpResponse.get(mPosition);\n\n Intent entryScreen = new Intent(getApplicationContext(), EntryScreenActivity.class);\n\n entryScreen.putExtra(\"building\", entry.getBuilding());\n entryScreen.putExtra(\"location\", entry.getLocation());\n entryScreen.putExtra(\"category\", entry.getCategory());\n entryScreen.putExtra(\"type\", entry.getType());\n entryScreen.putExtra(\"description\", entry.getDescription());\n entryScreen.putExtra(\"votes\", entry.getVotes());\n\n startActivity(entryScreen);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getActivity(), InstructionStartActivity.class);\n intent.putExtra(\"title\", MainHomeActivity.origamiTitles[position]);\n intent.putExtra(\"info\", MainHomeActivity.origamiInfo[position]);\n intent.putExtra(\"design\", MainHomeActivity.origamiDesigns[position]);\n startActivity(intent);\n }", "@Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n ViewEntry viewEntry = (ViewEntry) expandableListView.getItemAtPosition(childPosition + 1);\n\n Bundle extras = new Bundle();\n\n //array that contains all viewEntry object fields\n String[] keys = getResources().getStringArray(R.array.keys);\n\n //adds all information from the chosen viewEntry object into extras so it can be passed to Detailed_View activity\n for (String key : keys) {\n switch (key) {\n case \"unid\":\n extras.putString(key, viewEntry.unid);\n break;\n case \"Type\":\n extras.putString(key, null);\n break;\n default:\n extras.putString(key, viewEntry.getEDByName(key).getText());\n break;\n }\n }\n\n Intent intent = new Intent(Events_and_Festivals.this, Detailed_View.class);\n intent.putExtras(extras);//passes extras to activity\n startActivity(intent);\n\n return false;\n }", "@Override\n public void onClick(View v) {\n Context context = v.getContext();\n Intent intent = new Intent(context, FuelEntryListActivity.class);\n\n startActivity(intent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView tv = (TextView) view.findViewById(R.id.note_id);\n String clickedID = tv.getText().toString();\n Intent intent = new Intent(this, EditNoteActivity.class);\n intent.putExtra(NOTE_ID, clickedID);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }", "@Override\n public void onClick(View v) { Intent intent = new Intent(v.getContext(), ItemDescriptionActivity.class);\n// intent.putExtra(\"title\", data.get(position).getItems().get(position).getTitle());\n// intent.putExtra(\"description\", data.get(position).getItems().get(position).getDescription());\n// v.getContext().startActivity(intent);\n//\n Intent intent = new Intent(v.getContext(), ItemListActivity.class);\n intent.putExtra(\"id\", data.get(position).getId());\n activityContext.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailViewActivity.class);\n intent.putExtra(\"title\", countries.get(position).getName());\n intent.putExtra(\"link\", countries.get(position).altSpellings.get(0));\n v.getContext().startActivity(intent);\n\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String postObjectID = customAdapter.getItem(position).getObjectId();\n\n // go to viewwatchitem and pass postobjectd with the intent\n Intent intent = new Intent(this, ViewWatchItem.class);\n intent.putExtra(MESSAGE,postObjectID);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n intent = new Intent(MainActivity.this, ViewContact.class);\n //it also sends along the ID, like ya do\n intent.putExtra(\"_id\", id);\n //and actually runs the intent\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n Event event= arrayList.get(position);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n\n AppCompatActivity activity =(AppCompatActivity) view.getContext();\n Intent intent = new Intent(activity.getApplicationContext(), ChooseRoomActivity.class);\n// intent.putExtra(\"InfoClickedItem\", homeItem);\n activity.startActivity(intent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long id) {\n\n Intent detailsIntent = new Intent(ExhibitorActivity.this, ExhibitorDetailsActivity.class);\n detailsIntent.putExtra(ExhibitorDetailsActivity.FROM_DB, true);\n detailsIntent.putExtra(ExhibitorDetailsActivity.ID_KEY, id);\n Log.e(\"from list\", id + \"\");\n startActivity(detailsIntent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(final View v) {\n Intent intent = new Intent(theInflatedView.getContext(), InfoPlant.class);\n\n int selectedItems = position;\n String fRef = String.valueOf(mFirebaseAdapter.getRef(selectedItems).getKey());\n intent.putExtra(\"PLANT_REF\", fRef);\n startActivity(intent);\n\n //Toast.makeText(theInflatedView.getContext(), \"\"+ mFirebaseAdapter.getRef(position).getKey(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MovieDetails movieDetails = movieDetailsAdapter.getItem(i);\n Intent intent = new Intent(MainActivity.this,MovieDetailActivity.class);\n intent.putExtra(\"movieDetails\",movieDetails);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n final Assessment current = assessments.get(position);\n Intent intent = new Intent(v.getContext(), AssessmentDetail.class);\n intent.putExtra(\"assessmentName\", current.getAssessmentName());\n intent.putExtra(\"assessmentStart\", current.getAssessmentStart());\n// intent.putExtra(\"assessmentEnd\", current.getAssessmentEnd());\n intent.putExtra(\"assessmentID\", current.getAssessmentID());\n intent.putExtra(\"courseID\", current.getCourseID());\n intent.putExtra(\"assessmentStatus\", current.getAssessmentType());\n intent.putExtra(\"position\", position);\n v.getContext().startActivity(new Intent(intent));\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapter, View item, int pos, long id) {\n Intent editIntent = new Intent(TodoListActivity.this, EditItemActivity.class);\n editIntent.putExtra(\"position\", pos);\n editIntent.putExtra(\"value\", todos.get(pos));\n\n startActivityForResult(editIntent, EDIT_ITEM_REQUEST_CODE); // brings up the second activity\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { //on click listener\n Intent showDetailActivity = new Intent(getApplicationContext(), DetailActivity.class); //create an intent that points to the DetailActivity class\n showDetailActivity.putExtra(\"com.example.listapp.itemIndex\", i); //we put the index of the item clicked in the intent to get the image\n startActivity(showDetailActivity); //we show the activity in DetailActivity and run the onCreate method there\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> map = (HashMap<String, String>) list_found.getItemAtPosition(position);\n\t\t\tString title = map.get(\"tv_title\");\n\t\t\tString phone = map.get(\"tv_photo\");\n\t\t\tString describe = map.get(\"tv_describe\");\n\t\t\tString _id = map.get(\"_id\");\n\t\t\tIntent intent = new Intent(FoundActivity.this, DetailedActivity.class);\n\t\t\tintent.putExtra(\"flag\", \"Found\");\n\t\t\tintent.putExtra(\"title\", title);\n\t\t\tintent.putExtra(\"phone\", phone);\n\t\t\tintent.putExtra(\"describe\", describe);\n\t\t\tintent.putExtra(\"_id\", _id);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3)\n {\n Student stud = null;\n stud = (Student) listView.getAdapter().getItem(position);\n Intent data = new Intent(MainActivity.this, DetailActivity.class);\n data.putExtra(\"student\",stud);\n startActivity(data);\n }", "@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n Book selectBook = books.get(position);\n Intent intent = new Intent(itemView.getContext(),BookDetail.class);\n intent.putExtra(\"Book\", selectBook);\n itemView.getContext().startActivity(intent);\n }", "@Override //define what to do when cell \"position\" is clicked\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent showDetailActivity = new Intent(getApplicationContext(), DetailActivity.class);\n //add extra info to the intent(index of cell clicked)\n showDetailActivity.putExtra(\"INDEX\", position);\n //execute the intent\n startActivity(showDetailActivity);\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String settingid = ((TextView) view.findViewById(R.id.txtsettingid)).getText().toString();\n\n Bundle dataBundle = new Bundle();\n dataBundle.putString(\"settingid\", settingid);\n\n // Starting new intent\n Intent intent = new Intent(getApplicationContext(),\n editsettingactivity.class);\n // sending settingid to next activity\n intent.putExtras(dataBundle);\n\n // starting new activity\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n int itemPosition = position;\n \n // ListView Clicked item value\n String itemValue = (String) lvView.getItemAtPosition(position);\n \n Intent newActivity;\n switch( position ) {\n case 0: \n \t \t\tnewActivity = new Intent(Recommendations.this, RecJermaineJemmott.class); \n startActivity(newActivity);\n finish();\n break;\n \n case 1: \n \t \t\tnewActivity = new Intent(Recommendations.this, RecFrankBird.class); \n startActivity(newActivity);\n finish();\n break;\n \n case 2: \n \t \t\tnewActivity = new Intent(Recommendations.this, RecLeeAsh.class); \n startActivity(newActivity);\n finish();\n break;\n \n }\n }", "@Override\n public void onClick(View v) {\n Thought chosenThought = thoughts.get((int) v.getTag());\n Intent thoughtContentIntent = new Intent(getActivity(), ThougtContentActivity.class);\n thoughtContentIntent.putExtra(\"id\", chosenThought.thoughtId.toString());\n thoughtContentIntent.putExtra(\"image\", chosenThought.imagePath.getPath());\n thoughtContentIntent.putExtra(\"recording\", chosenThought.recordingPath.getPath());\n thoughtContentIntent.putExtra(\"title\", chosenThought.title);\n thoughtContentIntent.putExtra(\"details\", chosenThought.details);\n startActivity(thoughtContentIntent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, ChampionProfileActivity.class);\n\n //Using bundle to pass variable to the next activity\n Bundle bundle = new Bundle();\n bundle.putInt(\"position\", position);\n\n intent.putExtras(bundle);\n\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n Intent intent = new Intent(getApplicationContext(), Detail.class);\n // intent.putExtra(\"i\",listAlarm.i);\n startActivity(intent);\n\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Location selectedItem = (Location) parent.getItemAtPosition(position);\n\n //create a new Intent which will open up a new layout in the app\n Intent intent = new Intent(getActivity(), LocationDetailsActivity.class);\n intent.putExtra(NAME, selectedItem.getLocationName());\n intent.putExtra(DESCRIPTION, selectedItem.getLocationDescription());\n intent.putExtra(OPENING_DETAILS, selectedItem.getLocationOpeningHoursDetails());\n intent.putExtra(CONTACT, selectedItem.getLocationContact());\n intent.putExtra(WEBSITE, selectedItem.getLocationWebsite());\n intent.putExtra(ADDRESS, selectedItem.getLocationAddress());\n intent.putExtra(IMAGE, selectedItem.getImageResourceId());\n\n startActivity(intent);\n }", "@Override\n public void onItemClickListener(View view, int posiotn, boolean isLongClick) {\n Intent detailsIntent = new Intent(FoodActivity.this, FoodDetailsActivity.class);\n detailsIntent.putExtra(\"foodId\", mFoodAdapter.getRef(posiotn).getKey());\n startActivity(detailsIntent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapter, View view, int i, long l) {\n Contato contatoEscolhido = (Contato) adapter.getItemAtPosition(i);\n Intent intent = new Intent(ListaContato.this, CadastrarContato.class);\n intent.putExtra(\"contato-escolhido\", contatoEscolhido);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString name = ((TextView) view.findViewById(R.id.name)).getText().toString();\n\t\t\t\tString year = ((TextView) view.findViewById(R.id.year)).getText().toString();\n\t\t\t\tString trailer = ((TextView) view.findViewById(R.id.trailer)).getText().toString();\n\t\t\t\t\n\t\t\t\tIntent i = new Intent(getApplicationContext(), SingleListItem.class);\n\t\t\t\t\n\t\t\t\tBundle extras = new Bundle();\n\t\t\t\textras.putString(\"TAG_TITLE\", name);\n\t\t\t\textras.putString(\"TAG_YEAR\", year);\n\t\t\t\textras.putString(\"TAG_TRAILER\", trailer);\n\t\t\t\ti.putExtras(extras);\n\t\t\t\t\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tint position = (Integer)view.getTag();\n\t\t\t\tIntent intent = new Intent(getContext(),HotAnswerDetailActivity.class);\n\t\t\t\tintent.setAction(\"MainHotActivity\");\n\t\t\t\t\n\t\t\t\tBundle mBundle = new Bundle(); \n\t\t mBundle.putSerializable(\"hotInfors\", getItem(position));\t\t\t\t\t\t\n\t\t intent.putExtras(mBundle);\n\t\t\t\tgetContext().startActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(int position) {\n\n /* Intent detailIntent = new Intent(this,details.class);\n ExampleItem clickItem = mExampleList.get(position);\n detailIntent.putExtra(EXTRA_FIESTA, clickItem.getTest_name());\n detailIntent.putExtra(EXTRA_PROVINCE, clickItem.getProvince());\n detailIntent.putExtra(EXTRA_URL,clickItem.getImage());\n detailIntent.putExtra(EXTRA_MUNICIPAL,clickItem.getMunicipal());\n detailIntent.putExtra(EXTRA_HISTORY,clickItem.getHistory());\n startActivity(detailIntent);*/\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"YourValueKey\", array_detailview.get(position));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n// view.getContext().startActivity(new Intent(view.getContext(), DetailActivity.class));\n// context.startActivity(new Intent(context, DetailActivity.class));\n\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(),ArticleReadActivity.class);\n intent.putExtra(\"articleCover\", list.get(position).getCover())\n .putExtra(\"articleTitle\", list.get(position).getTitle())\n .putExtra(\"articleContent\", list.get(position).getContent());\n v.getContext().startActivity(intent);\n }", "public void onItemClick(final AdapterView<?> parent, final View view,\n final int position, final long id)\n {\n logEnter(LOG_TAG, \"onItemClick\", parent, view, position, id);\n\n final TextView item = (TextView) view;\n final SearchResultEntry e = entryMap.get(item.getText().toString());\n if (e != null)\n {\n final Intent i = new Intent(this, ViewEntry.class);\n i.putExtra(ViewEntry.BUNDLE_FIELD_ENTRY, e);\n startActivity(i);\n }\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent it = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(MangaInfoFrag.MANGA_LINK_STRING, getActivity()\n\t\t\t\t\t\t.getResources().getString(R.string.domain)\n\t\t\t\t\t\t+ results.get(position - 1).getLink());\n\t\t\t\tit.putExtras(bundle); \n\t\t\t\tstartActivity(it);\n\t\t\t\tToast.makeText(getActivity(),\n\t\t\t\t\t\tresults.get(position - 1).getLink(), Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> aView, View view, int position, long id) {\n TextView pos_Id = (TextView) view.findViewById(R.id.posterID);\n TextView pos_Title = (TextView) view.findViewById(R.id.posterTitle);\n TextView pos_Author = (TextView) view.findViewById(R.id.posterAuthor);\n TextView pos_Email = (TextView) view.findViewById(R.id.posterEmail);\n String idNo = (String) pos_Id.getText();\n String title = pos_Title.getText().toString();\n String author = pos_Author.getText().toString();\n String email = pos_Email.getText().toString();\n\n\n Intent intent = new Intent(MainActivity.this, EvaluateActivity.class);\n intent.putExtra(\"ID\",idNo);\n intent.putExtra(\"Title\",title);\n intent.putExtra(\"Author\",author);\n intent.putExtra(\"Email\",email);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id) {\n Toast.makeText(getActivity(), data.get(pos).get(\"Desc\"), Toast.LENGTH_SHORT).show();\n Intent i = new Intent(getActivity(), DetailActivity.class);\n i.putExtra(\"Play\",data.get(pos).get(\"Desc\"));\n i.putExtra(\"Detail\",data.get(pos).get(\"Player\"));\n i.putExtra(\"Category\",\"Diversity\");\n i.putExtra(\"Img\",data.get(pos).get(\"Imagemain\"));\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Postagem postagem = listaDePostagens.get(position);\n String idPodt = postagem.getIdPostagem();\n Intent i = new Intent(getApplicationContext(), VisualizandoPostagensActivity.class);\n i.putExtra(\"postagem\", postagem);\n i.putExtra(\"idPostagem\", idPodt);\n i.putExtra(\"usuario\", dadosDoUsuario);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final String def = definition.get(position);\n\n // Create an intent for the termDefinitions View\n Intent intent = new Intent(getApplicationContext(), termDefinition.class);\n\n // Parse the data selected\n intent.putExtra(\"definition\", def);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3)\n\t\t\t{\n\t\t\t\tString str = ((TextView) arg1\n\t\t\t\t\t\t.findViewById(R.id.search_item_name)).getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tintent.putExtra(\"name\", str);\n\t\t\t\tintent.setClass(SearchView.this.getActivity(),\n\t\t\t\t\t\tDetailInfoActivity.class);\n\t\t\t\tSearchView.this.startActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n DonationData donationData = list.get(position);\n Intent intent = new Intent(getContext(), DonationDetailsActivity.class);\n intent.putExtra(\"donationData\",donationData);\n startActivity(intent);\n\n }", "public void onItemClick(AdapterView<?> parent,\n View v, int position, long id){\n Intent i = new Intent(getApplicationContext(), SingleViewActivity.class);\n // Pass image index\n i.putExtra(\"id\", position);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Friend clickedFriend = (Friend) adapterView.getItemAtPosition(i);\n\n // send it to other activity\n Intent intent = new Intent(MainActivity.this, ProfileActivity.class);\n intent.putExtra(\"ClickedFriend\", clickedFriend);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, Detail_Product_Normal.class);\n intent.putExtra(Param_Collection.EXTRA_POST_ID, item.getContent().getPostId().toString());\n intent.putExtra(Param_Collection.EXTRA_POST_PRODUCT_TITLE, item.getActivity());\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Override\r\n public void onClick(View v) {\n int id = v.getId();\r\n switch(id){\r\n case R.id.mylend:\r\n \t startActivity(new Intent(MyInfoActivity.this,CollectionActivity.class));\r\n \t break;\r\n case R.id.mywant:\r\n \t startActivity(new Intent(MyInfoActivity.this,MyWantedActivity.class));\r\n \t break;\r\n }\r\n }", "@Override\n public void onItemClickListener(View view, int posiotn, boolean isLongClick) {\n Intent detailsIntent = new Intent(FoodActivity.this, FoodDetailsActivity.class);\n detailsIntent.putExtra(\"foodId\", mSearchFoodAdapter.getRef(posiotn).getKey());\n startActivity(detailsIntent);\n }", "public void onListItemClick(ListView list, View v, int position, long id)\n {\n Intent intent = new Intent(MainActivity.this, EventActivities.class);\n intent.putExtra(\"c\", position);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Cursor cursor = (Cursor) listView.getItemAtPosition(position);\n\n // Get the record's ID from this row in the database.\n int rowID = cursor.getInt(cursor.getColumnIndexOrThrow(\"_id\"));\n Log.w(TAG, \"RowID to pass to RecordScreen activity is \" + rowID);\n //Toast.makeText(getApplicationContext(), rowID, Toast.LENGTH_SHORT).show();\n\n //Starting a new Intent with Bundle\n Intent intent = new Intent(getApplicationContext(), RecordActivity.class);\n //Send the rowId to recordScreen\n intent.putExtra(\"rowID\", rowID);\n intent.putExtra(\"fromBarcode\", false);\n Log.w(TAG, \"Row ID \" + rowID + \" being sent to RECORD SCREEN activity...\");\n //Sending data to another Activity\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(MainActivity.this, TarefaActivity.class);\n intent.putExtra(\"TITULO\", tarefas.get(position).getNome());\n\n\n Intent inten2 = new Intent (MainActivity.this, TarefaActivity.class);\n intent.putExtra(\"DESCRICAO\", tarefas.get(position).getDescricao());\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\n\t\t\t\tString ExhibitionID = dataGrid.get(position).getExhibitionID();\n\t\t\t\t\n\t\t\t\tIntent eventDetails = new Intent(context, EventInfo.class);\n\t\t\t\teventDetails.putExtra(\"ExhibitionID\", ExhibitionID);\n\t\t\t\tstartActivity(eventDetails);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onCardClicked(int index) {\n\n Intent intent = new Intent(getActivity(), FeedDetailActivity.class);\n intent.putExtra(\"fId\", listFeed.get(index).getId());\n intent.putExtra(\"Status\", Constants.FEED_HOME);\n intent.putExtra(\"data\", listFeed.get(index));\n intent.putExtra(\"From\", \"Feeds\");\n startActivityForResult(intent, 101);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Intent intent = ItemDetailActivity\n .newIntent(RestaurantActivity.this,\n locations.get(position));\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Movie movie = mMoviesAdapter.getData().get(position);\n Intent intent = new Intent(getActivity(), MovieDetailsActivity.class)\n .putExtra(getString(R.string.movie_object_intent), movie);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n Intent in = new Intent(mContext, SingleItemActivity.class);\n in.putExtra(\"titleMain\", itemSubModel.getName());\n in.putExtra(\"wishListStatus\", itemSubModel.getStatusWishList());\n in.putExtra(\"productId\", itemSubModel.getId());\n\n mContext.startActivity(in);\n//\n }", "@Override\n public void onClick(View v) {\n Movie movieItem = (Movie) containerView.getTag (); // getting the current movie item from setTag(movieItem)\n int position = getAdapterPosition (); //getting the position index i.e. it start from 0\n Log.d(\"Position\", \"\"+position + movieItem.getTitle ());\n Intent intent = new Intent (v.getContext (), DetailActivity.class);\n\n // intent.putParcelableArrayListExtra(\"ALLMOVIELIST\", (ArrayList<? extends Parcelable>) allList);\n intent.putExtra (\"movieTitle\", movieItem.getTitle ());\n intent.putExtra (\"movieImage\", movieItem.getImage());\n\n v.getContext ().startActivity (intent);\n }", "@Override\n\t public void onItemClick(AdapterView<?> parent, View view,\n\t int position, long id) {\n\t String reference = ((TextView) view.findViewById(R.id.reference)).getText().toString();\n\t \n\t // Starting new intent\n\t Intent in = new Intent(getApplicationContext(),\n\t SinglePlaceActivity.class);\n\t in.putExtra(\"LAT\", latitude);\n\t in.putExtra(\"LON\", longitude);\n\t // Sending place refrence id to single place activity\n\t // place refrence id used to get \"Place full details\"\n\t in.putExtra(KEY_REFERENCE, reference);\n\t startActivity(in);\n\t }", "@SuppressWarnings(\"unchecked\")\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a click on an entry, do something...\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\tif (row.getString(\"label\").equals(\"url\")) {\n \t\t\trow.putString(\"url\", row.getString(\"content\"));\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"DOI\")) {\n \t\t\tString url = \"http://dx.doi.org/\"+Uri.encode(row.getString(\"content\"));\n \t\t\trow.putString(\"url\", url);\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn;\n \t \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \t \tLog.d(TAG, \"Trying to start attachment activity\");\n \t \t \tIntent i = new Intent(getBaseContext(), AttachmentActivity.class);\n \t \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \t \tstartActivity(i);\n \t \t\t\treturn;\n \t \t\t}\n \t\t\n \t\t\t\tToast.makeText(getApplicationContext(), row.getString(\"content\"), \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, DetailsSessionActivity.class);\n intent.putExtra(\"exercise\", holder.title.getText().toString());\n context.startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView mTextViewId = view.findViewById(R.id.hidden_nearby_id);\n TextView mTextViewName = view.findViewById(R.id.text_nearby_name);\n TextView mTextViewAddress = view.findViewById(R.id.text_nearby_address);\n\n Intent intent = new Intent(LocateDoctorActivity.this, DoctorInfoActivity.class);\n\n //pass intent extra(doctorID)\n intent.putExtra(\"doctorId\", mTextViewId.getText().toString());\n intent.putExtra(\"doctorName\", mTextViewName.getText().toString());\n intent.putExtra(\"doctorAddress\", mTextViewAddress.getText().toString());\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"nb\", nama[position]);\n intent.putExtra(\"gb\", gambar[position]);\n intent.putExtra(\"dt\", detail[position]);\n context.startActivity(intent);\n\n\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n Intent intent = new Intent(MainActivity.this, ImageActivity.class);\n intent.putExtra(\"index\", i);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n\n\n Intent in = new Intent(mContext, SingleItemActivity.class);\n in.putExtra(\"titleMain\", itemSubModel.getName());\n in.putExtra(\"wishListStatus\", itemSubModel.getStatusWishList());\n in.putExtra(\"productId\", itemSubModel.getId());\n mContext.startActivity(in);\n//\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent activityIntent = new Intent(MainActivity.this, LocalList.class);\n// activityIntent.putExtra(\"reps\", getInfo(MainActivity.this, link));\n activityIntent.putExtra(\"zipcode\", zipcode.getText().toString());\n startActivity(activityIntent);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n long id_To_Search = arg3;\n Bundle dataBundle = new Bundle();\n dataBundle.putLong(\"id\", id_To_Search);\n Intent intent = new Intent(getApplicationContext(), DisplayContactActivity.class);\n intent.putExtras(dataBundle);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"status\", \"2\");\n\t\t\t\tintent.putExtra(\"detail\", list.get(arg2));\n\t\t\t\tintent.setClass(MySave.this, JobDetail.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(MainActivity.this, ChampionFocusActivity.class);\n intent.putExtra(\"champion\", (Serializable) listChampView.getItemAtPosition(position));\n startActivity(intent);\n }", "@Override\n public void onItemClick(View view, int position) {\n Intent intent = new Intent(getApplicationContext(), EntityActivity.class);\n intent.putExtra(Constants.ENTITY_NAME, rv_adapter.getItem(position).getEntity_name());\n intent.putExtra(Constants.ENTITY_DESCRIPTION, rv_adapter.getItem(position).getEntity_description());\n intent.putExtra(Constants.ENTITY_ADDRESS, rv_adapter.getItem(position).getAddress());\n intent.putExtra(Constants.ENTITY_PHONE, rv_adapter.getItem(position).getPhone_number());\n intent.putExtra(Constants.ENTITY_POSITION, rv_adapter.getItem(position).getLongitude() + \",\" + rv_adapter.getItem(position).getLatitude());\n intent.putExtra(Constants.ENTITY_LINK, rv_adapter.getItem(position).getLink());\n intent.putExtra(Constants.ENTITY_EMAIL, rv_adapter.getItem(position).getEmail());\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // get Friend object of clicked position\n Friend clickedFriend = (Friend) parent.getItemAtPosition(position);\n\n // create intent and pass clicked friend through to ProfileActivity\n Intent intent = new Intent(MainActivity.this, ProfileActivity.class);\n intent.putExtra(\"clicked_friend\", clickedFriend);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n int type = i+1;\n Intent intent = new Intent(viewHolder.itemView.getContext(), ShowItemActivity.class);\n intent.putExtra(\"type\",String.valueOf(type));\n viewHolder.itemView.getContext().startActivity(intent);\n\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tItemDetails itemDetails = (ItemDetails) list.getAdapter()\n\t\t\t\t\t\t.getItem(arg2);\n\n\t\t\t\tnew AlertDialog.Builder(FindAProductActivity.this)\n\t\t\t\t\t\t.setTitle(\"Information:\")\n\t\t\t\t\t\t.setMessage(\"\" + itemDetails.getName())\n\t\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_info)\n\t\t\t\t\t\t.setNeutralButton(\"OK\", null).show();\n\n\t\t\t\t// Bundle bundle = new Bundle();\n\t\t\t\t// bundle.putSerializable(\"ItemDetails\", itemDetails);\n\t\t\t\t// i.putExtras(bundle);\n\t\t\t\t// startActivity(i);\n\t\t\t}" ]
[ "0.782486", "0.7602528", "0.7510523", "0.7497498", "0.7382407", "0.73726624", "0.7353442", "0.73507905", "0.73496073", "0.73437583", "0.73364484", "0.73364484", "0.7324034", "0.7317243", "0.7275368", "0.72539467", "0.7253855", "0.72504747", "0.71862507", "0.71696866", "0.71555597", "0.7146893", "0.7141326", "0.7130439", "0.7124363", "0.7114556", "0.7097475", "0.70865506", "0.7071037", "0.7069075", "0.7048135", "0.7034068", "0.70255035", "0.70136064", "0.70008683", "0.69991904", "0.69900656", "0.69844323", "0.6960451", "0.6954586", "0.69384646", "0.69340533", "0.6923862", "0.6922665", "0.6917316", "0.6912503", "0.6911465", "0.6904292", "0.6903595", "0.68952155", "0.6884689", "0.6881386", "0.687892", "0.68739396", "0.68707496", "0.68611205", "0.686019", "0.6854818", "0.68526167", "0.68484646", "0.6847793", "0.6837135", "0.6832691", "0.6830125", "0.6811335", "0.6809959", "0.6801243", "0.6798098", "0.67930144", "0.67889285", "0.67853725", "0.6781281", "0.67475647", "0.67469925", "0.67450535", "0.6744038", "0.6742566", "0.6741952", "0.67321604", "0.67274547", "0.67251164", "0.6724893", "0.67232865", "0.6712105", "0.6710035", "0.67049897", "0.6701673", "0.67011595", "0.6694554", "0.66860074", "0.66845423", "0.6677857", "0.66730684", "0.6669474", "0.6668008", "0.6667805", "0.66593564", "0.66576475", "0.6653636", "0.6653533", "0.66494966" ]
0.0
-1
Retrieve chosen Entry Entry clickedEntry = (Entry) adapterView.getItemAtPosition(i);
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MediaPlayer.create(getActivity(), R.raw.click).start();\n\n RedditEntry redditEntry = (RedditEntry) adapterView.getItemAtPosition(i);\n Intent intent = new Intent(getActivity(), EntryDisplayActivity.class);\n intent.putExtra(\"entry\", redditEntry);\n startActivity(intent);\n }", "public void editEntry(int id) {\n ListView entryList = (ListView) getView().findViewById(R.id.breakfastFoods);\n ListAdapter arrayAdapter = entryList.getAdapter();\n String entry = (String) arrayAdapter.getItem(id);\n Intent i = new Intent(getActivity(), EditEntry.class);\n i.putExtra(\"pos\", \"\" + id);\n startActivity(i);\n }", "@Override\n public void OnItemClick(View view, int postion) {\n Intent intent = new Intent(MyPubishActivity.this, IndexDetailActivity.class);\n String entryId = String.valueOf(publishList.get(postion).getItem_id());\n intent.putExtra(\"entryId\", entryId);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final String def = definition.get(position);\n\n // Create an intent for the termDefinitions View\n Intent intent = new Intent(getApplicationContext(), termDefinition.class);\n\n // Parse the data selected\n intent.putExtra(\"definition\", def);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tExpertsInfo expertsInfo = expertAdapter.getItem(arg2-1) ;\n\t\t\t\tif(expertsInfo != null){\n\t\t\t\t\ttoExpertInfo(expertsInfo);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onClick(View v)\n {\n int adapterPosition = getAdapterPosition();\n mCursor.moveToPosition(adapterPosition);\n int recipeID = mCursor.getInt(MainActivity.INDEX_RECIPE_ID);\n String recipeName = mCursor.getString(MainActivity.INDEX_RECIPE_NAME);\n mClickHandler.onClickRecipeAdapter(recipeID, recipeName);\n }", "public void onItemClick(final AdapterView<?> parent, final View view,\n final int position, final long id)\n {\n logEnter(LOG_TAG, \"onItemClick\", parent, view, position, id);\n\n final TextView item = (TextView) view;\n final SearchResultEntry e = entryMap.get(item.getText().toString());\n if (e != null)\n {\n final Intent i = new Intent(this, ViewEntry.class);\n i.putExtra(ViewEntry.BUNDLE_FIELD_ENTRY, e);\n startActivity(i);\n }\n }", "public void onItemClick(int mPosition)\n {\n final FoodEntry entry = httpResponse.get(mPosition);\n\n Intent entryScreen = new Intent(getApplicationContext(), EntryScreenActivity.class);\n\n entryScreen.putExtra(\"building\", entry.getBuilding());\n entryScreen.putExtra(\"location\", entry.getLocation());\n entryScreen.putExtra(\"category\", entry.getCategory());\n entryScreen.putExtra(\"type\", entry.getType());\n entryScreen.putExtra(\"description\", entry.getDescription());\n entryScreen.putExtra(\"votes\", entry.getVotes());\n\n startActivity(entryScreen);\n }", "public e getItem(int i) {\n return (e) this.d.get(i);\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tif (which == 0) {\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"postion==\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ position);\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"id==\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ items.get(position - 1)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId());\r\n\t\t\t\t\t\t\t\t\t\tboolean delete = databaseHelper\r\n\t\t\t\t\t\t\t\t\t\t\t\t.deleteNoteById(items.get(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition - 1).getId());\r\n\t\t\t\t\t\t\t\t\t\t// System.out.println(\"position==\"+position+\",\"+\"delete==\"+delete);\r\n\t\t\t\t\t\t\t\t\t\titems = getData();\r\n\t\t\t\t\t\t\t\t\t\tadapter = new NoteAdapter(\r\n\t\t\t\t\t\t\t\t\t\t\t\tNoteListActivity.this, items,\r\n\t\t\t\t\t\t\t\t\t\t\t\tisNull);\r\n\t\t\t\t\t\t\t\t\t\tlistView.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\t\t} else if (which == 1) {\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Intent i = new Intent(CRA.this,\n SingleItemView.class);\n // Pass data \"name\" followed by the position\n i.putExtra(\"name\", ob.get(position).getString(\"name\")\n .toString());\n // Open SingleItemView.java Activity\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Intent i = new Intent(getApplicationContext(), ArticleActivity.class);\n //get the article to display\n Article article = articles.get(position);\n //pass in that article into intent\n i.putExtra(\"article\", article);\n //launch the activity\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(this, QuestDisplayActivity.class );\n intent.putExtra(\"Quest\", quests.get(position));\n\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n\n String value = adapter.getItem(position);\n\n switchToSingleRatingActivity(position);\n\n }", "@Override\n public void onClick(View v) {\n if (mOnEntryClickListener != null) {\n mOnEntryClickListener.onEntryClick(v, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView tv = (TextView) view.findViewById(R.id.note_id);\n String clickedID = tv.getText().toString();\n Intent intent = new Intent(this, EditNoteActivity.class);\n intent.putExtra(NOTE_ID, clickedID);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapter, View item, int pos, long id) {\n Intent editIntent = new Intent(TodoListActivity.this, EditItemActivity.class);\n editIntent.putExtra(\"position\", pos);\n editIntent.putExtra(\"value\", todos.get(pos));\n\n startActivityForResult(editIntent, EDIT_ITEM_REQUEST_CODE); // brings up the second activity\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ApplicationParents.getInstance().parents.push(getIntent());\n\n Exercise exercise = (Exercise) listView.getItemAtPosition(position);\n Intent i = new Intent(EditWorkoutActivity.this, EditExerciseActivity.class);\n i.putExtra(\"Exercise\", exercise);\n i.putExtra(\"Workout\", workout);\n i.putExtra(\"User\", user);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n int position = (Integer) v.getTag();\n Object object = getItem(position);\n UserRatingDataModel dataModel = (UserRatingDataModel) object;\n switch(v.getId()){\n }\n }", "@Override\n public void onClick(View v) {\n int mPosition = getLayoutPosition();\n // Use that to access the affected item in cryptoList.\n double idClicked = cryptoList.get(mPosition).market_cap_rank; //[mPosition].market_cap_rank; //get(mPosition);\n\n Intent i = new Intent(v.getContext(), Detail.class);\n i.putExtra(\"rank\", idClicked);\n v.getContext().startActivity(i);\n\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityStCategory = items[which];\n }", "public void onItemClick(View view, int position);", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Matter matter = adapter.getItem(position);\n // Here you can do the action you want to...\n Toast.makeText(FilterActivity.this, \"ID: \" + matter.get_projeadi() + \"\\nName: \" + matter.get_projekodu(),\n Toast.LENGTH_SHORT).show();\n }", "AccountFilterSelectListTableEntry getEntry(final int index) {\n return _data.get(index);\n }", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString row= diveRow.get(position);\n\t\t\t\t\t\tIntent i = new Intent(\"android.intent.action.VIEWSELECTEDDIVE\");\n\t\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\t\textras.putString(\"row\", row);\n\t\t\t\t\t\ti.putExtras(extras);\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//Toast.makeText(getBaseContext(), \"Row selected: \"+ row, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t//cursor.close();\n\t\t\t\t\t\t//dataBaseCursor.close();\n\t\t\t\t\t\tfinish();//free resources\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a click on an entry, do something...\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\tif (row.getString(\"label\").equals(\"url\")) {\n \t\t\trow.putString(\"url\", row.getString(\"content\"));\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"DOI\")) {\n \t\t\tString url = \"http://dx.doi.org/\"+Uri.encode(row.getString(\"content\"));\n \t\t\trow.putString(\"url\", url);\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn;\n \t \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \t \tLog.d(TAG, \"Trying to start attachment activity\");\n \t \t \tIntent i = new Intent(getBaseContext(), AttachmentActivity.class);\n \t \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \t \tstartActivity(i);\n \t \t\t\treturn;\n \t \t\t}\n \t\t\n \t\t\t\tToast.makeText(getApplicationContext(), row.getString(\"content\"), \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t}", "abstract public void onSingleItemClick(View view);", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(final View v) {\n Intent intent = new Intent(theInflatedView.getContext(), InfoPlant.class);\n\n int selectedItems = position;\n String fRef = String.valueOf(mFirebaseAdapter.getRef(selectedItems).getKey());\n intent.putExtra(\"PLANT_REF\", fRef);\n startActivity(intent);\n\n //Toast.makeText(theInflatedView.getContext(), \"\"+ mFirebaseAdapter.getRef(position).getKey(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View view) {\n // Get the clicked post\n int position = getAdapterPosition();\n // Valid Position\n if (position != RecyclerView.NO_POSITION) {\n Post post = posts.get(position);\n Intent intent = new Intent(context, DetailsActivity.class);\n // Doing the post parcelable means converting its attributes to a String\n intent.putExtra(\"postDetails\", Parcels.wrap(post));\n context.startActivity(intent);\n }\n }", "void onItemClick(int position);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n int id_To_Search = arg2 + 1;\r\n String name = (String) arg0.getItemAtPosition(arg2);\r\n\r\n Bundle dataBundle = new Bundle();\r\n dataBundle.putString(\"name\", name);\r\n dataBundle.putInt(\"id\", id_To_Search);\r\n\r\n Intent intent = new Intent(getApplicationContext(),DisplayCreatedRecipes.class);\r\n intent.putExtras(dataBundle);\r\n startActivity(intent);\r\n }", "@Override\n public void onClick(View view) {\n RecyclerView.ViewHolder viewHolder = (RecyclerView.ViewHolder) view.getTag();\n position = viewHolder.getAdapterPosition();\n\n // viewHolder.getItemId();\n // viewHolder.getItemViewType();\n// viewHolder.itemView.;\n //Station thisItem = stations2.get(position);\n //Station currentStation = stations2.get(position);\n //SharedPreferences sharedPreferences = getSharedPreferences(\"MasterSave\", MODE_PRIVATE);\n SharedPreferences prefs = getSharedPreferences(\"keeper\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n //editor.putString(\"name\",nameofStation);\n editor.putInt(\"selected\", position);\n editor.apply();\n Objects.requireNonNull(recyclerView.getAdapter()).notifyDataSetChanged();//? may NULL\n\n Toast.makeText(MainActivity.this, \"You Clicked: \" + position, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tGlobalApplication app = (GlobalApplication) getApplication();\n\t\t\t\t\tRecipe currentRecipe = recipes.get(position);\n\t\t\t\t\tapp.setCurrentRecipe(currentRecipe);\n\t\t\t\t\t//set up test to check user for the recipe\n\t\t\t\t\tif (currentRecipe.getOwner() != null) {\n\t\t\t\t\t\tif (currentRecipe.getOwner() == app.getCurrentUser().getUserName()){\n\t\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\t\tapp,\n\t\t\t\t\t\t\t\t\tca.ualberta.cs.oneclick_cookbook.ViewFullRecipeActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"position\", position);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\t\tapp,\n\t\t\t\t\t\t\t\t\tca.ualberta.cs.oneclick_cookbook.CreateRecipeActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"position\", position);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//no current user allow for edit in the recipe\n\t\t\t\t\telse {\n\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\tapp,\n\t\t\t\t\t\t\t\tca.ualberta.cs.oneclick_cookbook.CreateRecipeActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"position\", position);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t}", "void onItemClick(View view, int position);", "public ChoiceEntry getEntry(String key){\n if (key==null)\n return null;\n return ((ChoiceEntry)_entries.get(key));\n }", "@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n Intent i = new Intent(MainActivity.this, FragmentEditDialog.class);\n\n String itemText = items.get(position).taskName;\n\n i.putExtra(\"editPos\", position);\n i.putExtra(\"editItem\", itemText);\n\n startActivityForResult(i, REQUEST_CODE); // brings up the edit\n }", "int getItem(int index);", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tchoosed = pos;\n\t\t\t\t\t\tSingleListAdaper.this.notifyDataSetChanged();\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n slctdExpndColpsPostn = position;\n notifyDataSetChanged();\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onClick(View v) {\n mHandler.onClick(mRecipes.get(getAdapterPosition()));\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView,\n View view, int position, long rowId) {\n Traffic traffic = resultsOfIncidents.get(position);\n\n Intent intent = new Intent(IncidentsClass.this, DetailsClass.class);\n intent.putExtra(\"title\", traffic.getTitle());\n intent.putExtra(\"description\", traffic.getDescription());\n intent.putExtra(\"link\", traffic.getLink());\n intent.putExtra(\"georss\", traffic.getGeorss());\n intent.putExtra(\"author\", traffic.getAuthor());\n intent.putExtra(\"comments\", traffic.getComments());\n intent.putExtra(\"pubDate\", traffic.getPubDate());\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapter, View view, int i, long l) {\n Contato contatoEscolhido = (Contato) adapter.getItemAtPosition(i);\n Intent intent = new Intent(ListaContato.this, CadastrarContato.class);\n intent.putExtra(\"contato-escolhido\", contatoEscolhido);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n update(holder.getAdapterPosition());\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {\n ViewEntry viewEntry = (ViewEntry) expandableListView.getItemAtPosition(childPosition + 1);\n\n Bundle extras = new Bundle();\n\n //array that contains all viewEntry object fields\n String[] keys = getResources().getStringArray(R.array.keys);\n\n //adds all information from the chosen viewEntry object into extras so it can be passed to Detailed_View activity\n for (String key : keys) {\n switch (key) {\n case \"unid\":\n extras.putString(key, viewEntry.unid);\n break;\n case \"Type\":\n extras.putString(key, null);\n break;\n default:\n extras.putString(key, viewEntry.getEDByName(key).getText());\n break;\n }\n }\n\n Intent intent = new Intent(Events_and_Festivals.this, Detailed_View.class);\n intent.putExtras(extras);//passes extras to activity\n startActivity(intent);\n\n return false;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String postObjectID = customAdapter.getItem(position).getObjectId();\n\n // go to viewwatchitem and pass postobjectd with the intent\n Intent intent = new Intent(this, ViewWatchItem.class);\n intent.putExtra(MESSAGE,postObjectID);\n startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Object object = mList.getItemAtPosition(position);\n String element = \"\";\n // check if list item object is really a hash map\n if (object instanceof StringStringHashMap) {\n // extract the title from the hash map\n element = ((StringStringHashMap) object).get(ITEM_TITLE);\n }\n // show selected item\n Toast.makeText(PDEListPlainIconMultiLineActivity.this, \"Selected : \" + element,\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n mPostion = i;\n Cursor cursor = mForecastAdapter.getCursor();\n if (cursor != null && cursor.moveToPosition(i)) {\n String dateString = cursor.getString(COL_WEATHER_DATE);\n ((Callback) getActivity()).onItemSelected(dateString);\n\n\n }\n }", "public CalendarItem getItem(int i);", "@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\t\tposition--;\r\n\t\t// DataStore store = DataStore.getInatance();\r\n\t\t// List<TestEntity> entities = store.getTextEntities();\r\n\t\t//\r\n\t\t// TestEntity entity = entities.get(position);\r\n\t\t//\r\n\r\n\t\tIntent intent = new Intent(getActivity(), EssayDetailActivity.class);\r\n\r\n\t\tintent.putExtra(\"currentEssayPosition\", position);\r\n\t\tintent.putExtra(\"category\", requestCategory);\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString txt = aa.getItem(which);\n\t\t\t\t\t\n\t\t\t\t\tad.setTitle(txt);\n\t\t\t\t\t\n\t\t\t\t\tet.setText(txt);\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int relpos = position - 1;\n Intent intent = new Intent();\n intent.setClass(InspectTaskList.this, InspectTaskDetail.class);\n // getEntity\n if (list != null && list.size() > relpos) {\n Task task = list.get(relpos);\n String json = new Gson().toJson(task);\n intent.putExtra(AeaConstants.EXTRA_TASK, json);\n startActivityForResult(intent, REQUEST_CODE_TASK_REPORT);\n }\n selectedId = relpos;\n }", "public PostingsEntry get( int i ) {\n\t return list.get(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "public interface IEntry {\n\tpublic int getViewType();\n public View getView(LayoutInflater inflater, View convertView);\n}", "@Override\n public Object getItem(int index) {\n return listInfo.get(index);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent i = new Intent(getActivity(), SingleItemView.class);\n\t\t\t\t// Pass all data rank\n\t\t\t\ti.putExtra(\"rank\", rank);\n\t\t\t\t// Pass all data country\n\t\t\t\ti.putExtra(\"country\", country);\n\t\t\t\t// Pass all data population\n\t\t\t\ti.putExtra(\"population\", population);\n\t\t\t\t// Pass all data flag\n\t\t\t\ti.putExtra(\"flag\", flag);\n\t\t\t\t// Pass a single position\n\t\t\t\ti.putExtra(\"position\", position);\n\t\t\t\t// Open SingleItemView.java Activity\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onClick(View v) {\n\n if (v.getId() == rateBtn.getId()) {\n Intent intent = new Intent(mContext, Rating.class);\n mContext.startActivity(intent);\n }else if (v.getId() == commentBtn.getId()) {\n Intent intent = new Intent(mContext, CommentList.class);\n intent.putExtra(MsgAdapter.MESSAGE_ID, itemList.get(getAdapterPosition()).getUID());\n mContext.startActivity(intent);\n } else {\n Toast.makeText(v.getContext(), \"ROW PRESSED = \" + String.valueOf(getAdapterPosition()), Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }", "@Override\n protected void onItemClickListener(int adapterPosition, int layoutPosition) {\n\n\n CondicaoPagamento condpgto = adaptercondpgto.getItems().get(adapterPosition);\n if (selecionandoCondPgto) {\n Intent data = new Intent();\n data.putExtra(\"condpgto_id\", condpgto.getIdcodicaopagamento());\n setResult(RESULT_OK, data);\n finish();\n } else {\n idcondpgto = condpgto.getIdcodicaopagamento();\n nomecondpgto = condpgto.getDescricao();\n\n }\n\n }", "@Override\n public View getView(final int position, final View convertView, ViewGroup parent) {\n Holder holder=new Holder();\n final View rowView;\n rowView = inflater.inflate(R.layout.post_row, null);\n holder.tv1=(TextView) rowView.findViewById(R.id.posttitle);\n holder.tv2=(TextView) rowView.findViewById(R.id.postbody);\n holder.tv3=(TextView) rowView.findViewById(R.id.postvotes);\n holder.tv4=(TextView) rowView.findViewById(R.id.post_resolved_status);\n holder.tv5=(TextView) rowView.findViewById(R.id.name);\n holder.tv1.setText(titles.get(position));\n holder.tv2.setText(body.get(position));\n holder.tv3.setText(votes.get(position));\n holder.tv4.setText(resolved.get(position));\n holder.tv5.setText(posted_by.get(position));\n rowView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n\n //courselist1.getcoursedetails(rowView);\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }\n });\n return rowView;\n }", "@Override\n public void onItemClick(View view, int position){\n }", "public T getEntry(int givenPosition);", "@Override\n public void onItemClick(View view, int position) {\n try {\n\n getItemInfo(view, position);\n\n } catch (Exception e) {\n\n }\n// String details=menuItems.get(position).getF1();\n// if(details!= null)\n// updateItemsDetails(details,view,position);\n\n\n }", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }", "@Override\n public void onClick(View view) {\n if (mFilteredCursor.isClosed()) return;\n mFilteredCursor.moveToPosition(getAdapterPosition());\n String contactName = mFilteredCursor.getString(mFilteredCursor.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n long contactId = mFilteredCursor.getLong(ContactsFragment.INDEX_EMAIL_CONTACT_ID);\n\n Uri contactUri = Uri.withAppendedPath(\n ContactsContract.Contacts.CONTENT_URI, String.valueOf(contactId));\n selectedPos = getAdapterPosition();\n notifyDataSetChanged();\n\n mOnClickHandler.onClick(contactUri, contactName);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position,\n\t\t\tlong id) {\n\t\tHomeworkListEntry selectedHomework = (HomeworkListEntry) getListAdapter()\n\t\t\t\t.getItem(position);\n\n\t\t// launch the new activity, the REQUEST is an int used to know what is\n\t\t// meant to happen on opening the acitvity, new or edit\n\t\tIntent myIntent = new Intent(HomeworkActivity.this,\n\t\t\t\tHomeworkDetailActivity.class);\n\t\t// To avoid having to implement parcelable or serializable putting key\n\t\t// pair values\n\t\tmyIntent.putExtra(HOMEWORK_ID, selectedHomework.getId());\n\n\t\tdb.close();\n\n\t\tmyIntent.putExtra(HOMEWORK_EDIT, true);\n\n\t\tHomeworkActivity.this.startActivityForResult(myIntent,\n\t\t\t\tEDIT_HOMEWORK_REQUEST);\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\r\n\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int postion,\r\n\t\t\t\tlong id) {\n\t\t\tif(search_contact_for_name == true){\r\n\t\t\t\tIntent intent = new Intent(search_contact.this,add_birthday.class);\r\n\t\t\t\tintent.putExtra(\"search_contact_for_name\", listItems.get(postion).getName());\r\n\t\t\t\tsetResult(add_birthday.SEARCH_CONTACT_FOR_NAME, intent);\r\n\t\t\t\tsearch_contact.this.finish();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(search_contact_for_phone == true){\r\n\t\t\t\tIntent intent = new Intent(search_contact.this,add_birthday.class);\r\n\t\t\t\tintent.putExtra(\"search_contact_for_phone\", listItems.get(postion).getPhone());\r\n\t\t\t\tsetResult(add_birthday.SEARCH_CONTACT_FOR_PHONE, intent);\r\n\t\t\t\tsearch_contact.this.finish();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(send_sms_search_contact_for_phone == true){\r\n\t\t\t\tIntent intent = new Intent(search_contact.this,send_sms.class);\r\n\t\t\t\tintent.putExtra(\"send_sms_search_contact_for_phone\", listItems.get(postion).getPhone());\r\n\t\t\t\tsetResult(send_sms.SEARCH_CONTACT_FOR_PHONE, intent);\r\n\t\t\t\tsearch_contact.this.finish();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onItemClickListener(View view, int posiotn, boolean isLongClick) {\n Intent detailsIntent = new Intent(FoodActivity.this, FoodDetailsActivity.class);\n detailsIntent.putExtra(\"foodId\", mFoodAdapter.getRef(posiotn).getKey());\n startActivity(detailsIntent);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch (view.getId()) {\n case R.id.id_contact_title:\n LinearLayout ll = (LinearLayout) view.findViewById(R.id.id_contact_title);\n Log.i(TAG, \"Clicked : \" + ll.getTag());\n break;\n }\n }" ]
[ "0.68431705", "0.6572479", "0.64694977", "0.6395276", "0.6375057", "0.633946", "0.6314577", "0.6281828", "0.6270551", "0.62224215", "0.6179857", "0.6176003", "0.6169444", "0.61688405", "0.6131876", "0.6111027", "0.61061674", "0.608828", "0.6074576", "0.60642695", "0.6060355", "0.6034492", "0.6029781", "0.600584", "0.60028344", "0.5998419", "0.598905", "0.59847695", "0.597492", "0.59705687", "0.59705687", "0.59705687", "0.59611756", "0.59565806", "0.5950611", "0.5950566", "0.59371215", "0.59310204", "0.59229124", "0.5921781", "0.5921781", "0.5921781", "0.5921781", "0.5921781", "0.5921488", "0.5915701", "0.58978677", "0.58949196", "0.5888676", "0.5885163", "0.5874547", "0.5861117", "0.5857577", "0.5854612", "0.5850925", "0.58496916", "0.58496916", "0.58429825", "0.58350277", "0.5826789", "0.58209074", "0.5820156", "0.5814326", "0.5814326", "0.5811235", "0.58085686", "0.58069336", "0.58064383", "0.5799195", "0.5799067", "0.57985526", "0.57896465", "0.5784053", "0.57814914", "0.5779877", "0.577958", "0.5773787", "0.5766627", "0.57529116", "0.57529116", "0.57407933", "0.57402295", "0.573855", "0.57365257", "0.57292795", "0.5728669", "0.5727956", "0.572728", "0.57238686", "0.5722781", "0.5722453", "0.5718124", "0.57128966", "0.57128966", "0.5704528", "0.5704528", "0.5703668", "0.5703458", "0.56918544" ]
0.599853
26
Go to the next activity
private void toInputActivity() { Intent intent = new Intent(this, InputActivity.class); this.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }", "protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}", "public void next() {\n String type = startIntent.getStringExtra(\"type\");\n String mdKey = startIntent.getStringExtra(\"md_key\");\n Intent next = new Intent(activity, MainActivity.class);\n\n if(type != null && !type.isEmpty() ||\n (type != null && !type.isEmpty() &&\n mdKey != null && !mdKey.isEmpty())) {\n next.putExtra(\"type\", type);\n\n if (type.equals(\"order_info\") ||\n type.equals(\"order_chat\")) {\n next.putExtra(\"md_key\", mdKey);\n }\n }\n\n activity.startActivity(next);\n activity.finish();\n }", "public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}", "private void nextLevel() {\n Intent nextLevel = new Intent(GameLevelActivity.this, GameLevelActivity.class);\n nextLevel.putExtra(IGameLevelConstants.INTENT_TYPE, IGameLevelConstants.NEXT_LEVEl);\n startActivity(nextLevel);\n }", "private void gotoOtherActivity() {\n finish();\n }", "public void goToNextPage() {\n nextPageButton.click();\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "public void gotoProfileActivity()\n {\n Log.e(\"next\",\"\"+\"log\");\n startActivity(new Intent(OTPActivity.this, UserProfileActivity.class));\n finish();\n }", "public void toNext(View view) {\n Intent intent = new Intent(this, BonusSpinner.class);\n intent.putExtra(\"player\", player);\n startActivity(intent);\n finish();\n }", "@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }", "public void toNextPage(View v) {\n Intent i = new Intent(MainActivity.this, SecondActivity.class);\n i.putExtra(\"is_played\", is_played);\n startActivity(i);\n }", "@Override\n\tpublic void navigateToNext(String phoneNum) {\n\t\t\n\t}", "private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }", "public void forwardOnClick(View view){\n while(Integer.parseInt(mazeController.getPercentDone()) < 99) {\n\n }\n Intent newIntent = new Intent(this, Play.class);\n startActivity(newIntent);\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tif(v==Bn_Pre){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}else if(v==Bn_Next){\r\n\t\t\t\tIntent intent = new Intent(NextActivity.this, Next2Activity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t}", "private void openNextActivity(Intent intent) {\n\n String message = intent.getStringExtra(\"phase\");\n\n Log.d(\"STATE\", \"Waiting activity, phase is -> \" + message );\n if(message != null) {\n if (message.equals(\"USER_JOINED\")) { //TODO: This should be for ready to vote.\n Log.d(\"STATE\", \"Waiting activity, USER JOINED\" );\n\n Intent i = new Intent(this, VoteActivity.class);\n startActivity(i);\n } else if (message.equals(\"result\")) { //TODO: Change this to the new \"phase\" value\n Log.d(\"STATE\", \"Waiting activity. Meadle is ready\" );\n //Notification has been received that alerts meadle is complete\n MeadleDataManager.setHasResult(this);\n\n Intent i = new Intent(this, ResultsActivity.class);\n startActivity(i);\n } else if(message.equals(\"VOTING_FINISHED\")){\n Log.d(\"Votiing Finished\",intent.getExtras().toString());\n Intent i = new Intent(this,MeetingPointActivity.class);\n i.putExtras(intent.getExtras());\n startActivity(i);\n }\n }\n }", "@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }", "private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }", "public abstract void goNext();", "public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }", "public void nextQuestion() {\n if (currentq<questionbank.size()-1)\n {\n currentq++;\n }\n else\n {\n currentq=0;\n finished=true;\n\n Intent i = new Intent(MainActivity.this, ScorecardActivity.class);\n //Intent(coming from, where to go)\n i.putExtra(EXTRAMESSAGE1, Integer.toString(score));\n startActivity(i);\n\n }\n question.setText(questionbank.get(currentq).getQuestionText());\n\n\n }", "public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }", "void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }", "public void clickNext(View view) {\n Intent viewResultsActivityIntent = new Intent(this, ViewResultsActivity.class);\n Spinner select_transport = findViewById(R.id.select_transport);\n ElectricTransport selectedElectricTransport = (ElectricTransport) select_transport.getSelectedItem();\n // Send time, distance, and selected transport to next intent\n viewResultsActivityIntent.putExtra(DISTANCE, this.distance);\n viewResultsActivityIntent.putExtra(TIME, this.time);\n viewResultsActivityIntent.putExtra(SELECTED_TRANSPORT, selectedElectricTransport);\n viewResultsActivityIntent.putExtra(RESULTS_DESCRIPTION, this.results_description);\n\n startActivity(viewResultsActivityIntent); // Go to next screen\n }", "@Override\n public void onClick(View v) {\n tabChangeInterface.switchToTheNextTab();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OTHERBEACH;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "@Override\n public void onNextPressed() {\n }", "private void nextLevel(){\n Intent toMainAct2 = new Intent(MainActivity.this, Main2Activity.class);\n toMainAct2.putExtra(\"score\",iScore);\n startActivity(toMainAct2);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = USER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "@Override\n public void onClick(View view) {\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n binding.activityWelcomeViewPager.setCurrentItem(current);\n } else {\n //Go to sign up\n startActivity(new Intent(WelcomeActivity.this , SignupActivity.class));\n finish();\n }\n }", "@Override\n public void onClick(View view) {\n int LAUNCH_SECOND_ACTIVITY = 1;\n Intent intent = new Intent(StartActivity.this, AboutActivity.class);\n startActivityForResult(intent, LAUNCH_SECOND_ACTIVITY);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = PROPER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }", "@Override\n public void onClick(View v) {\n Intent next = new Intent(HomeActivity.this,Playerinfo.class); //set intent for going to playerinfo class\n startActivity(next); // click to continue to the next activity\n //player.pause();\n }", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }", "public void gotoAMazeActivity(View view) {\n\t\tIntent intent = new Intent(this, AMazeActivity.class);\n\t\tstartActivity(intent);\n\t\tLog.v(\"MainActivity\", \"Created the intent to move to AMazeActivity\");\n\t}", "@Override\n\tprotected void positiveResult(String command) {\n\t\tstartActivity(new Intent(this, FifthActivity.class));\n\t}", "void onClickNextTurn();", "public void onNextPress() {\n try {\n MainActivity activity = (MainActivity) getActivity();\n// activity.onChangeText(R.string.textSkip,false);\n if (Constants.isSkipButton) {\n mImgViewMicPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_mic_blue_svg_128),false,getActivity());\n mImgViewMicRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_speaker_red_svg_128),false,getActivity());\n testController.onServiceResponse(false,\"Mic\", ConstantTestIDs.MIC_ID);\n testController.onServiceResponse(false,\"Speaker\", ConstantTestIDs.SPEAKER_ID);\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n // utils.compare_UpdatePreferenceInt(ctx, JsonTags.MMR_33.name(), AsyncConstant.TEST_FAILED);\n\n // updateResultToServer();\n }\n boolean semi=false;\n nextPress(activity,semi);\n// MainActivity mainActivity = (MainActivity)getActivity();\n//// if (Constants.isDoAllClicked && mainActivity.index != mainActivity.automatedTestListModels.size()) {\n//\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(mainActivity.automatedTestListModels.get(mainActivity.index).getTest_id(), mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size() - 1).getTest_id()),null, false);\n// mainActivity.index++;\n//\n// }\n// if (Constants.isDoAllClicked && activity.manualIndex != Manual2SemiAutomaticTestsFragment.testListModelList.size()){\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(Manual2SemiAutomaticTestsFragment.testListModelList.get(activity.manualIndex).getTest_id(), Manual2SemiAutomaticTestsFragment.testListModelList.get(Manual2SemiAutomaticTestsFragment.testListModelList.size() - 1).getTest_id()),null, false);\n// activity.manualIndex++;\n//\n// }\n// else {\n//// clearAllStack();\n//// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(-1,mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size()-1).getTest_id()), FragmentTag.GPS_FRAGMENT.name(), true);\n// popFragment(R.id.container);\n// }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onNextPress()\");\n }\n\n\n }", "public void nextQuestion(View view){\n\n\n Question = findViewById(R.id.question1);\n // If the current question has been answered, validate & move on to the next question\n if (checkAnswered()){\n // Check for right or wrong answer\n validateQuestion();\n\n // Move on to the new question\n Intent intent = new Intent(getApplicationContext(),Questions2of5Activity.class);\n if (intent.resolveActivity(getPackageManager()) != null) {\n intent.putExtra(\"passedScore\",score);\n intent.putExtra(\"firstName\",firstName);\n intent.putExtra(\"lastName\",lastName);\n startActivity(intent);\n\n // Destroy activity to prevent user from going back\n finish();\n }\n }\n\n // If the question has not been answered, provide a toast message\n else {\n displayToast(\"You need to answer the question before moving on to the next\");\n }\n }", "public void startNextExperiment(View view) {\n finish();\n Intent intent = new Intent(this, StartExperimentScreen.class);\n\n ArrayList<String> experiments = databaseHandler.getPrimaryColumn(false);\n int indexOfThisExperiment = experiments.indexOf(Integer.toString(experimentNumber));\n int nextExperiment = Integer.parseInt(experiments.get(indexOfThisExperiment + 1));\n\n databaseHandler.setValueInExpInfo(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE), \"sender_latitude\", nextExperiment);\n databaseHandler.setValueInExpInfo(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE), \"sender_longitude\", nextExperiment);\n databaseHandler.setValueInExpInfo(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_ALTITUDE), \"sender_altitude\", nextExperiment);\n\n intent.putExtra(\"absolutePos\", nextExperiment);\n startActivity(intent);\n }", "private void proceed() {\n finish();\n Intent onReturnView = new Intent(ChatMessage.this, MainActivity.class);\n startActivity(onReturnView);\n }", "private void nextLevel(){\n Intent intent = new Intent(MainActivity.this, Main2Activity.class);\n intent.putExtra(\"currentPoints\", score);\n startActivity(intent);\n }", "private void returnToMain() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }", "public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }", "@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = OK;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\tcase R.id.bnext:\n\t\tIntent i = new Intent(getApplicationContext(),ClientServerJSONActivity.class);\n\t\t//Intent i = new Intent(getApplicationContext(),Form.class);\n\t\tstartActivity(i);\n\t\tbreak;\n\t\tcase R.id.bexit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}", "public void goToNextLevel(View view) {\n Intent intent = new Intent(this, BoardActivity.class);\n intent.putExtra(MSG_LVL, level+1);\n intent.putExtra(MSG_TELEPORTS, nbSafeTeleports+1);\n intent.putExtra(MSG_SCORE, score);\n startActivity(intent);\n }", "public void nextTurn() {\n\t\tLog.d(TAG, \"nextTurn()\");\t\t\n\t\ttickPeople();\n\t\t//doEvents();\n\t\tupdateBar();\n\t}", "private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n btNext.setVisibility(View.GONE);\n currentQuestion = getQuestionById(questionProgress);\n ivScene.setVisibility(View.GONE);\n tvQuestion.setVisibility(View.GONE);\n\n if (tvResult != null) {\n flSceneFrame.removeView(tvResult);\n }\n ivScene.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n ivScene.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n resizeSceneArea();\n for (int i = 0; i < 4; i++) {\n positionAnswer(answerButtonList.get(i), currentQuestion.getAnswers().get(i));\n waitAnimations();\n }\n }\n });\n } else {\n questionProgress = 10;\n Intent intent = new Intent(this, ResultActivity_.class);\n startActivity(intent);\n }\n }", "@Override\n public void onFinish(){\n Intent intent = new Intent(getBaseContext(), CodakActivity.class);\n startActivity(intent);\n }", "protected void gotoReadyPage(){\n\n Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n //\n finish();\n }", "@Override\n public void onClick(View v) {\n finishWithNextActivity(LoginActivity.class);\n\n }", "public void next() {\n addTracksToQueue();\n player.skipToNext();\n }", "void goToNext(boolean isCorrect);", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, MatchList.class);\n intent.putExtra(Constants.Intent_Extras.NEXT_PAGE, Constants.Intent_Extras.SUPER_SCOUTING);\n startActivity(intent);\n }", "private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }", "@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }", "private void goToMainActivity() {\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(DAF_YOMI_DETAILES, mDafYomiDetailes);\n startActivity(mainIntent);\n finish();\n\n }", "@Override\n public void onClick(View view) {\n switch (view.getId())\n {\n case R.id.activity_slider_btn_skip:\n Intent loginIntent = new Intent(IntroductionActivity.this, MainActivity.class);\n loginIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(loginIntent);\n finish();\n break;\n }\n }", "public void GoToScenario2 (View view) {\n Intent GoToScenario2Intent = new Intent(getApplicationContext(), Scenario2_01.class);\n startActivity(GoToScenario2Intent);\n }", "public void startTestLoop() {\n boolean shouldGoBack = false;\n Activity currentActivity = getActivityInstance();\n if (currentActivity != null) {\n evaluateAccessibility(currentActivity);\n } else {\n shouldGoBack = true;\n }\n\n\n // TODO: If goal state has been reached, terminate the test loop\n if (actionCount >= MAX_ACTIONS) {\n return;\n }\n\n // Then, come up with an estimate for what next action to take\n UiInputActionType nextAction = !shouldGoBack ? getNextActionType() : UiInputActionType.BACK;\n UiObject subject = getNextActionSubject(nextAction);\n\n // If no subject was found for this action, retry\n if (subject == null) {\n\n startTestLoop();\n\n } else {\n\n // Finally, execute that action\n try {\n Log.e(\"ACTION\", \"Performing \" + nextAction + \" on \" + subject.getClassName());\n } catch (UiObjectNotFoundException e) {\n e.printStackTrace();\n }\n executeNextAction(nextAction, subject);\n\n // Call the start loop again\n uiDevice.waitForIdle(2000);\n startTestLoop();\n\n }\n\n }", "public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }", "public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }", "private void m3179g() {\n finish();\n startActivity(new Intent(this, WelcomeActivity.class));\n }", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.UserServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "void scrollToFinishActivity();", "@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(context, MainActivity2.class); //al click sul bottone apre una nuova activity\n startActivity(intent);\n\n }", "private void nextStep(){\n if(vMaze == null)\n mainMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.step();\n tileBox.getChildren().clear();\n tileBox.getChildren().add(vMaze.getTiles());\n\n mainMessage.setText(\"You took one step.\");\n if(vMaze.getRouteFinder().isFinished())\n mainMessage.setText(\"You reached the end!\");\n } catch (NoRouteFoundException e){\n mainMessage.setText(e.getMessage());\n }\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "@Override\n // Function for once the button gets clicked\n public void onClick(View v) {\n Intent i = new Intent(FindOutMore.this, Tab_Main.class);\n // The activity is started and the variable i is placed into this\n startActivity(i);\n // This is an animation overrider...\n // This means that once the button has been pressed it will perform an animation to take\n // the users back to the new page that they have selected...\n overridePendingTransition(R.animator.ui_animation_in, R.animator.ui_animation_out);\n }", "@Override\n public void onClick(View v) {\n\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n viewPager.setCurrentItem(current);\n } else {\n launchHomeScreen();\n }\n }", "@Override\n\tpublic void onMoreLisenter() {\n\t\tstartActivity(new Intent(this, AccidentHandlingActivity.class));\n\t}", "private void forwardPage()\n {\n page++;\n open();\n }", "private void next_press() {\n Log.d(TAG, \"next match pressed\");\n\n AlertDialog.Builder builder = new AlertDialog.Builder(SuperScouting.this);\n builder.setTitle(\"Save match data?\");\n\n // Save option\n builder.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n // Collect values from all the custom elements\n List<ScoutFragment> fragmentList = adapter.getAllFragments();\n ScoutMap data = new ScoutMap();\n String error = \"\";\n for (ScoutFragment fragment : fragmentList) {\n error += fragment.writeContentsToMap(data);\n }\n\n if (error.equals(\"\")) {\n Log.d(TAG, \"Saving values\");\n if (!practice) {\n new SaveTask().execute(data);\n }\n\n // Go to the next match\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber + 1);\n }\n startActivity(intent);\n } else {\n Toast.makeText(SuperScouting.this, String.format(\"Error: %s\", error), Toast.LENGTH_LONG).show();\n }\n }\n }\n\n );\n\n // Cancel Option\n builder.setNeutralButton(\"Cancel\", new DialogInterface.OnClickListener()\n\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Dialogbox goes away\n }\n }\n\n );\n\n // Continue w/o Saving Option\n builder.setNegativeButton(\"Continue w/o Saving\", new DialogInterface.OnClickListener()\n\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Go to the next match\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber + 1);\n }\n startActivity(intent);\n }\n }\n\n );\n builder.show();\n }", "void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }", "void determineNextAction();", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "private void goToNavActivity() {\n Intent i = new Intent(MainActivity.this, NavActivity.class);\n startActivity(i);\n finish();\n }", "private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }", "private void NextTurn() {\n\t\tTextView tvStatus = (TextView) findViewById(R.id.tvStatus);\n\t\t\n\t\t\tif(player_1){\n\t\t\t\tplayer_1 = false;\n\t\t\t\tif(players == 1){ \n\t\t\t\t\ttvStatus.setText(\"Android Nole's turn\");\n\t\t\t\t\tLog.i(\"TEST\",\"Android turn\");\n\t\t\t\t\tAndroidTurn();\n\t\t\t\t}else{\n\t\t\t\t\ttvStatus.setText(\"Nole's turn\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tplayer_1 = true;\n\t\t\t\ttvStatus.setText(\"Gator's turn\");\n\t\t\t}\n\t\t}", "private void navigateToConversationsActivity() {\n startActivity(this.conversationsIntent);\n }", "public void goToEntitySelectActivity() {\n Intent intent = new Intent(LoginActivity.this, EntitySelectActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }", "public void onClick(DialogInterface dialog,int id) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(context, StepActivity.class);\n startActivity(intent);\n }\n }, 50);\n }", "private void redirectTO() {\n\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n\n finish();\n }", "public void GoToScenario1 (View view) {\n Intent GoToScenario1Intent = new Intent(getApplicationContext(), Scenario1_01.class);\n startActivity(GoToScenario1Intent);\n }" ]
[ "0.8431823", "0.7653014", "0.7342462", "0.7228805", "0.71729964", "0.70856464", "0.7041969", "0.7035452", "0.7027443", "0.7015564", "0.69887644", "0.69630617", "0.6798769", "0.67845416", "0.6751534", "0.6741018", "0.6740032", "0.67226505", "0.67149395", "0.6700915", "0.6613488", "0.65974176", "0.65969825", "0.65873164", "0.65855354", "0.6563622", "0.6539267", "0.65108615", "0.6473438", "0.6469104", "0.6457109", "0.645305", "0.64332974", "0.64243865", "0.64096963", "0.638823", "0.6375209", "0.635993", "0.63527936", "0.6335219", "0.63294405", "0.6299283", "0.6287647", "0.62861663", "0.62676644", "0.62588406", "0.6255532", "0.6252675", "0.62501", "0.6242579", "0.6233144", "0.6226415", "0.6217772", "0.62110776", "0.62058955", "0.61848503", "0.61837715", "0.61798805", "0.617311", "0.6166863", "0.6164507", "0.6164469", "0.6156631", "0.6148752", "0.61457247", "0.61453074", "0.6138786", "0.613789", "0.6136532", "0.61337316", "0.61250645", "0.6121386", "0.6118628", "0.6117054", "0.6114158", "0.6111388", "0.6108484", "0.60922724", "0.6089512", "0.6089253", "0.60786426", "0.6078275", "0.6076068", "0.6072359", "0.6071399", "0.60708845", "0.60625637", "0.60615855", "0.60592675", "0.6057777", "0.60567397", "0.6054516", "0.6051079", "0.60484254", "0.6047744", "0.60435945", "0.60280925", "0.6026325", "0.60200703", "0.6012876", "0.601159" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_commissioner, menu); menuItem=(MenuItem) menu.findItem(R.id.search); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.Profil) { Intent intent = new Intent(Commissioner.this,CommissionerProfil.class); startActivity(intent); } if (id == R.id.Payment) { Intent intent = new Intent(Commissioner.this,EnduserPayment.class); startActivity(intent); } if (id == R.id.accounts) { Intent intent = new Intent(Commissioner.this,AccountsIndex.class); startActivity(intent); } if (id==R.id.search){ // Toast.makeText(Commissioner.this,"Search Views",Toast.LENGTH_LONG).show(); int tabPos=getSupportActionBar().getSelectedTab().getPosition(); if (tabPos==1) edtSearch.setVisibility(View.VISIBLE); } if(id==R.id.balance){ progressDialog=new ProgressDialog(Commissioner.this); progressDialog.setMessage(getString(R.string.loaddata)); progressDialog.show(); String uid = synchronizer.getSession(); String url = synchronizer.getHost()+"/ajax/users.php"; //String url = "192.168.173.1:12/RUT/etracking/ajax/citizens.php"; String data = "cate=loadbyid&id=" + uid; RequestQueue queue = Volley.newRequestQueue(this); final JsonObjectRequest jsObjRequest = new JsonObjectRequest (Request.Method.GET, " http://" + url + "?" + data, null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { try{ progressDialog.dismiss(); final AlertDialog alertDialog=new AlertDialog.Builder(Commissioner.this).create(); alertDialog.setTitle(getString(R.string.accbalance)); alertDialog.setMessage(getString(R.string.accamount)+" "+response.getJSONArray("user").getJSONObject(0).getString("usr_amount")+" RWF"); alertDialog.setButton("Close", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { alertDialog.dismiss(); } }); alertDialog.show(); }catch (JSONException ex){ ex.printStackTrace(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { // TODO Auto-generated method stub progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); } }); queue.add(jsObjRequest); }else{ Toast.makeText(this,getString(R.string.offline),Toast.LENGTH_SHORT).show(); } if (id == R.id.action_lock) { Intent intent = new Intent(Commissioner.this,changepwd.class); startActivity(intent); } if(id==R.id.help){ startActivity(new Intent(Commissioner.this,Issues.class)); } if(id==R.id.logout){ synchronizer.logout(); finish(); } if (id==R.id.exit){ finish(); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459506", "0.7342001", "0.73306113", "0.73286015", "0.7326429", "0.73191065", "0.7317039", "0.7313901", "0.73044896", "0.73044896", "0.7301832", "0.7298614", "0.72935665", "0.7286882", "0.72838604", "0.7281134", "0.7279026", "0.7260287", "0.72602856", "0.72602856", "0.72602856", "0.72597146", "0.7250437", "0.7224467", "0.7219954", "0.7217789", "0.7204917", "0.7200529", "0.72004616", "0.71939325", "0.71854734", "0.71783715", "0.7169028", "0.7168044", "0.7154098", "0.715406", "0.7136618", "0.7135388", "0.7135388", "0.71293885", "0.7129296", "0.71248746", "0.71238405", "0.71236056", "0.7122437", "0.71178895", "0.7117577", "0.7117577", "0.7117577", "0.7117577", "0.7117551", "0.7117253", "0.7115515", "0.7112961", "0.7110418", "0.7109445", "0.7106109", "0.710037", "0.7098831", "0.70961183", "0.7094036", "0.7094036", "0.7086734", "0.7083463", "0.7081277", "0.70808643", "0.7073911", "0.70687914", "0.70622855", "0.70609766", "0.7060495", "0.7051786", "0.7037978", "0.7037978", "0.7036548", "0.70358485", "0.70358485", "0.70334274", "0.7031107", "0.70302725", "0.70190936" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
When the given tab is selected, switch to the corresponding page in the ViewPager.
@Override public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { mViewPager.setCurrentItem(tab.getPosition()); switch (tab.getPosition()){ case 0: setContentView(R.layout.queues); progressDialog=new ProgressDialog(Commissioner.this); progressDialog.setCancelable(false); autoType=(Spinner) findViewById(R.id.spnType); edtOwner=(EditText) findViewById(R.id.edtOwner); edtIdentification=(EditText) findViewById(R.id.edtIdentification); edtNid=(EditText) findViewById(R.id.edtNid); edtNiD=(EditText) findViewById(R.id.edtNiD); edtPhone=(EditText) findViewById(R.id.edtPhone); spnType=(Spinner) findViewById(R.id.spnType); btnRegQueue=(Button) findViewById(R.id.btnRegQueue); btnRegItem=(Button) findViewById(R.id.btnRegItem); readyRegistered=(TextView) findViewById(R.id.readyRegistered); yetRegistered=(TextView) findViewById(R.id.yetRegistered); readyContent=(LinearLayout) findViewById(R.id.readyContent); yetContent=(LinearLayout) findViewById(R.id.yetContent); readyRegistered.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { readyContent.setVisibility(View.VISIBLE); yetContent.setVisibility(View.GONE); } }); yetRegistered.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { readyContent.setVisibility(View.GONE); yetContent.setVisibility(View.VISIBLE); } }); btnRegQueue.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (synchronizer.checkConnectionState() == true) { if (edtOwner.getText().toString().trim().length() != 0 && edtNid.getText().toString().trim().length() != 0 || edtPhone.getText().toString().trim().length() != 0) { if (validator.nid(edtNid.getText().toString().trim())) { if (validator.phone(edtPhone.getText().toString().trim())) { final AlertDialog alert = new AlertDialog.Builder(Commissioner.this).create(); alert.setTitle(getString(R.string.mustpay)); alert.setMessage(getString(R.string.payacamount)); String url = synchronizer.getHost() + "/ajax/payments.php"; String data = "cate=registration"; RequestQueue queue = Volley.newRequestQueue(Commissioner.this); final JsonObjectRequest jsObjRequest = new JsonObjectRequest (Request.Method.GET, " http://" + url + "?" + data, null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { progressDialog.dismiss(); try { JSONObject payments = response.getJSONArray("payments").getJSONObject(0); JSONArray paymodes = response.getJSONArray("paymodes"); String msgData = getString(R.string.regamount) + payments.getString("pay_amount") + " RWF\n"; msgData += getString(R.string.paidonac) + "\n\n"; msgData += getString(R.string.acinfo) + "\n------------------------------------\n"; for (int i = 0; i < paymodes.length(); i++) { msgData += getString(R.string.actype) + paymodes.getJSONObject(i).getString("pmtd_name") + " \n"; msgData += getString(R.string.acname) + paymodes.getJSONObject(i).getString("pmtd_account_name") + " \n"; msgData += getString(R.string.acnbr) + paymodes.getJSONObject(i).getString("pmtd_account_number") + " \n\n"; } alert.setMessage(msgData); } catch (JSONException ex) { ex.printStackTrace(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { // TODO Auto-generated method stub progressDialog.dismiss(); error.printStackTrace(); Toast.makeText(Commissioner.this, getString(R.string.servernotconnect) + "->" + error.getMessage().toString(), Toast.LENGTH_LONG).show(); } }); queue.add(jsObjRequest); alert.setButton(DialogInterface.BUTTON_POSITIVE, "OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { addCitizens(); } }); alert.setButton(DialogInterface.BUTTON_NEGATIVE, "Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { Toast.makeText(Commissioner.this, "Operation Cancelled", Toast.LENGTH_SHORT).show(); dialog.dismiss(); } }); alert.show(); } else { Toast.makeText(Commissioner.this, getString(R.string.offline), Toast.LENGTH_SHORT).show(); } } } } } }); btnRegItem.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { addRegQueue(); } }); setTypeSpinner(); break; case 1: setContentView(R.layout.fragment_citizens); /* edtSearch=(EditText) findViewById(R.id.edtsearch); edtSearch.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { searchCitizens(); return true; } }); */ loadCitizens(); break; default: } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n this.mPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\r\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction arg1) {\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\n\t}", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n mViewPager.setCurrentItem(tabLayout.getSelectedTabPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab,\n FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tandroid.app.FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\r\n\t}", "@Override\n \t\t\tpublic void onTabSelected(\n \t\t\t\t\tcom.actionbarsherlock.app.ActionBar.Tab tab,\n \t\t\t\t\tandroid.support.v4.app.FragmentTransaction ft) {\n \t\t\t\tmViewPager.setCurrentItem(tab.getPosition());\n \t\t\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\r\n\t\t// on tab selected\r\n\t\t// showing respected fragment view at view pager\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\t}", "@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n if (tab.getPosition() == 1) {\n HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager()\n .findFragmentByTag(\"android:switcher:\"+viewPager.getId()+\":\"+tab.getPosition());\n homeFragment.init();\n }\n }", "@Override\n public void onPageSelected(int position) {\n mViewPager.setCurrentItem(position);\n selectTab(position);\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tvp.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n mTabPager.setCurrentItem(tab.getPosition());\n // jumpFlag = true;\n }", "public void tabSelected(TabLayout.Tab tab) {\n clearBackstack();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n if (tab.getPosition() == 0) {\n transaction.replace(R.id.home_page_frame_layout, HomeFragment.newInstance(user));\n } else if (tab.getPosition() == 1) {\n transaction.replace(R.id.home_page_frame_layout, WallsFragment.newInstance(user));\n } else if (tab.getPosition() == 2) {\n transaction.replace(R.id.home_page_frame_layout, ProjectsFragment.newInstance(user));\n } else if (tab.getPosition() == 3) {\n transaction.replace(R.id.home_page_frame_layout, UserInfoFragment.newInstance(user));\n }\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n public void onPageSelected(int position) {\n setPage(tabLayout, position);\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\n\t\tmAdapter.notifyDataSetChanged();\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\t\n\t}", "@Override\n public void onClick(View v) {\n tabChangeInterface.switchToTheNextTab();\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }", "@Override\n\tpublic void onPageSelected(int position) {\n\t\tselectTab(position);\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t\ttab.setIcon(mAppSectionsPagerAdapter.getPageIconSelected(tab.getPosition()));\n\n\t}", "@Override\n public void onPageSelected(int position) {\n tabHost.setSelectedNavigationItem(position);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmyViewPager.setCurrentItem(2);\n\t\t\t}", "@Override\n public void onClick(View v) {\n viewPager.setCurrentItem(1);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmyViewPager.setCurrentItem(1);\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int position) {\n\r\n\t\t\t\tviewPager.setCurrentItem(position);\r\n\t\t\t\tactionBar.setSelectedNavigationItem(position);\r\n\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n viewPager.setCurrentItem(2);\n }", "public void onTabChanged(String tag) {\n\t\tint pos = this.mTabHost.getCurrentTab();\n\t\tthis.mViewPager.setCurrentItem(pos);\n }", "private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmyViewPager.setCurrentItem(4);\n\t\t\t}", "@Override\r\n public void onPageSelected(int position) {\r\n switchPoint(position);\r\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n Fragment fragment = null;\n switch (tab.getPosition()) {\n case 0:\n fragment = new FirstFragment();\n break;\n case 1:\n fragment = new SecondFragment();\n //flipCard();\n break;\n case 2:\n fragment = new ThirdFragment();\n break;\n }\n\n flipCard(fragment);\n //FragmentManager fm = getSupportFragmentManager();\n //FragmentTransaction ft = fm.beginTransaction();\n //ft.replace(R.id.simpleFrameLayout, fragment);\n //ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n //ft.commit();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmyViewPager.setCurrentItem(3);\n\t\t\t}", "public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tft.setCustomAnimations(R.animator.fragment_slide_left_enter,\n\t\t\t\t\tR.animator.fragment_slide_right_exit);\n\n\t\t\tif (mFragment == null) {\n\t\t\t\tmFragment = Fragment.instantiate(mActivity, mClass.getName(),\n\t\t\t\t\t\tmArgs);\n\t\t\t\tft.add(android.R.id.content, mFragment, mTag);\n\t\t\t} else {\n\t\t\t\tft.attach(mFragment);\n\t\t\t}\n\t\t\tmCurrentFragment = (FlingFragment) mFragment;\n\t\t}", "@Override\r\n public void onClick(View arg0) {\n switch (arg0.getId()) {\r\n case R.id.lilay_service:\r\n viewPager.setCurrentItem(0, true);\r\n break;\r\n case R.id.lilay_chart:\r\n viewPager.setCurrentItem(1, true);\r\n break;\r\n\r\n case R.id.lilay_share:\r\n viewPager.setCurrentItem(2, true);\r\n break;\r\n case R.id.lilay_me:\r\n viewPager.setCurrentItem(3, true);\r\n break;\r\n }\r\n }", "@Override\n public void onTabChanged(String tabId) {\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab();\n for (int i = 0; i < list.size(); i++) {\n if (position == i) {\n transaction.show(list.get(i));\n } else {\n transaction.hide(list.get(i));\n }\n }\n transaction.commit();\n//\t viewPage.setCurrentItem(position);\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n\n if(tab.getPosition() == 2 && !jsonData.equals(\"\") && !integratedUpdated) {\n carCheckIntegratedFragment.letsEnterModifyMode();\n integratedUpdated = true;\n }\n\n if(tab.getPosition() == 1 && !jsonData.equals(\"\") && !frameUpdated) {\n carCheckFrameFragment.letsEnterModifyMode();\n frameUpdated = true;\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\tcase R.id.basicview_btn:\n\t\t\t\tviewPager.setCurrentItem(0);\n\t\t\t\tbreak;\n\t\t\tcase R.id.uploadview_btn:\n\t\t\t\tviewPager.setCurrentItem(1);\n\t\t\t\tbreak;\n\t\t\tcase R.id.back:\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.main_ll_xw:\n setTabSelection(0);\n break;\n case R.id.main_ll_rili:\n setTabSelection(1);\n break;\n case R.id.main_ll_hq:\n setTabSelection(2);\n break;\n case R.id.main_ll_wd:\n setTabSelection(3);\n break;\n\n case R.id.main_ll_self:\n setTabSelection(4);\n break;\n }\n }", "public void setSelectedTab(int tab) {\n if ((tabbedPane.getTabCount() - 1) >= tab)\n tabbedPane.setSelectedIndex(tab);\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tif(arg2==0){\r\n\t\t\t\t\tIntent intent1 = new Intent(gju.this,tabpage.class);\r\n\t\t\t\t\tstartActivity(intent1);\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }", "@Override\n public void onIndicatorSelected(int index) {\n mViewPager.setCurrentItem(index);\n }", "@Override\n public void setActiveTab(Tab tab) {\n // monkey protection against delayed start\n if (tab != null) {\n mTabControl.setCurrentTab(tab);\n // the tab is guaranteed to have a webview after setCurrentTab\n mUi.setActiveTab(tab);\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onPageSelected(int position) {\n getActionBar().setSelectedNavigationItem(position);\n // jumpFlag = true;\n }", "@Override\n\tpublic void onItemClick(int position) {\n\t\tmViewPager.setCurrentItem(position);\n\t}", "void onTabReselected(int position);", "@Override\n\t public void onPageSelected(int position) {\n\t getSupportActionBar().setSelectedNavigationItem(position);\n\t }", "void goToSettingsTab(FragmentActivity activity);", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tactionBar.setSelectedNavigationItem(arg0);\n\t\t\t}", "void goToWalletTab(FragmentActivity activity);", "@Override\n public void onPageSelected(int position) {\n ActionBar ab = getActionBar();\n if (ab != null) {\n getActionBar().setSelectedNavigationItem(position);\n }\n }", "@Override\n public void onClick(View v) {\n viewPager.setCurrentItem(0);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmyViewPager.setCurrentItem(0);\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,ViewPagerActivity.class);\n\t\t intent.setAction(\"ViewPagerActivity\");\n\t\t showactivity(intent);\n\t\t\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n \t\n \tFragment fragment;\n \t\n \tif (tab.getPosition() == 0)\n \t\tfragment = new FragmentDraw();\n \telse if (tab.getPosition() == 1)\n \t\tfragment = new FragmentPlayback();\n \telse\n \t\tthrow new NotImplementedException();\n \t\n getFragmentManager()\n \t\t.beginTransaction()\n .replace(R.id.container, fragment)\n .commit();\n }", "public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.tab_home:\n setHome();\n break;\n case R.id.tab_store:\n this.mIconHome.setImageResource(R.drawable.home_icon_home);\n this.mIconStore.setImageResource(R.drawable.home_icon_store_press);\n this.mIconCart.setImageResource(R.drawable.home_icon_cart);\n this.mIconMy.setImageResource(R.drawable.home_icon_my);\n this.mHomeText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mStoreText.setTextColor(getResources().getColor(R.color.pink));\n this.mCartText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mMyText.setTextColor(getResources().getColor(R.color.content_gray));\n\n getTabHost().setCurrentTab(1);\n break;\n case R.id.tab_cart_layout:\n setCart();\n break;\n case R.id.tab_my_outer:\n this.mIconHome.setImageResource(R.drawable.home_icon_home);\n this.mIconStore.setImageResource(R.drawable.home_icon_store);\n this.mIconCart.setImageResource(R.drawable.home_icon_cart);\n this.mIconMy.setImageResource(R.drawable.home_icon_my_press);\n this.mHomeText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mStoreText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mCartText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mMyText.setTextColor(getResources().getColor(R.color.pink));\n\n getTabHost().setCurrentTab(3);\n break;\n default:\n break;\n }\n }", "protected abstract void doTabSelectionChanged(int oldIndex, int newIndex);", "public void tabSelected();", "@Override\r\n\t\tpublic void onPageSelected(int position) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tgetActionBar().setSelectedNavigationItem(position);\r\n\t\t}", "@Override\n\t\t\t\tpublic void onPageScrolled(final int pageSelected, final float positionOffset,\n\t\t\t\t\t\t\t\t\t\t final int positionOffsetPixel) {\n\t\t\t\t\tif (positionOffset == 0 && positionOffsetPixel == 0) {\n\t\t\t\t\t\tfinal int size = mTabs.size();\n\t\t\t\t\t\tif (size > 1) {\n\t\t\t\t\t\t\tif (pageSelected == 0) {\n\t\t\t\t\t\t\t\tmViewPager.setCurrentItem(size, false);\n\t\t\t\t\t\t\t} else if (pageSelected == size + 1) {\n\t\t\t\t\t\t\t\tmViewPager.setCurrentItem(1, false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}", "@Override\n public void onTabChanged(String s) {\n int pos = this.mTabHost.getCurrentTab();\n this.mViewPager.setCurrentItem(pos);\n onSetToolbarTitle(pos);\n }", "public void forwardJump(int targetTab, int targetSubPage) {\n// jumpFlag = true;\n lastTab = targetTab;\n lastSubPage = targetSubPage;\n mTabPager.setCurrentItem(targetTab);\n Fragment[] fragments = mTabPagerAdapter.fragments;\n switch (targetTab) {\n case 0: /*OverviewFragment*/ break;\n case 1: ((AboutFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 2: ((AdmissionFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 3: ((CurriculumFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 4: ((GraduateAndAlumniFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n case 5: /*NewsAndEventsFragment*/ break;\n case 6: ((StudentResourcesFragment)fragments[targetTab]).forwardJump(targetSubPage); break;\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[0]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(0);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n\tpublic void selectTab(Tab tab) {\n\t\t\n\t}", "public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t // Check if the fragment is already initialized\n\t \tmActivity.invalidateOptionsMenu();\n\t if (mFragment == null) {\n\t // If not, instantiate and add it to the activity\n\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\n\t ft.add(android.R.id.content, mFragment, mTag);\n\t } else {\n\t // If it exists, simply attach it in order to show it\n\t ft.attach(mFragment);\n\t }\n\t }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(MainActivity.SELECTED_TAB_EXTRA_KEY, MainActivity.EARNINGS_TAB);\n context.startActivity(intent);\n// Intent intent = new Intent(context, TvBetaActivity.class);\n// context.startActivity(intent);\n\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch(tab.getPosition())\n {\n case 0:\n searchView.setQueryHint(\"Search Devices...\");\n break;\n\n case 1:\n searchView.setQueryHint(\"Search Actions...\");\n break;\n\n// case 2:\n// searchView.setQueryHint(\"Search Alerts...\");\n// break;\n }\n }", "public void setSelectedTab(int arg0) {\n\n\t}", "@Override\n public void onTabReselected(TabLayout.Tab tab) {}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i1= new Intent(MainActivity.this,page1.class);\n\t\t\tstartActivity(i1);\n\t\t\t\n\t\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tif(requestCode==R.id.dodaj)\n\t\t\ttabHost.setCurrentTab(1);\n\t}", "@Override\n public void onPageSelected(int n) {\n actionBar.setSelectedNavigationItem(n);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}", "public void setCurrentTab(final int position) {\n mBottomBarLayout.post(new Runnable() {\n @Override\n public void run() {\n mBottomBarLayout.getChildAt(position).performClick();\n }\n });\n }", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n\t\tmCurrentTabPosition = tab.getPosition();\n\n\t\tif (mCurrentTabPosition == 1) {\n\t\t\tmFavoriteFragment = mSectionsPagerAdapter.getItem(tab.getPosition());\n\t\t\tfragmentTransaction.attach(mFavoriteFragment);\n\n\t\t\tif (mFavoriteFragment.getView() != null) {\n\t\t\t\t((ListView) mFavoriteFragment.getView().findViewById(android.R.id.list)).setAdapter(createSentenceArrayAdapter(mFavoriteFragment.getActivity().getBaseContext(), mTempFavoriteList));\n\t\t\t}\n\n\t\t\tif (mOptionsMenu != null) {\n\t\t\t\tinvalidateOptionsMenu();\n\t\t\t\tgetMenuInflater().inflate(R.menu.menu_sentence_favorite, mOptionsMenu);\n\t\t\t}\n\t\t} else if (mCurrentTabPosition == 0) {\n\t\t\tmSentenceFragment = mSectionsPagerAdapter.getItem(tab.getPosition());\n\t\t\tfragmentTransaction.attach(mSentenceFragment);\n\n\t\t\tif (mOptionsMenu != null) {\n\t\t\t\tinvalidateOptionsMenu();\n\t\t\t\tgetMenuInflater().inflate(R.menu.menu_sentence, mOptionsMenu);\n\t\t\t}\n\t\t}\n\n\t\tmViewPager.setCurrentItem(mCurrentTabPosition);\n\t}", "@Override\n\t\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\t\tactionbar.setSelectedNavigationItem(position);\n\t\t\t\t}", "@Override\n public void onTabSelected(Tab tab, FragmentTransaction fragmentTransaction) {\n viewPager.setCurrentItem(tab.getPosition());\n\n // If the favorites tab is selected, remove any items that have been unfavorited.\n if (tab.getPosition() == TAB_FAVORITES) {\n SectionsPagerAdapter adapter = (SectionsPagerAdapter) viewPager.getAdapter();\n TalkListFragment fragment = (TalkListFragment) adapter.getItem(TAB_FAVORITES);\n fragment.removeUnfavoritedItems();\n }\n }" ]
[ "0.80670947", "0.80645895", "0.7943302", "0.78497154", "0.7829055", "0.77918637", "0.7771067", "0.77596486", "0.7754267", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.773658", "0.7705085", "0.7685253", "0.7685253", "0.7685253", "0.7685253", "0.7685253", "0.7680184", "0.76124066", "0.76010406", "0.7599877", "0.74845195", "0.74647653", "0.72652173", "0.7243292", "0.71485585", "0.712832", "0.6926501", "0.68993753", "0.6764613", "0.67602384", "0.6759516", "0.6716747", "0.6713397", "0.66606367", "0.65426403", "0.6532554", "0.6530471", "0.6522814", "0.6519163", "0.6497647", "0.64932853", "0.6326347", "0.6292201", "0.6268223", "0.6248277", "0.6237006", "0.6230689", "0.6228683", "0.62286204", "0.6222345", "0.6188603", "0.6175751", "0.61665374", "0.6141377", "0.61263", "0.6126131", "0.6124894", "0.61221737", "0.61180705", "0.6116712", "0.60943925", "0.6051742", "0.604187", "0.60324275", "0.6032054", "0.601239", "0.6011127", "0.60089797", "0.6007333", "0.5999714", "0.5997324", "0.5996518", "0.5994694", "0.5993406", "0.5993008", "0.5990998", "0.59885556", "0.5981737", "0.59710014", "0.5968974", "0.5957169", "0.59510326", "0.5940874", "0.5932094", "0.5921593", "0.59198517", "0.5895585", "0.5882703", "0.5880239", "0.5866225", "0.585821", "0.5857474", "0.5856523" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast.makeText(Commissioner.this, getString(R.string.servernotconnect) + "->" + error.getMessage().toString(), Toast.LENGTH_LONG).show(); }
{ "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 onErrorResponse(VolleyError error) { progressDialog.dismiss(); error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "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 onErrorResponse(VolleyError error) { error.printStackTrace(); Toast toast = Toast.makeText(Commissioner.this, getString(R.string.servernotconnect), Toast.LENGTH_LONG); toast.show(); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Fill Up Loaded Type to Spinner
public void setTypesView(JSONObject obj){ try { JSONArray arr = obj.getJSONArray("types"); String[] arrTypes=new String[arr.length()]; for(int i=0;i<arr.length();i++){ arrTypes[i]=arr.getJSONObject(i).getString("doctype"); } ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.select_dialog_item_material,arrTypes); autoType.setAdapter(arrayAdapter); }catch (JSONException ex){ ex.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSpinner() {\n // Chargement du spinner de la liste des widgets\n widgetAdapter = (WidgetAdapter) DomoUtils.createAdapter(context, VOCAL);\n spinnerWidgets.setAdapter(widgetAdapter);\n\n // Chargement du spinner Box\n BoxAdapter boxAdapter = (BoxAdapter) DomoUtils.createAdapter(context, BOX);\n spinnerBox.setAdapter(boxAdapter);\n }", "private void initSpinnerTypeExam()\n {\n Spinner spinner = findViewById(R.id.iTypeExam);\n\n // Adapt\n final ArrayAdapter<String> adapter = new ArrayAdapter<>(\n this,\n R.layout.support_simple_spinner_dropdown_item\n );\n spinner.setAdapter(adapter);\n\n // ajout des types d'examens\n for(TypeExamen t : TypeExamen.values())\n {\n adapter.add(t.toString());\n }\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter fruitSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_fruit_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n fruitSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mTypeSpinner.setAdapter(fruitSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mTypeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.apple))) {\n mFruit = FruitEntry.TYPE_APPLE;\n } else if (selection.equals(getString(R.string.banana))) {\n mFruit = FruitEntry.TYPE_BANANA;\n } else if (selection.equals(getString(R.string.peach))) {\n mFruit = FruitEntry.TYPE_PEACH;\n } else if (selection.equals(getString(R.string.pineapple))) {\n mFruit = FruitEntry.TYPE_PINEAPPLE;\n } else if (selection.equals(getString(R.string.strawberry))) {\n mFruit = FruitEntry.TYPE_STRAWBERRY;\n } else if (selection.equals(getString(R.string.watermelon))) {\n mFruit = FruitEntry.TYPE_WATERMELON;\n } else {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mFruit = FruitEntry.TYPE_NOTSELECTED;\n }\n });\n }", "public void initSpinner() {\n }", "private void loadSpinnerData() {\n\n // Spinner Drop down elements\n areas = dbHendler.getAllAreas();\n for (Area area : areas) {\n String singleitem = area.get_areaName();\n items.add(singleitem);\n }\n\n // Creating adapter for spinnerArea\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, items);\n\n // Drop down layout style - list view with radio button\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinnerArea\n spinner.setAdapter(dataAdapter);\n }", "public void addItemsOnSpinner() {\n Data dataset = new Data(getApplicationContext());\n List<String> list = new ArrayList<String>();\n list = dataset.getClasses();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(dataAdapter);\n }", "private void initControlUI() {\n typeAdapter = new SpinnerSimpleAdapter(self, android.R.layout.simple_spinner_item, self.getResources().getStringArray(R.array.arr_feedback_type));\n spnType.setAdapter(typeAdapter);\n }", "private void loadSpinnerData() {\n List<String> patientList = db.getAllPatient();\n\n // Creating adapter for spinner\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, patientList);\n\n // Drop down layout style - list view with radio button\n dataAdapter\n .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n patientIdSpn.setAdapter(dataAdapter);\n }", "private void workTypeSpinnerRefreshHack() {\n\t\tthis.workTypeAdapter.notifyDataSetChanged();\n\t\tworkTypeNameSpinner = (Spinner)findViewById(R.id.workTypeNameSpinner);\n workTypeAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item,workTypeList);\n workTypeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n workTypeNameSpinner.setOnItemSelectedListener(this);\n workTypeNameSpinner.setAdapter(workTypeAdapter);\n\t}", "public void bindSpinner() {\n // Create an ArrayAdapter using the string array and a spinner layout\n ArrayAdapter<CharSequence> adapter;\n adapter = ArrayAdapter.createFromResource(getActivity(), R.array.kind_of_reaction, R.layout.item_spinner_healthbook);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(R.layout.item_spinner_healthbook_dropdown);\n // Apply the adapter to the spinner\n kindOfReactionSpinner.setAdapter(adapter);\n }", "private void itemtypeSpinner() {\n ArrayAdapter<CharSequence> staticAdapter = ArrayAdapter\n .createFromResource(getContext(), R.array.select_array,\n android.R.layout.simple_spinner_item);\n\n // Specify the layout to use when the list of choices appears\n staticAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Apply the adapter to the spinner\n mItemTypeSpinnerA2.setAdapter(staticAdapter);\n\n mItemTypeSpinnerA2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n String itemtypeText = (String) parent.getItemAtPosition(position);\n if (itemtypeText.equals(\"Mobile Phones\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.VISIBLE);\n mInputLayoutItemImeiA2.setClickable(true);\n\n\n } else if (itemtypeText.equals(\"Laptops\")) {\n\n mInputLayoutSerialNoA2.setVisibility(View.VISIBLE);\n mInputLayoutSerialNoA2.setClickable(true);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n } else {\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n }\n\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mItemTypeSpinnerA2.getItemAtPosition(0);\n mInputLayoutSerialNoA2.setVisibility(View.GONE);\n mInputLayoutSerialNoA2.setClickable(false);\n mInputLayoutItemImeiA2.setVisibility(View.GONE);\n mInputLayoutItemImeiA2.setClickable(false);\n\n\n }\n });\n\n }", "private void loadSpinnerData() {\n rows = db.getPumpDetails();\n\n // Creating adapter for spinner\n dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, rows);\n\n // Drop down layout style - list view with radio button\n dataAdapter\n .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n spinner.setAdapter(dataAdapter);\n }", "public void populateSpinner() {\r\n ArrayList<String> ary = new ArrayList<>();\r\n\r\n ary.add(\"Male\");\r\n ary.add(\"Female\");\r\n\r\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, ary);\r\n\r\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\r\n Gender.setAdapter(adapter);\r\n }", "private void setSelectTypeData(){\n ArrayList<SelectType> selectTypes = new ArrayList<>();\n //add select types\n selectTypes.add(new SelectType(\"Multiple Choice\", \"multiple\"));\n selectTypes.add(new SelectType(\"True / False\",\"boolean\"));\n\n //fill in data\n ArrayAdapter<SelectType> adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_dropdown_item,selectTypes);\n selectType.setAdapter(adapter);\n\n }", "private void loadSpinnerFromDB(){\n\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n servicesFromSP.clear();\n ArrayList<String> myServices = new ArrayList<String>();\n\n servicesFromSP.addAll(dbHandler.getAllServiceTypeOfServiceProvider(companyID));\n\n for(ServiceType serviceType: servicesFromSP)\n myServices.add(serviceType.getServiceName() + \" / \" + serviceType.getHourlyRate() + \" $/H\");\n\n if(myServices.size()==0)\n Toast.makeText(this,\"Cannot load the DB or DB empty\",Toast.LENGTH_LONG).show();\n if (myServices.size()>0) {\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, myServices);\n data.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spin_service.setAdapter(data);\n }\n\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "void setValueFromSpinner(@IdRes int spinnerId, T newItem);", "private void setUpSpinner(){\n ArrayAdapter paymentSpinnerAdapter =ArrayAdapter.createFromResource(this,R.array.array_gender_option,android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line, then apply adapter to the spinner\n paymentSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n mPaymentSpinner.setAdapter(paymentSpinnerAdapter);\n\n // To set the spinner to the selected payment method by the user when clicked from cursor adapter.\n if (payMode != null) {\n if (payMode.equalsIgnoreCase(\"COD\")) {\n mPaymentSpinner.setSelection(0);\n } else {\n mPaymentSpinner.setSelection(1);\n }\n mPaymentSpinner.setOnTouchListener(mTouchListener);\n }\n\n mPaymentSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedPayment = (String)parent.getItemAtPosition(position);\n if(!selectedPayment.isEmpty()){\n if(selectedPayment.equals(getString(R.string.payment_cod))){\n mPaymentMode = clientContract.ClientInfo.PAYMENT_COD; // COD = 1\n }else{\n\n mPaymentMode = clientContract.ClientInfo.PAYMENT_ONLINE; // ONLINE = 0\n }\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n }", "void loadSpinner(Spinner sp){\n List<String> spinnerArray = new ArrayList<>();\n spinnerArray.add(\"Oui\");\n spinnerArray.add(\"Non\");\n\n// (3) create an adapter from the list\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_spinner_item,\n spinnerArray\n );\n\n//adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n// (4) set the adapter on the spinner\n sp.setAdapter(adapter);\n\n }", "private void spinnerAction() {\n Spinner spinnerphonetype = (Spinner) findViewById(R.id.activity_one_phonetype_spinner);//phonetype spinner declaration\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.phone_spinner, android.R.layout.simple_spinner_item); //create the spinner array\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); //set the drop down function\n spinnerphonetype.setAdapter(adapter); //set the spinner array\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n recipeType = (String) recipeAdapter.getRecipeType(position);\n\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 != 0) {\n\t\t\t\t\tindex2=arg2;\n\t\t\t\t\ttype1 = spn2.get(arg2).getType_id();\n\t\t\t\t\ttype_name1 = spn2.get(arg2).getType_name();\n\t\t\t\t\tHttpRequest1(APIURL.CHECK.ADDARTICLE1, spn2.get(arg2)\n\t\t\t\t\t\t\t.getType_id());\n\t\t\t\t\tspn4.clear();\n\t\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\t\tspn5.clear();\n\t\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t\t} else {\n\t\t\t\t\ttype1 = \"\";\n\t\t\t\t\ttype_name1 = \"\";\n\t\t\t\t}\n\t\t\t}", "private void loadSupplierSpinner() {\n //Retrieve Suppliers list from database\n ArrayList<String> suppliers = getAllSuppliers();\n //Create Adapter for Spinner\n spinnerAdapter= new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, suppliers);\n // Specify dropdown layout style - simple list view with 1 item per line\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // attaching data adapter to spinner\n mSpinner.setAdapter(spinnerAdapter);\n mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String supplier = parent.getItemAtPosition(position).toString();\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"You selected: \" + supplier, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n //Nothing for now\n }\n });\n }", "private void setUpSpinner(){\n //instantiates a new CategoryAdapter with the categories from the database\n CategorySpinnerAdapter mCategorySpinnerAdapter = new CategorySpinnerAdapter(this, mCategories);\n mCategorySpinner.setAdapter(mCategorySpinnerAdapter);\n //callback for when an item is selected\n mCategorySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n }\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n userType = (int) arg3;\n /* 将mySpinner 显示*/\n arg0.setVisibility(View.VISIBLE);\n }", "private void initSpinnerSelectionChamps() {\n\n //preparation de l'URL, recuperation de tous les champs dispo. dans la BDD\n final String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_LIST, null);\n\n //preparation et execution de la requete en asynchrone\n asyncHttpClient.get(getActivity(), url, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n //recuperation des donnees et parsing en JSONArray\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONArray jsonArray = new JSONArray(response);\n Log.e(\"JSONARRAY\", jsonArray.toString(1));\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n new AlertDialog.Builder(getActivity()).setMessage(getString(R.string.error_msg_fail_retrieve_data) + statusCode).show();\n }\n });\n/*\n try {\n JSONObject json = JsonUtils.loadJSONFromResources(getActivity(), R.raw.champs);\n this.spinnerChampAdapter = new ChampAdapter(getActivity(), JsonUtils.getJsonObjects(json, new ArrayList<JSONObject>()));\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "private void initUI(View view) {\n btnSend = (AutoBgButton) view.findViewById(R.id.btnSend);\n btnBack = (ImageView) view.findViewById(R.id.btnBack);\n edtTitle = (EditText) view.findViewById(R.id.edtTitleFB);\n edtDes = (EditText) view.findViewById(R.id.edtDesFB);\n spnType = (Spinner) view.findViewById(R.id.spnType);\n btnBack.setOnClickListener(this);\n btnSend.setOnClickListener(this);\n spnType.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (position == 0) {\n type = \"1\";\n } else if (position == 1) {\n type = \"3\";\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO Auto-generated method stub\n\n }\n });\n }", "private void initializeSpinner() {\n listClients = appGlobal.listClients;\n listDSRStatuses = appGlobal.listDSRStatuses;\n listLoadingnPoint = appGlobal.listLoadingnPoint;\n listDestinationPoint = appGlobal.listDestinationPoint;\n\n\n if(listClients!=null && listClients.size()>0){\n CompanySelectorAdapter clientCompAdapter = new CompanySelectorAdapter(getActivity(), listClients);\n spinnerListClientComp.setAdapter(clientCompAdapter);\n clientCompAdapter.notifyDataSetChanged();\n }\n else {\n loadClientsList();\n }\n if(listDSRStatuses!=null && listDSRStatuses.size()>0){\n // Remove all value from list\n for (DSRStatusModel model :listDSRStatuses) {\n if(Integer.parseInt(model.dsrStatusID.trim())== -1) {\n listDSRStatuses.remove(model);\n }\n }\n DSRStatusSpinnerAdapter dsrStatusAdapter = new DSRStatusSpinnerAdapter(getActivity(), listDSRStatuses);\n spinnerListStatusDSR.setAdapter(dsrStatusAdapter);\n dsrStatusAdapter.notifyDataSetChanged();\n }else {\n loadDSRStatusList();\n }\n if(listLoadingnPoint!=null && listLoadingnPoint.size()>0) {\n LocationPointAdapter loadingPointAdapter = new LocationPointAdapter(getActivity(), listLoadingnPoint);\n //spinnerListLoadingPoint.setAdapter(loadingPointAdapter);\n autocompleteTVLoadingPoint.setAdapter(loadingPointAdapter);\n loadingPointAdapter.notifyDataSetChanged();\n }\n else {\n loadLoadingPointList();\n }\n if(listDestinationPoint!=null && listDestinationPoint.size()>0) {\n LocationPointAdapter destinationPointAdapter = new LocationPointAdapter(getActivity(), listDestinationPoint);\n //spinnerListDestinationPoint.setAdapter(destinationPointAdapter);\n autocompleteTVDestinationPoint.setAdapter(destinationPointAdapter);\n destinationPointAdapter.notifyDataSetChanged();\n }\n else {\n loadDestinationPointList();\n }\n loadCustomsPoints();\n\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter supplierSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_supplier_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n supplierSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mSupplierSpinner.setAdapter(supplierSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mSupplierSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.supplier_one))) {\n mSupplier = BookEntry.SUPPLIER_ONE;\n } else if (selection.equals(getString(R.string.supplier_two))) {\n mSupplier = BookEntry.SUPPLIER_TWO;\n } else {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n });\n }", "public void addItemsOnSpinner2() {\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tindex1=arg2;\n\t\t\t\ttype0 = spn1.get(arg2).getType_id();\n\t\t\t\ttype_name = spn1.get(arg2).getType_name();\n\t\t\t\tHttpRequest(1, APIURL.CHECK.ADDARTICLE1, spn1.get(arg2)\n\t\t\t\t\t\t.getType_id(), \"\");\n\t\t\t\tspn3.clear();\n\t\t\t\tspinnerAdapter3.setList(spn3);\n\t\t\t\tspinnerAdapter3.notifyDataSetChanged();\n\t\t\t\tspn4.clear();\n\t\t\t\tspinnerAdapter4.setList(spn4);\n\t\t\t\tspinnerAdapter4.notifyDataSetChanged();\n\t\t\t\tspn5.clear();\n\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t}", "public void setupSpinner()\n {\n if (spinnerAdapter == null)\n {\n spinnerAdapter = new StringSpinnerAdapter(spinner, R.array.graph_period_spinner_values);\n }\n\n spinner.setOnItemSelectedListener(this);\n spinner.setAdapter(spinnerAdapter);\n }", "private void loadSpinner(View view) {\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n view.getContext(), android.R.layout.simple_spinner_item, getCategories());\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(adapter);\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n\n\n try{\n String s = \"\";\n Log.e(\"mytag\",\"(String) parent.getItemAtPosition(position):\"+(String) parent.getItemAtPosition(position).toString().trim());\n if (parent.getItemAtPosition(position).toString().trim().equals(\"בחר\")){\n s = \"-1\";\n }else{\n s = String.valueOf(ctype_map.get(parent.getItemAtPosition(position).toString().trim()).getCtypeID());\n }\n setCcustomerSpinner(s);\n }catch(Exception e){\n helper.LogPrintExStackTrace(e);\n }\n Log.e(\"mytag\", (String) parent.getItemAtPosition(position));\n //statusID = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusID();\n //statusName = db.getCallStatusByCallStatusName((String) parent.getItemAtPosition(position)).getCallStatusName();\n //Toast.makeText(getApplication(), \"status: \" + s, Toast.LENGTH_LONG).show();\n //Log.v(\"item\", (String) parent.getItemAtPosition(position));\n }", "private void init(){\n //Selected value in Spinner\n String selectedSubj= getActivity().getIntent().getStringExtra(\"subj\");\n String selectedPoten= getActivity().getIntent().getStringExtra(\"prob\");\n String selectedInst= getActivity().getIntent().getStringExtra(\"inst\");\n String selectedY= getActivity().getIntent().getStringExtra(\"peri\");\n\n if(selectedY.equals(\"2015~2017\")){\n String yList[]= {\"2015\", \"2016\", \"2017\"};\n selectedY= yList[new Random().nextInt(yList.length)];\n }\n\n String e_inst= QuestionUtil.create_eInst(selectedY, selectedInst);\n String k_inst= QuestionUtil.create_kInst(e_inst);\n String m= QuestionUtil.createPeriodM(selectedY, e_inst);\n\n QuestionNameBuilder.inst= new QuestionNameBuilder(selectedY, m, k_inst, selectedSubj, QuestionNameBuilder.UNDEFINED\n , QuestionNameBuilder.UNDEFINED, QuestionNameBuilder.TYPE_KOR);\n qnBuilder= QuestionNameBuilder.inst;\n\n //Potential Load\n loadPotentials(selectedPoten);\n }", "private void initGeneroSpinner(Spinner spinner, Genero genero) {\n GeneroDAO generoDAO = new GeneroDAO();\n\n List<Genero> generos = generoDAO.findAll();\n\n CustomSpinnerAdapter customSpinnerAdapter = new CustomSpinnerAdapter(this, generos);\n spinner.setAdapter(customSpinnerAdapter);\n\n spinner.setSelection(generos.indexOf(genero));\n\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n generoSelecionado = (Genero) parent.getItemAtPosition(position);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n }", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tif (arg2 != 0) {\n\t\t\t\t\tindex22=arg2;\n\t\t\t\t\ttype2 = spn3.get(arg2).getType_id();\n\t\t\t\t\ttype_name2 = spn3.get(arg2).getType_name();\n\t\t\t\t\tHttpRequest(2, APIURL.CHECK.ADDARTICLE2, \"\", spn3.get(arg2)\n\t\t\t\t\t\t\t.getType_id());\n\n\t\t\t\t\tspn5.clear();\n\t\t\t\t\tspinnerAdapter5.setList(spn5);\n\t\t\t\t\tspinnerAdapter5.notifyDataSetChanged();\n\t\t\t\t} else {\n\t\t\t\t\ttype2 = \"\";\n\t\t\t\t\ttype_name2 = \"\";\n\t\t\t\t}\n\t\t\t}", "void setupSpinner() {\n\n Spinner spinner = (Spinner) findViewById(R.id.language_spinner);\n\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.language_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(adapter);\n\n }", "String getSpinnerText();", "private void UpdateDataForSpinner(Spinner spinner){\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.serviceQuantity, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n }", "private void cargarSpinner() {\n\n admin = new AdminSQLiteOpenHelper(this, \"activo_fijo\", null, 1);\n BaseDeDatos = admin.getReadableDatabase();\n\n List<String> opciones = new ArrayList<String>();\n opciones.add(\"Selecciona una opción\");\n\n String selectQuery = \"SELECT * FROM sucursales\" ;\n Cursor cursor = BaseDeDatos.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n // adding to tags list\n opciones.add(cursor.getString(cursor.getColumnIndex(\"local\")));\n } while (cursor.moveToNext());\n }\n\n BaseDeDatos.close();\n\n //spiner personalizado\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, opciones);\n spinner.setAdapter(adapter);\n\n }", "private void setEventTypeList() {\n EventTypeAdapter listAdapter = new EventTypeAdapter(this, R.layout.spinner_item, getResources().getStringArray(R.array.event_type_list));\n listAdapter.setDropDownViewResource(R.layout.spinner_list_item);\n listEventType.setAdapter(listAdapter);\n listEventType.setSelection(listAdapter.getCount());\n listEventType.setOnItemSelectedListener(this);\n }", "private void spinnerFunctions() {\n mTranportSectionAdapter = ArrayAdapter.createFromResource(getContext(), R.array.transport_titles, R.layout.drop_down_spinner_item);\n mTransportSectionSpinner.setAdapter(mTranportSectionAdapter);\n mFuelTypeAdapter = ArrayAdapter.createFromResource(getContext(), R.array.fuel_types, R.layout.drop_down_spinner_item);\n mFuelTypeSpinner.setAdapter(mFuelTypeAdapter);\n mBoxAdapter = ArrayAdapter.createFromResource(getContext(), R.array.box_types, R.layout.drop_down_spinner_item);\n mBoxSpinner.setAdapter(mBoxAdapter);\n }", "public void initProjectSpinner(){\n projectSpinner = findViewById(R.id.spinner_project);\n projectList = Arrays.asList(gson.fromJson(myRequestHandler.getJsonStringProjects(), Project[].class)); //The jsonString with Projects is already initialized to prevent null pointers\n ArrayAdapter<Project> projectAdapter = new ArrayAdapter<Project>(this,\n android.R.layout.simple_spinner_item, projectList);\n projectAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n projectSpinner.setAdapter(projectAdapter);\n projectSpinner.setOnItemSelectedListener(this);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }", "private void populatePhone() {\n dataBaseHelper = new DataBaseHelper(this);\n List<String> lables = dataBaseHelper.getPN();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, lables);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n phoneNum.setAdapter(dataAdapter);\n\n }", "private void setSpinner() {\n class spinna extends AsyncTask<Void, Void, ArrayList<String>> {\n\n @Override\n protected void onPreExecute() {\n super.onPreExecute();\n }\n\n @Override\n protected ArrayList<String> doInBackground(Void... voids) {\n ArrayList<String> items = new ArrayList<>();\n for (Season season : series.getSeasons()) {\n int i = season.getSeasonNumber();\n items.add(String.valueOf(i));\n }\n\n return items;\n\n }\n\n @Override\n protected void onPostExecute(ArrayList<String> items) {\n super.onPostExecute(items);\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(SeriesActivity.this, android.R.layout.simple_spinner_dropdown_item, items);\n adapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n dropdown.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n }\n }\n spinna kkkk = new spinna();\n kkkk.execute();\n\n\n }", "private void initSpinners() {\r\n Spinner arrivalSpinner = (Spinner)findViewById(R.id.arrival_place);\r\n SpinnerAdapter arrivalSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n arrivalSpinner.setAdapter(arrivalSpinnerAdapter);\r\n\r\n Spinner departureSpinner = (Spinner)findViewById(R.id.departure_place);\r\n SpinnerAdapter departureSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n departureSpinner.setAdapter(departureSpinnerAdapter);\r\n\r\n Spinner focusSpinner = (Spinner)findViewById(R.id.focus);\r\n SpinnerAdapter focusSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, Category.values());\r\n focusSpinner.setSelection(3);\r\n focusSpinner.setAdapter(focusSpinnerAdapter);\r\n }", "private void assignSpinner(int i, String s) {\n switch (s) {\n case \"Bitters\":\n ArrayAdapter<String> bittersAdapter;\n bittersAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, bitters);\n bittersAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(bittersAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Gin\":\n ArrayAdapter<String> ginAdapter;\n ginAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, gin);\n ginAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(ginAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Rum\":\n ArrayAdapter<String> rumAdapter;\n rumAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, rum);\n rumAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(rumAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Tequila\":\n ArrayAdapter<String> tequilaAdapter;\n tequilaAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, tequila);\n tequilaAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(tequilaAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Vodka\":\n ArrayAdapter<String> vodkaAdapter;\n vodkaAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, vodka);\n vodkaAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(vodkaAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Vermouth\":\n ArrayAdapter<String> vermouthAdapter;\n vermouthAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, vodka);\n vermouthAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(vermouthAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n case \"Whiskey\":\n ArrayAdapter<String> whiskeyAdapter;\n whiskeyAdapter = new ArrayAdapter<>(this, R.layout.support_simple_spinner_dropdown_item, whiskey);\n whiskeyAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);\n spinnerArrayList.get(i-1).setAdapter(whiskeyAdapter);\n spinnerArrayList.get(i-1).setVisibility(View.VISIBLE);\n break;\n }\n }", "private void initSpinner() {\n\t\tdata1 = new ArrayList<HashMap<String, String>>();\n\t\tdata2 = new ArrayList<HashMap<String, String>>();\n\t\tdata3 = new ArrayList<HashMap<String, String>>();\n\n\t\tadapter1 = new SimpleAdapter(this, data1,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\t\tadapter2 = new SimpleAdapter(this, data2,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\t\tadapter3 = new SimpleAdapter(this, data3,\n\t\t\t\tandroid.R.layout.simple_spinner_dropdown_item, from, to);\n\n\t\tsp1.setAdapter(adapter1);\n\t\tsp2.setAdapter(adapter2);\n\t\tsp3.setAdapter(adapter3);\n\n\t\tAjaxParams params = new AjaxParams();\n\t\tparams.put(\"op\", \"GetCity\");\n\t\tparams.put(\"levelID\", \"1\");\n\t\tparams.put(\"parentCode\", \"\");\n\t\thttp.get(GlobalVars.url, params, new AjaxCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String t) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onSuccess(t);\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(t);\n\t\t\t\t\tif (jsonObject.getInt(\"result\") == 1) {\n\t\t\t\t\t\tJSONArray array = jsonObject.getJSONArray(\"list\");\n\t\t\t\t\t\tfor (int i = 0; i < array.length(); i++) {\n\t\t\t\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\t\t\t\tmap.put(\"name\",\n\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\"name\"));\n\t\t\t\t\t\t\tmap.put(\"code\",\n\t\t\t\t\t\t\t\t\tarray.getJSONObject(i).getString(\"code\"));\n\t\t\t\t\t\t\tdata1.add(map);\n\t\t\t\t\t\t\tif (userInfoPreferences.getString(\"provinceId\", \"\")\n\t\t\t\t\t\t\t\t\t.equals(array.getJSONObject(i).getString(\n\t\t\t\t\t\t\t\t\t\t\t\"code\"))) {\n\t\t\t\t\t\t\t\tdefaultSheng = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tadapter1.notifyDataSetChanged();\n\t\t\t\t\t\tsp1.setSelection(defaultSheng, true);\n\t\t\t\t\t}\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}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable t, int errorNo, String strMsg) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\tTools.showTextToast(context, \"获取省份列表失败,可能是网络问题\");\n\t\t\t}\n\t\t});\n\n\t}", "private String setupselectSpinner1(){\n String ret = \"unknown\";\n try{\n PartnerDB db = new PartnerDB((Context)this);\n SQLiteDatabase plcDB = db.openDB();\n Cursor cur = plcDB.rawQuery(\"select name from partner;\", new String[]{});\n ArrayList<String> al = new ArrayList<String>();\n while(cur.moveToNext()){\n try{\n al.add(cur.getString(0));\n }catch(Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"exception stepping thru cursor\"+ex.getMessage());\n }\n }\n partners = (String[]) al.toArray(new String[al.size()]);\n ret = (partners.length>0 ? partners[0] : \"unknown\");\n partnerAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item, partners);\n selectSpinner1.setAdapter(partnerAdapter);\n selectSpinner1.setOnItemSelectedListener(this);\n }catch(Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"unable to setup partner spinner\");\n }\n return ret;\n }", "@Override\n protected void onPostExecute(String s) {\n PersonSpinnerAdapter personSpinnerAdapter = new PersonSpinnerAdapter(getActivity().getApplicationContext(), pIcon, pNames);\n personSpinner.setAdapter(personSpinnerAdapter);\n\n }", "public void setupPrioritySpinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),\n R.array.prirority_level_list, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mPriority.setAdapter(adapter);\n mPriority.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n removeFocusFromEditText();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n }", "private void setData() {\n ArrayAdapter<State> adapter = new ArrayAdapter<State>(this, android.R.layout.simple_spinner_dropdown_item, StaticData.getStates());\n stateSpinner.setAdapter(adapter);\n stateSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n selectedState = (State) parent.getSelectedItem();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n }", "@Override\n protected void onPostExecute(String s) {\n ActivitySpinnerAdapter activitySpinnerAdapter = new ActivitySpinnerAdapter(getActivity().getApplicationContext(), aImage, aName);\n activitySpinner.setAdapter(activitySpinnerAdapter);;\n }", "public void setFontToSpinner(Typeface mTypeFace){\n tf=mTypeFace;\n }", "public void addItemsOnSpinner() {\r\n\r\n\tspinner = (Spinner) findViewById(R.id.spinner);\r\n\tList<String> list = new ArrayList<String>();\r\n\tlist.add(\"Food\");\r\n\tlist.add(\"RentHouse\");\r\n\tlist.add(\"Closing\");\r\n\tlist.add(\"Party\");\r\n\tlist.add(\"Material\");\r\n\tArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, list);\r\n\tdataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\tspinner.setAdapter(dataAdapter);\r\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n Spinner spinner = (Spinner) parent;\n Integer tag = (Integer) spinner.getTag();\n int tagValue = tag.intValue();\n switch (tagValue)\n {\n case VIEWED_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByViewed))\n {\n bChange = true;\n }\n if (pos == 0)\n {\n orderByViewed = \"album_name ASC\";\n }\n else\n {\n orderByViewed = \"album_name DESC\";\n }\n if (bChange) {\n orderBy = orderByViewed;\n }\n }\n break;\n\n case PRICE_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByPrice))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByPrice = \"price DESC\";\n }\n else\n {\n orderByPrice = \"price ASC\";\n }\n if (bChange) {\n orderBy = orderByPrice;\n }\n }\n break;\n\n case RATINGS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByRatings))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByRatings = \"ratings DESC\";\n }\n else\n {\n orderByRatings = \"ratings ASC\";\n }\n if (bChange) {\n orderBy = orderByRatings;\n }\n }\n break;\n\n case YEAR_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByYear))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByYear = \"year DESC\";\n }\n else\n {\n orderByYear = \"year ASC\";\n }\n if (bChange) {\n orderBy = orderByYear;\n }\n }\n break;\n\n case BEDS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByBeds))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByBeds = \"beds DESC\";\n }\n else\n {\n orderByBeds = \"beds ASC\";\n }\n if (bChange) {\n orderBy = orderByBeds;\n }\n }\n break;\n\n case BATHS_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByBaths))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByBaths = \"baths DESC\";\n }\n else\n {\n orderByBaths = \"baths ASC\";\n }\n if (bChange) {\n orderBy = orderByBaths;\n }\n }\n break;\n\n case AREA_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByArea))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByArea = \"area DESC\";\n }\n else\n {\n orderByArea = \"area ASC\";\n }\n if (bChange) {\n orderBy = orderByArea;\n }\n }\n break;\n\n case MAKE_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByMake))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByMake = \"make ASC\";\n }\n else\n {\n orderByMake = \"make DESC\";\n }\n if (bChange) {\n orderBy = orderByMake;\n }\n }\n break;\n\n case MODEL_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByModel))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByModel = \"model ASC\";\n }\n else\n {\n orderByModel = \"model DESC\";\n }\n if (bChange) {\n orderBy = orderByModel;\n }\n }\n break;\n\n case COLOR_SPINNER_ID:\n {\n boolean bChange =false;\n if (orderBy.equals(orderByColor))\n {\n bChange = true;\n }\n if (pos == 0) {\n orderByColor = \"color ASC\";\n }\n else\n {\n orderByColor = \"color DESC\";\n }\n if (bChange) {\n orderBy = orderByColor;\n }\n }\n break;\n\n\n\n default:\n break;\n }\n\n }", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter genderSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_gender_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n genderSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mGenderSpinner.setAdapter(genderSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mGenderSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.gender_male))) {\n mGender = PetContract.PetEntry.GENDER_MALE;\n } else if (selection.equals(getString(R.string.gender_female))) {\n mGender = PetContract.PetEntry.GENDER_FEMALE;\n } else {\n mGender = PetContract.PetEntry.GENDER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mGender = PetContract.PetEntry.GENDER_UNKNOWN;\n }\n });\n }", "private void setSpinner(){\n for (String id : activity.getCollectedIDs()){\n if (activity.getCoinsCollection().containsKey(id)) {\n Coin tempCoin = activity.getCoinsCollection().get(id);\n assert tempCoin != null;\n if(!tempCoin.isBanked() && !tempCoin.isTransferred()) {\n spinnerItems.add(tempCoin);\n }\n }\n }\n\n //sort coins on gold value descending\n spinnerItems.sort((a, b) ->\n a.getValue() * activity.getExchangeRates().get(a.getCurrency())\n < b.getValue() * activity.getExchangeRates().get(b.getCurrency()) ? 1 : -1);\n\n ArrayAdapter<Coin> spinnerArrayAdapter = new ArrayAdapter<>(Objects.requireNonNull(getActivity()), R.layout.spinner_item, spinnerItems);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n spinner.setAdapter(spinnerArrayAdapter);\n }", "private void loadSpinnerCurrData(int tour_id) {\n\n db = new DatabaseHandler(getApplicationContext());\n currencySpinnerAdapter = new CurrencySpinnerAdapter(getApplicationContext(), db.getAllCurrencies(tour_id));\n db.closeDB();\n spinner_curr.setAdapter(currencySpinnerAdapter);\n }", "private void loadLocation() {\n\r\n\t\t_stateItems = new ArrayList<DropDownItem>();\r\n\t\t_stateAdapter = new DropDownAdapter(getActivity(), _stateItems);\r\n\t\tspin_state.setAdapter(_stateAdapter);\r\n\r\n\t\t_cityItems = new ArrayList<DropDownItem>();\r\n\t\t_cityAdapter = new DropDownAdapter(getActivity(), _cityItems);\r\n\t\tspin_city.setAdapter(_cityAdapter);\r\n\r\n\t\t_locationItems = new ArrayList<DropDownItem>();\r\n\t\t_locationAdapter = new DropDownAdapter(getActivity(), _locationItems);\r\n\t\tspin_location.setAdapter(_locationAdapter);\r\n\r\n\t\tnew StateAsync().execute(\"\");\r\n\r\n\t}", "private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter colourSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.phone_colour_array, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n colourSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mColourSpinner.setAdapter(colourSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mColourSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.phone_colour_black))) {\n mColour = PhoneEntry.COLOUR_BLACK;\n } else if (selection.equals(getString(R.string.phone_colour_white))) {\n mColour = PhoneEntry.COLOUR_WHITE;\n } else if (selection.equals(getString(R.string.phone_colour_grey))){\n mColour = PhoneEntry.COLOUR_GREY;\n }\n else {\n mColour = PhoneEntry.COLOUR_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mColour = PhoneEntry.COLOUR_UNKNOWN;\n }\n });\n\n }", "public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n\n if(parent.getId()==R.id.Branch_Spinner)\n mNotification.setBranch((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Year_Spinner)\n mNotification.setYear((String)parent.getItemAtPosition(pos));\n\n if(parent.getId()==R.id.Section_Spinner)\n mNotification.setSection((String)parent.getItemAtPosition(pos));\n\n\n\n\n\n\n }", "@Override\r\n\tpublic String getText(Object object) {\r\n\t\tString label = ((Spinner)object).getName();\r\n\t\treturn label == null || label.length() == 0 ?\r\n\t\t\tgetString(\"_UI_Spinner_type\") :\r\n\t\t\tgetString(\"_UI_Spinner_type\") + \" \" + label;\r\n\t}", "private void spinner() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.planets_array, R.layout.simple_spinner_item_new);\n// Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n// dropDownViewTheme.\n planetsSpinner.setAdapter(adapter);\n planetsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Object itemAtPosition = parent.getItemAtPosition(position);\n Log.d(TAG, \"onItemSelected: \" + itemAtPosition);\n\n String[] stringArray = getResources().getStringArray(R.array.planets_array);\n Toast.makeText(DialogListActivity.this, \"选择 \" + stringArray[position], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n Toast.makeText(DialogListActivity.this, \"未选择\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\tlong id) {\n\t\tInteger currentSpinner = arg0.getId();\n\t\tString stat\n\t\t\t\t, processedStat;\n\t\t//We check what spinner it is.\n\t\tswitch(currentSpinner){\n\t\tcase R.id.raceSpinner:\n\t\t\tpointPool = numberOfDistributionalPoints;\n\t\t\tpointPoolTV.setText(Integer.toString(pointPool));\n\t\t\t//We set value from table with data.\n\t\t\tprocessedStat = processStat(0);\t\t//It only processes hp (0) and mana (1)\n\t\t\tbaseHPTV.setText(processedStat);\n\t\t\tstatsArray.set(0, Integer.parseInt(processedStat));\n\t\t\t\n\t\t\tprocessedStat = processStat(1);\t\t//It only processes hp (0) and mana (1)\n\t\t\tbaseManaTV.setText(processedStat);\n\t\t\tstatsArray.set(1, Integer.parseInt(processedStat));\n\t\t\t\n\t\t\tstat = racesList.get(3).get((int) id);\n\t\t\tstrTV.setText(stat);\n\t\t\tstatsArray.set(2, Integer.parseInt(stat));\n\t\t\t\n\t\t\tstat = racesList.get(4).get((int) id);\n\t\t\tagiTV.setText(stat);\n\t\t\tstatsArray.set(3, Integer.parseInt(stat));\n\t\t\t\n\t\t\tstat = racesList.get(5).get((int) id);\n\t\t\tintTV.setText(stat);\n\t\t\tstatsArray.set(4, Integer.parseInt(stat));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.classSpinner:\n\t\t\tpointPool = numberOfDistributionalPoints;\n\t\t\tpointPoolTV.setText(Integer.toString(pointPool));\n\t\t\t//We set value from table with data.\n\t\t\tprocessedStat = processStat(0);\t\t//It only processes hp (0) and mana (1)\n\t\t\tbaseHPTV.setText(processedStat);\n\t\t\tstatsArray.set(0, Integer.parseInt(processedStat));\n\t\t\t\n\t\t\tprocessedStat = processStat(1);\t\t//It only processes hp (0) and mana (1)\n\t\t\tbaseManaTV.setText(processedStat);\n\t\t\tstatsArray.set(1, Integer.parseInt(processedStat));\n\t\t\t\n\t\t\tstat = racesList.get(3).get((int) racesSpinner.getSelectedItemId());\n\t\t\tstrTV.setText(stat);\n\t\t\tstatsArray.set(2, Integer.parseInt(stat));\n\t\t\t\n\t\t\tstat = racesList.get(4).get((int) racesSpinner.getSelectedItemId());\n\t\t\tagiTV.setText(stat);\n\t\t\tstatsArray.set(3, Integer.parseInt(stat));\n\t\t\t\n\t\t\tstat = racesList.get(5).get((int) racesSpinner.getSelectedItemId());\n\t\t\tintTV.setText(stat);\n\t\t\tstatsArray.set(4, Integer.parseInt(stat));\n\t\t\tbreak;\n\t\t}\n\t}", "private void init(){\n\t\t\n\t\tpurchasePrice = (EditText)findViewById(R.id.purchasePrice);\n\t\tpurchasePrice.setFilters(new InputFilter[] { new CurrencyFormatInputFilter()});\n\t\t\n\t\tdownPaymentSpinner = (Spinner)findViewById(R.id.inputTypeSpinner);\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tdownPaymentSpinner.setAdapter(adapter);\n\t\t\n\t\tsellerSpinner = (Spinner)findViewById(R.id.inputTypeSpinnerSeller);\n\t\tArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tsellerSpinner.setAdapter(adapter2);\t\n\t}", "public void loadSpinner(){\n selectedProjectPrefs = mainActivity.getSharedPreferences(\n \"selectedProjectName\", mainActivity.MODE_PRIVATE);\n selectedProjectName = selectedProjectPrefs.getString(\"selectedProjectName\", \"\");\n\n projectListPrefs = mainActivity.getSharedPreferences(\n \"projectList\", mainActivity.MODE_PRIVATE);\n if (!projectListPrefs.contains(\"projectList\"))\n {\n addProject();\n }\n HashSet<String> defaultSet = new HashSet<>();\n projectList = new ArrayList<>(projectListPrefs.getStringSet(\"projectList\", defaultSet));\n\n Spinner projectsSpinner = mainActivity.findViewById(R.id.projects_spinner);\n ArrayAdapter<String> projectsArrayAdapter = new ArrayAdapter<>(\n this.mainActivity, android.R.layout.simple_spinner_item, projectList);\n projectsArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n projectsSpinner.setAdapter(projectsArrayAdapter);\n projectsSpinner.setSelection(projectsArrayAdapter.getPosition(selectedProjectName));\n }", "private void updateSpinner() {\n ArrayAdapter<CharSequence> adaptador = new ArrayAdapter(getContext(), android.R.layout.simple_spinner_item,nombresEnComboBox);\n spinner.setAdapter(adaptador);\n //guardo el item seleccionado del combo\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n nombreDeLocSeleccionada[0] = (String) spinner.getAdapter().getItem(i);\n for (int j=0 ; j < listaLocalidades.size() ; j++){\n if (listaLocalidades.get(j).getNombreLocalidad().equals(nombreDeLocSeleccionada[0])) {\n idLoc = listaLocalidades.get(j).getIdLocalidad() ;\n break;\n }\n }\n //Toast.makeText(getActivity(), nombreDeLocSeleccionada[0], Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "private void addAccountsToSpinner(){\n ArrayAdapter<String> dataAdaptor = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, customer.getAccountNameList());\n dataAdaptor.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n acctSpinner.setAdapter(dataAdaptor);\n }", "@Override\n public void onLoadFinished(Loader<StockPicking> loader, StockPicking stockPicking) {\n View loadingIndicator = findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Keep data as this class attributes and update view\n mStockPicking = stockPicking;\n displayUpdate(stockPicking);\n getLoaderManager().destroyLoader(FETCH_STOCK_PICKING_LOADER_ID);\n }", "private void setUpSocialSpinner() {\n socialSpinner = mView.findViewById(R.id.social_spinner);\n\n // Get list of social conditions setup in strings.xml\n conditionsArray = new ArrayList<>(Arrays.asList(getResources().getStringArray(R.array.social_conditions)));\n conditionsArray.add(getResources().getString(R.string.spinner_empty)); //filter_empty is \"None\"\n\n // Convert ArrayList to array, so that it can be passed to SocialArrayAdapter\n String[] spinnerObject = new String[conditionsArray.size()];\n spinnerObject = conditionsArray.toArray(spinnerObject);\n\n // Create string ArrayAdapter that will be used for filterSpinner\n ArrayAdapter<String> spinnerAdapter = new SocialArrayAdapter(mActivity,\n R.layout.spinner_item, spinnerObject);\n socialSpinner.setAdapter(spinnerAdapter);\n\n // Set default selection to None\n int defaultIndex = conditionsArray.indexOf(getResources().getString(R.string.spinner_empty));\n socialSpinner.setSelection(defaultIndex);\n }", "private void createSpinners() {\n\t\tsuper.addSpinner(myResources.getString(\"FishReproduce\"));\n\t\tsuper.addSpinner(myResources.getString(\"SharkDeath\"));\n\t\tsuper.addSpinner(myResources.getString(\"SharkReproduce\"));\n\t}", "private void setUpLgaSpinner(List<String> lgas) {\n\n ArrayAdapter lgaAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, lgas);\n lgaAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n lgaAdapter.notifyDataSetChanged();\n mLgaSpinner.setAdapter(lgaAdapter);\n\n mLgaSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long l) {\n mLga = (String) parent.getItemAtPosition(position);\n// Toast.makeText(ProductsActivity.this, \"state: \" + mState + \" lga: \" + mLga, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n }\n });\n }", "private void getTaskSpinner() {\n\n StringRequest stringRequest = new StringRequest(\"https://cardtest10.000webhostapp.com/Sync_Spinner_T.php\", new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n try{\n\n JSONObject jsonResponse = new JSONObject(response);\n JSONArray jsonArraytask = jsonResponse.getJSONArray(\"task\");\n\n for(int i=0; i < jsonArraytask.length(); i++)\n {\n JSONObject jsonObjecttask = jsonArraytask.getJSONObject(i);\n String task = jsonObjecttask.optString(\"Type\");\n arrayTask.add(task);\n }\n\n }catch (JSONException e){\n e.printStackTrace();\n }\n\n // Applying the adapter to our spinner\n spTaskType.setAdapter(new ArrayAdapter <>(UserAreaActivity.this, android.R.layout.simple_spinner_dropdown_item, arrayTask));\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(UserAreaActivity.this, error + \"\", Toast.LENGTH_SHORT).show();\n }\n });\n\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n }", "@Override\n protected void onPostExecute(Void args) {\n Spinner mySpinner = (Spinner) findViewById(R.id.profile_spinner);\n\n // Spinner adapter\n mySpinner\n .setAdapter(new ArrayAdapter<String>(NewUserVehicleDetails.this,\n android.R.layout.simple_spinner_dropdown_item,\n modelvarlist));\n\n // Spinner on item click listener\n mySpinner\n .setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0,\n View arg1, int position, long arg3) {\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n }\n });\n }", "private void povoarSpinners() {\n List<String> lista = new ArrayList<>();\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[1]);\n lista.add(UsuarioNivelConstantes.VETOR_DESCRICOES[2]);\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnNivel.setAdapter(arrayAdapter);\n lista = new ArrayList<>();\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[0]);\n lista.add(UsuarioEstadoConstantes.VETOR_DESCRICOES[1]);\n arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, lista);\n arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n spnEstado.setAdapter(arrayAdapter);\n }", "private void setupSpinners() {\n\n ArrayAdapter<String> statesAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, states);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n statesAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // Apply the adapter to the spinner\n statesAdapter.notifyDataSetChanged();\n mStateSpinner.setAdapter(statesAdapter);\n\n // Set the integer mSelected to the constant values\n mStateSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n mState = (String) parent.getItemAtPosition(position);\n setUpStatesSpinner(position);\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // Unknown\n }\n });\n }", "private void playerSpinnerSetup(){\r\n\t\tSpinner spinner = (Spinner) findViewById(R.id.PlayerSpinner);\r\n \t\r\n \tArrayAdapter<String> adapter = new ArrayAdapter<String>(Statistics.this, android.R.layout.simple_spinner_item, players);\r\n \tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n \tspinner.setAdapter(adapter);\r\n \t\r\n \tspinner.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n \t\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\r\n \t\t\tcalculatePlayerStats(pos);\r\n \t\t\t\r\n \t\t\tplayerSpinnerPosition = pos;\r\n \t\t}\r\n\r\n \t\tpublic void onNothingSelected(AdapterView<?> parent) {\r\n \t\t}\r\n \t}); \t\r\n\t}", "@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tcontainerType = containerTypes.get(position);\n\t\t\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n type.getItems().add(\"Membre\");\n type.getItems().add(\"PetSitter\");\n type.getItems().add(\"Veterinaire\"); \n }", "private void preencheSpinner(){\n List<String> listaParentes = new ArrayList<String>();\n\n listaParentes.add(getString(R.string.selecioneParentesco));\n\n listaParentes.add(getString(R.string.pai));\n listaParentes.add(getString(R.string.mae));\n listaParentes.add(getString(R.string.esposoa));\n listaParentes.add(getString(R.string.filhoa));\n\n listaParentes.add(getString(R.string.neto));\n listaParentes.add(getString(R.string.genro));\n listaParentes.add(getString(R.string.nora));\n listaParentes.add(getString(R.string.tioa));\n listaParentes.add(getString(R.string.sobrinhoa));\n listaParentes.add(getString(R.string.amigo));\n\n ArrayAdapter<String> adapteSpinner = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, listaParentes);\n adapteSpinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerParentesco.setAdapter(adapteSpinner);\n }", "public void onItemSelected(AdapterView<?> parent, View view, int pos, long id){\n this.mAssessmentType = parent.getItemAtPosition(pos).toString();\n }", "private void loadSpinnerProvincias() {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(\n this, R.array.provincias, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spProvincias.setAdapter(adapter);\n\n // This activity implements the AdapterView.OnItemSelectedListener\n this.spProvincias.setOnItemSelectedListener(this);\n this.spLocalidades.setOnItemSelectedListener(this);\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n baseService.getPukul(waktus.get(position).getId())\n .enqueue(new Callback<PukulResponse>() {\n @Override\n public void onResponse(Call<PukulResponse> call, Response<PukulResponse> response) {\n if (response.isSuccessful()){\n pukuls.clear();\n spnPukul.clear();\n pukuls = response.body().getPukuls();\n final ArrayAdapter<String> adapter2 = new ArrayAdapter<>(getApplicationContext(), android.R.layout.simple_list_item_1, spnPukul);\n if (!pukuls.isEmpty()){\n spinnerTime.setAdapter(adapter2);\n for (int j = 0; j<pukuls.size(); j++){\n String pkl = pukuls.get(j).getStart() + \" - \" +pukuls.get(j).getEnd();\n spnPukul.add(pkl);\n adapter2.notifyDataSetChanged();\n\n spinnerTime.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n id_pukul = pukuls.get(position).getId();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }\n }\n }\n }\n\n @Override\n public void onFailure(Call<PukulResponse> call, Throwable t) {\n Log.e(\"Error Message\", t.getMessage());\n }\n });\n }", "private void setUpCategorySpinner() {\n mCategorySpinner = (Spinner) findViewById(R.id.spnCategory);\n categoryList = new ArrayList<>();\n categoryList.add(AppUtils.SELECT_CATEGORY);\n List<String> tempList = AppUtils.getAllCategoryName();\n categoryList.addAll(tempList);\n int size = categoryList.size();\n categoryList.add(size, AppUtils.CREATE_CATEGORY);\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_spinner_item, categoryList);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mCategorySpinner.setAdapter(dataAdapter);\n mCategorySpinner.setOnItemSelectedListener(this);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n spinnerDescuento.setEditable(false);\n spinnerDescuento.setFocusTraversable(false);\n SpinnerValueFactory<Integer> valueFactory\n = new SpinnerValueFactory.IntegerSpinnerValueFactory(5, 100,5 , 5);\n spinnerDescuento.setValueFactory(valueFactory);\n List<String> tipoPromociones = new ArrayList();\n tipoPromociones.add(\"Mensualidad\");\n tipoPromociones.add(\"Inscripción\");\n ObservableList<String> items = FXCollections.observableArrayList();\n items.addAll(tipoPromociones);\n cmbTipoPromocion.setItems(items);\n crearValidadorres();\n }", "private void SpinnerInitialize() {\n try{\n Spinner dropdownto = findViewById(R.id.tonumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownto.setAdapter(adapter);\n dropdownto.setSelection(0,true);\n\n Spinner dropdownfrom = findViewById(R.id.fromnumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n // ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownfrom.setAdapter(adapter);\n dropdownfrom.setSelection(0,true);\n }\n catch (Exception ex){\n Toast.makeText(InsertDb.this, ex.getMessage().toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "@Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n String roomType = spinner.getSelectedItem().toString();\n mListener.onFragmentInteraction(roomType);\n String returnedFromMain = ((MainActivity)getActivity()).getShareInFragments();\n TextView descript = (TextView)view.findViewById(R.id.description);\n ((MainActivity)getActivity()).setRoomType(returnedFromMain);\n String displayR = ((MainActivity)getActivity()).hR.toString();\n descript.setText((displayR));\n }", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "public void spinner() {\n /**\n * calls if the tasks was weekly, if not, it will be automatically set to \"once\"\n */\n if(weekly) {\n String[] items = new String[]{activity.getResources().getString(R.string.sunday), activity.getResources().getString(R.string.monday), activity.getResources().getString(R.string.tuesday), activity.getResources().getString(R.string.wednesday), activity.getResources().getString(R.string.thursday), activity.getResources().getString(R.string.friday), activity.getResources().getString(R.string.saturday)};\n ArrayAdapter<String> frequencyAdapter = new ArrayAdapter<String>(activity.getBaseContext(), android.R.layout.simple_spinner_dropdown_item, items);\n weekday.setAdapter(frequencyAdapter);\n weekday.getBackground().setColorFilter(activity.getResources().getColor(R.color.colorAccent), PorterDuff.Mode.SRC_ATOP);\n weekday.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n day = String.valueOf(position + 1); //chosen day is stored\n\n }\n\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n } else {\n day = \"8\";\n weekday.setVisibility(View.GONE);\n }\n }", "private void setupSchoolSpinner(){\n //region Used to set up the school spinner\n\n schools = new ArrayList<>(SchoolManager.getListOfAllSchools());\n\n ArrayAdapter<School> schoolAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, schools);\n schoolAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n schoolSpinner.setAdapter(schoolAdapter);\n schoolSpinner.setOnItemSelectedListener(this);\n\n //endregion End code for school spinner\n }", "@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n mPriceEditText.setText(\"\");\n mQuantityEditText.setText(\"\");\n mSupplierEditText.setText(\"\");\n mTypeSpinner.setSelection(0); // Select \"NOT SELECTED\"\n }", "TinySpinnerButtonUI ( int type )\r\n {\r\n orientation = type;\r\n }", "public void runSpinner() {\r\n addItemsOndifficultySpinner();\r\n addListenerOnButton();\r\n addListenerOnSpinnerItemSelection();\r\n }", "private SpinnerModel geSpinnerModel(){\n return new SpinnerNumberModel(0, 0, null, 1);\n }", "@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n ArrayAdapter<String> adapter_state1 = new ArrayAdapter<String>(MainActivity.this, R.layout.simple_list_item_2, arrayListtype){\n\n @Override\n public boolean isEnabled(int position){\n if(position == 0)\n {\n // Disable the first item from Spinner\n // First item will be use for hint\n return false;\n }\n else\n {\n return true;\n }\n }\n @Override\n public View getDropDownView(int position, View convertView,\n ViewGroup parent) {\n View view = super.getDropDownView(position, convertView, parent);\n TextView tv = (TextView) view;\n if(position == 0){\n // Set the hint text color gray\n tv.setTextColor(getResources().getColor(R.color.grey));\n }\n else {\n tv.setTextColor(getResources().getColor(R.color.textcolour));\n }\n return view;\n }\n };\n\n adapter_state1\n .setDropDownViewResource(R.layout.simple_list_item_1);\n\n sp1.setAdapter(adapter_state1);\n pdia.dismiss();\n\n }", "private void setActionSpinner(boolean isClickAction, int pos) {\n Spinner actionSpinner, typeSpinner;\n\n if (isClickAction) {\n actionSpinner = mClickActionSpinner;\n typeSpinner = mClickActionTypeSpinner;\n mClickTypeSelection = pos;\n } else {\n actionSpinner = mHoldActionSpinner;\n typeSpinner = mHoldActionTypeSpinner;\n mHoldTypeSelection = pos;\n }\n\n ArrayAdapter<String> actionAdapter;\n LinearLayout.LayoutParams actionParams = new LinearLayout.LayoutParams(0,\n LinearLayout.LayoutParams.WRAP_CONTENT);\n LinearLayout.LayoutParams actionTypeParams = new LinearLayout.LayoutParams(0,\n LinearLayout.LayoutParams.WRAP_CONTENT);\n actionParams.weight = 1;\n actionTypeParams.weight = 1;\n\n\n switch (pos) {\n case 0: // Action Type: None\n actionSpinner.setVisibility(View.GONE);\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mContext.getResources().getStringArray(R.array.dialog_spinner_empty));\n actionAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n actionSpinner.setAdapter(actionAdapter);\n\n actionParams.weight = 0;\n actionTypeParams.weight = 2;\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n case 1: // Action Type: Volume\n actionSpinner.setVisibility(View.VISIBLE);\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mContext.getResources().getStringArray(R.array.dialog_action_volume));\n actionAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n actionSpinner.setAdapter(actionAdapter);\n\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n case 2: // Action Type: Media\n actionSpinner.setVisibility(View.VISIBLE);\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mContext.getResources().getStringArray(R.array.dialog_action_media));\n actionAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n actionSpinner.setAdapter(actionAdapter);\n\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n case 3: // Action Type: Integrated\n actionSpinner.setVisibility(View.VISIBLE);\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mContext.getResources().getStringArray(R.array.dialog_action_integrated));\n actionAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n actionSpinner.setAdapter(actionAdapter);\n\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n case 4: // Action Type: Application\n actionSpinner.setVisibility(View.VISIBLE);\n AppListAdapter appAdapter = new AppListAdapter(mContext);\n actionSpinner.setAdapter(appAdapter);\n\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n case 5: // Action Type: Tasker\n actionSpinner.setVisibility(View.VISIBLE);\n if (mTaskerTasks != null) {\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mTaskerTasks);\n } else {\n actionAdapter = new ArrayAdapter<>(mContext, android.R.layout.simple_spinner_item,\n mContext.getResources().getStringArray(R.array.dialog_spinner_empty));\n }\n actionSpinner.setAdapter(actionAdapter);\n\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n default:\n actionSpinner.setVisibility(View.GONE);\n actionParams.weight = 0;\n actionTypeParams.weight = 2;\n actionSpinner.setLayoutParams(actionParams);\n typeSpinner.setLayoutParams(actionTypeParams);\n break;\n }\n\n\n }", "@Override\n protected void onPostExecute(Void args) {\n Spinner mySpinner = (Spinner) findViewById(R.id.manu_spinner);\n\n // Spinner adapter\n mySpinner\n .setAdapter(new ArrayAdapter<String>(NewUserVehicleDetails.this,\n android.R.layout.simple_spinner_dropdown_item,\n manufatureslist));\n\n // Spinner on item click listener\n mySpinner\n .setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0,\n View arg1, int position, long arg3) {\n // new DownloadModelVarJSON().execute();\n Spinner manufacturSpin=(Spinner) findViewById(R.id.manu_spinner);\n String name = manufacturSpin.getSelectedItem().toString();\n\n GetModelVarDropdon(name);\n\n\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n // TODO Auto-generated method stub\n }\n });\n }", "private void classes() {\n List<String> list = new ArrayList<>();\n list.add(\"Mont.\");\n list.add(\"Nur\");\n list.add(\"KG 1\");\n list.add(\"KG 2\");\n list.add(\"Class 1\");\n list.add(\"Class 2\");\n list.add(\"Class 3\");\n list.add(\"Class 4\");\n list.add(\"Class 5\");\n list.add(\"Class 6\");\n list.add(\"Class 7\");\n list.add(\"Class 8\");\n list.add(\"Class 9\");\n list.add(\"Class 10\");\n\n\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n cls.setAdapter(dataAdapter);\n }" ]
[ "0.7174788", "0.7110188", "0.69413555", "0.6888289", "0.6843952", "0.68083423", "0.6727435", "0.6656985", "0.6643979", "0.6633112", "0.6602589", "0.658011", "0.6551154", "0.6536413", "0.6510855", "0.6509829", "0.648635", "0.6472244", "0.63835335", "0.6382808", "0.6381081", "0.6373399", "0.6370118", "0.6363458", "0.63555956", "0.6350185", "0.6344447", "0.6338592", "0.6335611", "0.6322766", "0.6310158", "0.62765354", "0.6271649", "0.6271127", "0.6267775", "0.6250769", "0.6248533", "0.6188264", "0.61581767", "0.6142177", "0.613238", "0.61076653", "0.61014175", "0.60880554", "0.60701114", "0.6063806", "0.6060781", "0.6045154", "0.6039869", "0.60299253", "0.6028622", "0.6015919", "0.6012827", "0.6006877", "0.6000561", "0.59964854", "0.59860027", "0.5973746", "0.59676915", "0.59651995", "0.5961122", "0.59472984", "0.5924984", "0.59228504", "0.5916963", "0.5915557", "0.5911506", "0.5902877", "0.5901668", "0.5899367", "0.5897489", "0.5895625", "0.5895393", "0.58918107", "0.5885957", "0.5875317", "0.5873208", "0.5863187", "0.58612853", "0.58596915", "0.583391", "0.5824663", "0.58187", "0.581725", "0.581461", "0.58120596", "0.5797899", "0.57941747", "0.5789555", "0.57795054", "0.5777999", "0.57757026", "0.5774134", "0.57719076", "0.57600194", "0.57597715", "0.5749241", "0.5739681", "0.57360184", "0.5733521" ]
0.58524996
80
getItem is called to instantiate the fragment for the given page. Return a PlaceholderFragment (defined as a static inner class below).
@Override public Fragment getItem(int position) { return PlaceholderFragment.newInstance(position + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position);\n }", "@Override\n public Fragment getItem(int position) {\n return WebPageFragment.newInstance(position);\n }", "@NonNull\n\t\t@Override\n\t\tpublic androidx.fragment.app.Fragment getItem(int position) {\n\t\t\treturn PlaceholderFragment.newInstance(position + 1);\n\t\t}", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment;\n\t\t\tif (fragments.isEmpty() || fragments.size() <= position) {\n\t\t\t\tfragment = new PlaceholderFragment(position);\n\t\t\t\tBundle args = new Bundle();\n\t\t\t\targs.putInt(PlaceholderFragment.ARG_SECTION_NUMBER, position);\n\t\t\t\tfragment.setArguments(args);\n\n\t\t\t\tfragments.add(position, fragment);\n\t\t\t} else {\n\t\t\t\tfragment = fragments.get(position);\n\t\t\t}\n\n\t\t\treturn fragment;\n\t\t}", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@Override\r\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\r\n }", "@Override\n public Fragment getItem(int position) {\n \t mFragment[position] = PlaceholderFragment.newInstance(position);\n return mFragment[position];\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n\n }", "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1);\n }", "@NonNull\n public abstract Fragment getItem(int position);", "@NonNull\r\n @Override\r\n public Fragment getItem(int position) {\n switch (position) {\r\n case 0:\r\n return new SubmitFragment();\r\n\r\n case 1:\r\n return new SearchFragment();\r\n }\r\n throw new RuntimeException(\"Can not get item.\");\r\n }", "public static FavViewPagerItemFragment getInstance(String pageTitle){\n\n FavViewPagerItemFragment fragment = new FavViewPagerItemFragment();\n\n Bundle args = new Bundle();\n args.putString(PAGE_TITLE, pageTitle);\n fragment.setArguments(args);\n //System.out.println(\"ViewPagerItemFragment getInstance--------------\" + fragment);\n //System.out.println(\"receive x from activity\" + fragment);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n recogidaFragment = RecogidaFragment.newInstance(\"Nombre\", \"Apellidos\");\n return recogidaFragment;\n case 1:\n entregaFragment = EntregaFragment.newInstance(\"Nombre\",\"Apellidos\");\n return entregaFragment;\n }\n return null;\n // Return a PlaceholderFragment (defined as a static inner class below).\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return PageFragment.newInstance(0);\n case 1:\n return MentionFragment.newInstance(0);\n\n default:\n return null;\n }\n }", "public abstract @NonNull\n Fragment getItem(int position);", "@Override\n public Fragment getItem(int curent_page){\n switch (curent_page){\n case 0:\n WeatherAndForecastFragment fragment1 = new WeatherAndForecastFragment();\n return fragment1;\n case 1:\n WeatherAndForecastFragment fragment2 = new WeatherAndForecastFragment();\n return fragment2;\n case 2:\n WeatherAndForecastFragment fragment3 = new WeatherAndForecastFragment();\n return fragment3;\n\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n int imageId = imgs.getResourceId(position, -1);\n return PlaceholderFragment.newInstance(position + 1, premium_title_green[position], premium_title_black[position], premium_messages[position], imageId);\n }", "@Override\n public Fragment getItem(int position) {\n Fragment fragment = new Fragment();\n switch (position)\n {\n case 0:\n fragment = carCheckBasicInfoFragment;\n break;\n case 1:\n fragment = carCheckFrameFragment;\n break;\n case 2:\n fragment = carCheckIntegratedFragment;\n break;\n }\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return AddPlaceholderFragment.newInstance();\n case 1:\n return mChange;\n case 2:\n return mDelete;\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0)\n return new RootFragment();\n else\n return new StaticFragment();\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n return new ItemAuctionFragment();\n case 1:\n return new ItemBidsFragment();\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n //Fragment frag = new HomeScreenFragment();\n //return frag;\n switch (position)\n {\n case 0:\n return new HomeScreenFragment();\n case 2:\n return new AddRestaurantFragment();\n default:\n return new Fragment();\n }\n }", "@Override\r\n public Fragment getItem(int position) {\r\n\r\n switch (position) {\r\n case 0:\r\n\r\n hFragment = createClientFragment(\"Homme\");\r\n return hFragment;\r\n\r\n case 1:\r\n\r\n fFragment = createClientFragment(\"Femme\");\r\n return fFragment;\r\n\r\n\r\n case 2:\r\n eFragment = createClientFragment(\"Enfant\");\r\n return eFragment;\r\n default:\r\n return null;\r\n }\r\n }", "@Override\n public Fragment getItem(int position) {\n // Create a new fragment according to the position of the ViewPager\n if (position == 0) {\n return new BlogFragment();\n } else if (position == 1) {\n return new MapFragment();\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return DetailsFragment.newInstance(position);\n case 1:\n return MapsFragment.newInstance(position);\n }\n return null;\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\tcase 0 :\n\t\t\t\t// Home fragment\n\t\t\t\treturn new HomeFragment();\n\t\t\tcase 1 :\n\t\t\t\t// Exercises fragment\n\t\t\t\treturn new ExercisesFragment();\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return pageHome;\n case 1:\n return pageJava;\n case 2:\n return pageAndroid;\n default:\n return pageHome;\n }\n }", "@Override\r\n\t\tpublic Fragment getItem(int position) {\r\n\t\t\tTabInfo info = getTabs().get(position);\r\n\t\t\treturn Fragment.instantiate(getContext(), info.clss.getName(), info.args);\r\n\t\t}", "@Override\n\tpublic Fragment getItem(int position) {\n\t\tif(this.getRegisteredFragment(position)!=null){\n\t\t\treturn getRegisteredFragment(position);\n\t\t}else{\n\t\t\t//return FavFragment.newInstance();//QiangContentFragment.newInstance(position);\n\t\t\treturn QiangContentFragment.newInstance(position);\n\t\t}\n//\t\treturn MenuContentFragment.newInstance(\"pager\" + position);\n\t}", "@Override\n public Fragment getItem(int position) {\n MainFragment fragment=new MainFragment();\n fragment.setType(position);\n return fragment;\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\tfragment = ToDoFragment.newInstance(userId, userName);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tfragment = ToGoFragment.newInstance();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tfragment = ToDoFragment.newInstance(userId, userName);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn fragment;\n\t\t}", "@Override\r\n public Fragment getItem(int position) {\r\n try {\r\n switch (position) {\r\n case 0:\r\n return new HomeInfoFragment();\r\n case 1:\r\n return new BlogsFragment();\r\n case 2:\r\n return new HomeFeedsFragment();\r\n case 3:\r\n return new NetworkingOptionFragment();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "@Override\n public Fragment getItem(int position) {\n Light light = ambiance.lights.get(position);\n PlaceholderFragment pf = PlaceholderFragment.newInstance(position);\n pf.ambiance = ambiance;\n pf.lights = light;\n return pf;\n }", "@Override\n public Fragment getItem(int position) {\n\n if (position == 0) {\n return new HotelFragment();\n } else if (position == 1) {\n return new MallFragment();\n } else if (position == 2) {\n return new RestaurentFragment();\n } else {\n return new HistoricalSiteFragment();\n }\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\treturn ContentFragment.newInstance(contents.getChapterFile(position));\n\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return MainFragment.newInstance();\n case 1:\n return LoginFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position)\n {\n case 0:\n return new Test();\n case 1:\n return new Facility_manager();\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0) {\n return new FieldSearchFragment();\n } else {\n return new MatchSearchFragment();\n }\n }", "public FindItemFragment() {\n }", "@Override\n public Fragment getItem(int position) {\n if(articlesList != null && articlesList.size() > position) {\n return PlaceholderFragment.newInstance(articlesList.get(position),category);\n }\n return PlaceholderFragment.newInstance(null,null);\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n if (position == 0){\n return new AccommodationFragment();\n }else if (position == 1){\n return new FoodFragment();\n }else if(position == 2){\n return new DrinkFragment();\n }else {\n return new FunFragment();\n }\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\t\t//case 0:return PlaceholderFragment.newInstance(position + 1);//defaultFragment();\n\t\t\t\tcase MANAGE_RECORDINGS:\n\t\t\t\t\treturn ManageRecordingsFrame.newInstance(position);\n\t\t\t\tcase SEARCH_FOR_STATIONS:\n\t\t\t\t\treturn SearchForStationsFrame.newInstance(position);\n\t\t\t\tcase MANAGE_STATIONS:\n\t\t\t\t\treturn ManageFavoriteStationsFrame.newInstance(position);\n\t\t\t\tcase FAVORITE_STATIONS:\n\t\t\t\tdefault:\n\t\t\t\t\treturn FavoriteStationsFrame.newInstance(0);//\n\t\t\t}\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return Alarm_Fragment_1.newInstance(0, \"Page #1\");\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return Alarm_Fragment_2.newInstance(1, \"Page # 2\");\n case 2: // Fragment # 1 - This will show SecondFragment\n return Alarm_Fragment_3.newInstance(2, \"Page # 3\");\n case 3 : return Alarm_Fragment_4.newInstance(3, \"Page # 4\");\n case 4 : return Alarm_Fragment_5.newInstance(5, \"Page # 5\");\n //return Frag5.newInstance(4, \"Page # 5\");\n case 5 : return Alarm_Fragment_6.newInstance(6, \"Page # 6\");\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0:\n\n return MainFragment.newInstance(position + 1);\n\n case 1:\n\n return NewContactFragment.newInstance(\"\", \"\");\n\n case 2:\n\n return CallLogFragment.newInstance(1);\n }\n return null;\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return FragmentA.newInstance(\"This is First Fragment\");\n case 1:\n return FragmentB.newInstance(\"This is second Fragment\");\n case 2:\n return FragmentC.newInstance(\"This is Third Fragment\");\n }\n return FragmentA.newInstance(\"This is Default Fragment\");\n }", "@Override\n public Object instantiateItem(ViewGroup container, int position) {\n Fragment fragment = (Fragment) super.instantiateItem(container, position);\n registeredFragments.put(position, fragment);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n\n switch (position) {\n case 0:\n fragment = new PublicTabFragment();\n break;\n case 1:\n if (Utilities.isUser()) {\n fragment = new MeTabFragment();\n } else {\n fragment = new PromptLoginFragment();\n }\n break;\n default:\n fragment = new PublicTabFragment();\n break;\n }\n\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n //To do\n //return the corresponded fragment according to position\n //remember that the position can not be out of [0, 2]\n\n switch (position) {\n case 0:\n return CollectionFragment.newInstance(0, \"\");\n case 1:\n return CollectionFragment.newInstance(1, \"\");\n default:\n return null;\n }\n\n //To do closed\n }", "@Override\n public Fragment getItem(int position) {\n Log.d(\"DEBUG\", \"Position : \" + position);\n //return PlaceholderFragment.newInstance(position + 1);\n\n\n switch (position) {\n case 0:\n return SectionsFragment1.newInstance(position + 1);\n case 1:\n return SectionsFragment2.newInstance(position + 1);\n case 2:\n return SectionsFragment3.newInstance(position + 1);\n }\n\n return null;\n\n }", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n return FirstFragment.newInstance(\"\",\"\");\n case 1:\n return ATMFragment.newInstance(\"\",\"\");\n default:\n return FirstFragment.newInstance(\"\",\"\");\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return FirstFragment.newInstance();\n case 1:\n return SecondFragment.newInstance();\n case 2:\n return ThirdFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\r\n\tpublic Fragment getItem(int position) {\n\t\tswitch(position) {\r\n\t\t\tcase 2:\t\t\r\n\t\t\t\treturn new FriendsFragment();\r\n\t\t\tcase 0: \r\n\t\t\t\treturn new LibraryFragment();\r\n\t\t\tcase 3:\r\n\t\t\t\treturn new InboxFragment();\r\n\t\t\tcase 1:\r\n\t\t\t\treturn new BorrowedFragment();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return FootprintMineFragment.newInstance();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return FootprintAllFragment.newInstance();\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n FirstFragment firstFragment = new FirstFragment();\n return firstFragment;\n case 1:\n SecondFragment secondFragment = new SecondFragment();\n return secondFragment;\n case 2:\n ThirdFragment thirdFragment = new ThirdFragment();\n return thirdFragment;\n default:\n return null;\n }\n }", "@NonNull\n @Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\t\n\t\t\n\t\tFragment fragment=new EmojiFragment(this.activity);\n\t\treturn fragment;\n\t\t\n//\t\tFragment fragment = new DummySectionFragment();\n//\t\tBundle args = new Bundle();\n//\t\targs.putInt(DummySectionFragment.ARG_SECTION_NUMBER, position + 1);\n//\t\tfragment.setArguments(args);\n//\t\treturn fragment;\n\t}", "@NonNull\n @Override\n public Fragment getItem(int position) {\n return pagerFragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n Bundle bundle = new Bundle();\n bundle.putString(\"placeid\",placeid);\n bundle.putString(\"data\",jsonData);\n switch (position){\n case 0:\n InfoFragment fragment = new InfoFragment();\n fragment.setArguments(bundle);\n return fragment;\n case 1:\n PhotosFragment fragment1 = new PhotosFragment();\n fragment1.setArguments(bundle);\n return fragment1;\n case 2:\n MapFragment fragment2 = new MapFragment();\n fragment2.setArguments(bundle);\n return fragment2;\n case 3:\n ReviewFragment fragment3 = new ReviewFragment();\n fragment3.setArguments(bundle);\n return fragment3;\n }\n return null;\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return new FastFoodFragmentFaisal();\n case 1:\n return new PorotaFragmentFaisal();\n case 2:\n return new PithaFragmentFaisal();\n case 3:\n return new POMFragmentFaisal();\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0){\n return MainFragment.newInstance();\n } else {\n return RepositoryFragment.newInstance();\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n FragmentAboutUs aboutFragment = new FragmentAboutUs();\n\n return aboutFragment;\n case 1:\n FragmentContactUs contactUsFragment = new FragmentContactUs();\n return contactUsFragment;\n case 2:\n FragmentDonate donateFragment = new FragmentDonate();\n return donateFragment;\n case 3:\n FragmentHelp helpFragment = new FragmentHelp();\n return helpFragment;\n default:\n return null;\n }\n }", "@Override\n\tpublic Fragment getItem(int position) \n\t{\n if (position == SimpleCarouselTest.FIRST_PAGE)\n \tscale = SimpleCarouselTest.BIG_SCALE;\n else\n \tscale = SimpleCarouselTest.SMALL_SCALE;\n \n position = position % SimpleCarouselTest.PAGES;\n return MyFragment.newInstance(context, position, scale);\n\t}", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return new About();\n case 1:\n return new play();\n case 2:\n return new Rules();\n default:\n return new play();\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n System.out.println(\"ana fl case 0:\" + song.coverURL);\n return result_fragment.newInstance(song.coverURL, song.title, song.artist, song.album);\n\n case 1: // Fragment # 1 - This will show FirstFragment different title\n return LyricsFragment.newInstance(song.lyrics);\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int arg0) {\n return mFragments.get(arg0);\n }", "@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0: // Fragment # 0 - This will show WelcomeActivity\n Context context;\n return WelcomeActivity.newInstance(0, R.string.page0);\n case 1: // Fragment # 1 - This will show FirstFragment\n return FirstFragment.newInstance(1, R.string.page1);\n case 2: // Fragment # 2 - This will show SecondFragment\n return SecondFragment.newInstance(2, R.string.page2);\n case 3: // Fragment # 1 - This will show ThirdFragment\n return ThirdFragment.newInstance(3, R.string.page3);\n case 4:// Fragment # 1 - This will show FourthFragment\n return FourthFragment.newInstance(4,R.string.page4);\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n ToursFragment toursFragment = new ToursFragment();\n return toursFragment;\n case 1:\n MapFragment mapFragment = new MapFragment();\n return mapFragment;\n case 2:\n LandmarkCardsFragment cardsFragment = new LandmarkCardsFragment();\n return cardsFragment;\n default:\n return null;\n }\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment = new SectionFragment(); \n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n\t\t\tfragment.setArguments(args);\n\t\t\t\n\t\t\t\n\t\t\treturn fragment;\n\t\t\t\n\t\t}", "@Override\n public Fragment getItem(int position) {\n Bundle args = new Bundle();\n AttVFragment fragment = new AttVFragment();\n args.putInt(AttVFragment.ARG_SECTION_NUMBER, position);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n if(position==0){\n return new TabItemFragment();\n }else{\n return new AnotherTabItemFragment();\n }\n\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n uiManageParty tab1 = new uiManageParty();\n return tab1;\n\n case 1:\n uiHostPlayLists tab2 = new uiHostPlayLists();\n return tab2;\n\n case 2:\n uiHostNowPlaying tab3 = new uiHostNowPlaying();\n return tab3;\n\n default:\n return null;\n }\n }", "@Override\n public android.support.v4.app.Fragment getItem(int position) {\n if (position == 0) {\n return new TouristSpots();\n } else if (position == 1) {\n return new Hotels();\n } else if (position == 2) {\n return new Restaurant();\n } else {\n return new Beaches();\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return DishListFragment.newInstance(0);\n case 1:\n return DishListFragment.newInstance(1);\n case 2:\n return DishListFragment.newInstance(2);\n default:\n return null;\n }\n }", "@Override\r\n\tpublic Fragment getItem(int arg0) {\n\t\t\r\n\t\tswitch (arg0) {\r\n\t\t\r\n case 0:\r\n \t \r\n \t return new MyTasks();\r\n \t \r\n \t \r\n case 1:\r\n \t \r\n \t return new PlannedActivities();\r\n \t \r\n \t \r\n /* case 2:\r\n \t \r\n \t return new MOPWheatHome();*/\r\n \t \r\n case 2:\r\n \t return new MyRetailers();\r\n \t // return new ExpensesHome();\r\n \r\n case 3:\r\n \t return new FarmerHome();\r\n case 4:\r\n \t return new Stock();\r\n case 5:\r\n \t return new UpcomingDemoHome();\r\n case 6:\r\n \t return new Reports_FA();\r\n /* case 4:\r\n \t \r\n \t return new MOPMustardHome();\r\n \t \r\n case 5:\r\n \t \r\n \t return new RetailerHomeScreen();*/\r\n \t \r\n /*case 6:\r\n \t \r\n \t return new PotashContent();\r\n \t */\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public static Fragment selectFragment(int itemId) {\n switch (itemId){\n case R.id.menu_home: {\n return new HomeFragment();\n }\n case R.id.menu_search: {\n return new SearchFragment();\n }\n case R.id.menu_profile: {\n return new ProfileFragment();\n }\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return new ListFragment();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return new GridFragment();\n\n default:\n return null;\n }\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\treturn fragments.get(position);\n\t}", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\r\n\t\tpublic Fragment getItem(int arg0) {\n\t\t\treturn (fragments == null || fragments.size() == 0) ? null\r\n\t\t\t\t\t: fragments.get(arg0);\r\n\t\t}", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n FgFollow fgFollow = new FgFollow();\n return fgFollow;\n case 1:\n FgMySimulation fgMySimulation = new FgMySimulation();\n return fgMySimulation;\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n Fragment fragment = null;\n switch (position){\n case 0:\n fragment = new FragmentTrailer();\n break;\n case 1:\n fragment = new FragmentReviews();\n break;\n default:\n fragment = null;\n break;\n }\n\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n return ListFragment.newInstance(context.getResources().getString(pageTitles[position]), darkTheme);\n }", "public ItemFragment() {\n }", "@Override\n public Fragment getItem(int position) {\n return NewsFragment.newInstance(position, newsModelArrayList.get(position));\n\n }" ]
[ "0.72931826", "0.71674734", "0.71284634", "0.7076036", "0.6995453", "0.6978166", "0.69569373", "0.69329894", "0.6915904", "0.6794821", "0.67763954", "0.6727484", "0.67137283", "0.6680278", "0.66567665", "0.6612565", "0.6604856", "0.65769875", "0.6554182", "0.647986", "0.6475206", "0.6450651", "0.6406748", "0.6397869", "0.63688916", "0.6360002", "0.6357854", "0.63554716", "0.6350229", "0.63419724", "0.63345444", "0.6302068", "0.6286491", "0.62840825", "0.62777454", "0.62646455", "0.62517023", "0.6243868", "0.62410915", "0.6237215", "0.62306273", "0.6229854", "0.6220081", "0.62195337", "0.6216729", "0.61964196", "0.6196153", "0.6195368", "0.61859196", "0.6175455", "0.61716443", "0.61687845", "0.61387545", "0.6138434", "0.61381596", "0.6137871", "0.6137269", "0.6131197", "0.6130582", "0.6124084", "0.6107351", "0.6106796", "0.60983205", "0.6097898", "0.60906595", "0.6088108", "0.60838", "0.6068612", "0.606442", "0.6056261", "0.6052451", "0.6037401", "0.6036912", "0.60368216", "0.6033347", "0.60207254", "0.6019072", "0.60164756", "0.60098153", "0.60052806", "0.60052806", "0.59844965", "0.5983738", "0.5983033", "0.59823054", "0.5977913", "0.59765965" ]
0.700654
13
Show 3 total pages.
@Override public int getCount() { return 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic int getCount() {\n\t\t\t// Show 3 total pages.\n\t\t\treturn 3;\n\t\t}", "@Override\n // This returns the number of pages we have within our view pager\n public int getCount() {\n return 3;\n }", "int getPagesAmount();", "long getAmountPage();", "int getPagesize();", "private void updateTotalPageNumbers() {\n totalPageNumbers = rows.size() / NUM_ROWS_PER_PAGE;\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public int getPageCount() { return _pages.size(); }", "public Integer getPerPage();", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "@Test\n public void getListingsPages_3() throws IOException {\n List<String> listingsPages = imobiParser.getListingPages(TEST_URL_PAGINATION_ABSENT);\n\n Assert.assertThat(listingsPages, notNullValue());\n Assert.assertThat(listingsPages.size(), is(1));\n Assert.assertThat(listingsPages, hasItem(is(TEST_URL_PAGINATION_ABSENT.replaceFirst(\"\\\\{pageNumber\\\\}\", String.valueOf(1)))));\n }", "public void setPages(int pages) {\n this.pages = pages;\n }", "public int getPages() {\n return pages;\n }", "public Integer getPageCount();", "public int getPages(){\n return pages;\n }", "int getPage();", "public int getPages()\n {\n return pages;\n }", "@Override\n public int numberOfPages() {\n // TODO Auto-generated method stub\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public void page()\n {\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().get(\"http://18.222.188.206:3333/accounts?_page=3\");\n response.then().assertThat().statusCode(200);\n System.out.println(\"The list of accounts in the page 3 is displayed below:\");\n response.prettyPrint();\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "@Override\n\tpublic Integer getTotalPages(ConditionInfo cf) {\n\t\treturn rd.getTotalPages(cf);\n\t}", "@Override\n public int getCount() {\n int TOTAL_PAGES = totalPages;\n return TOTAL_PAGES;\n }", "public int getPages() {\n return pages;\n }", "public int getPages() {\n return pages;\n }", "public int getRowsPerPage();", "public int getTotalPages() {\r\n return totalPages;\r\n }", "private void show(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tInteger page = request.getParameter(\"page\") == \"\" || request.getParameter(\"page\") == null ? 1\r\n\t\t\t\t: Integer.valueOf(request.getParameter(\"page\"));\r\n\t\tint count = service.selectCount();\r\n\t\trequest.setAttribute(\"page\", page);\r\n\t\trequest.setAttribute(\"count\", count);\r\n\t\tList<Notice> list = service.selectAll((page - 1) * 5, 5);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoGuanLi.jsp\").forward(request, response);\r\n\t}", "default Integer getPageSize() {\n return 10;\n }", "int getNumPages();", "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "public abstract void onLoadMore(int page, int totalItemsCount);", "public abstract void onLoadMore(int page, int totalItemsCount);", "public void setPage(int value) {\n this.page = value;\n }", "protected int getTotalPages(FacesContext context) {\n String forValue = (String) getAttributes().get(\"for\");\n UIData uiData = (UIData) getForm(context).findComponent(forValue);\n if (uiData == null) {\n return 0;\n }\n int rowsPerPage = uiData.getRows(); \n int totalRows = uiData.getRowCount();\n int result = totalRows / rowsPerPage;\n if (0 != (totalRows % rowsPerPage)) {\n result++;\n }\n return result;\n }", "@Override\n\tpublic ThirdPage getThirdPage(String module) {\n\t\treturn thirdPageMapper.findWithModule(module);\n\t}", "private int getResultsPerPage()\n {\n final int RESULTS_0 = 16;\n final int RESULTS_1 = 32;\n final int RESULTS_2 = 46;\n \n int index = filterNumResults.getSelectedIndex();\n switch(index)\n {\n case 0: return RESULTS_0;\n case 1: return RESULTS_1;\n case 2: return RESULTS_2;\n default: return 0;\n }\n }", "public Integer getCurrentPageSize();", "public static void talk() {\r\n\t\t\r\n\t\tif (ths.page == 3) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "public static void take() {\r\n\t\t\r\n\t\tif (ths.page == 4) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "Integer getPage();", "public int getPageTotalNumber(int totalNumber) {\n/* 70 */ int fullPage = totalNumber / 25;\n/* 71 */ return (totalNumber % 25 > 0) ? (fullPage + 1) : ((fullPage == 0) ? 1 : fullPage);\n/* */ }", "int getPageNumber();", "public int getTotalPages()\r\n {\r\n return pageNames.size()-1;\r\n }", "void loadAll(int pageNum, LoadView mLoadView);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records!&nbsp;\";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}", "public void setPage(Integer page) {\n this.page = page;\n }", "Pages getPages();", "public void setPage(int page) {\n this.page = page;\n }", "public static void main(String[] args) throws Exception {\n PdfDocument doc = new PdfDocument();\r\n //Set margin\r\n PdfUnitConvertor unitCvtr = new PdfUnitConvertor();\r\n PdfMargins margin = new PdfMargins();\r\n margin.setTop(unitCvtr.convertUnits(2.54f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point));\r\n margin.setBottom(margin.getTop());\r\n margin.setLeft(unitCvtr.convertUnits(3.17f, PdfGraphicsUnit.Centimeter, PdfGraphicsUnit.Point));\r\n margin.setRight(margin.getLeft());\r\n\r\n drawCover(doc.getSections().add(), margin);\r\n drawContent(doc.getSections().add(), margin);\r\n drawPageNumber(doc.getSections().get(1), margin, 1, doc.getSections().get(1).getCount());\r\n\r\n //Save pdf file.\r\n doc.saveToFile(\"output/pagination.pdf\");\r\n doc.close();\r\n }", "private void pagination(){\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if (dy>0){\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int lastItem = layoutManager.findLastCompletelyVisibleItemPosition(); //finds last visible item\n int currentTotalCount = layoutManager.getItemCount(); //find total number of displayed items\n\n if (mLoadingItems){\n if (currentTotalCount > previousTotal){\n mLoadingItems = false;\n previousTotal = currentTotalCount;\n }\n }\n if (!mLoadingItems && (currentTotalCount <= (lastItem +view_threshold))) {\n mLoadingItems = true;\n //Increment number of items on the list\n firstItemVisible = firstItemVisible+10;\n lastItemVisible = lastItemVisible+10;\n //Update adapter\n jsonParse();\n }\n }\n }\n });\n }", "private void abreContasPagas() {\n FiltroDataListaFornecedor dataListaFornecedor\n = new FiltroDataListaFornecedor(\n new String[]{\n \"/br/rel/caixa/ContasPagas.jasper\",\n \"MES\",\n \"0\"});\n dataListaFornecedor.setVisible(true);\n }", "@Override\r\n\tpublic int nombrePage() {\n\t\treturn 0;\r\n\t}", "public int getPageCount()\n {\n return _pages.size();\n }", "public int getTotalArticle() {\n int listLimit;\n int total;\n int totalPage;\n listLimit = getArticleRowCount();\n clickGoToLastPageBtn();\n // Has to used this method instead of goToPageBtn().size() since the maximum size of the goToPageBtn list is always 10\n totalPage = Integer.parseInt(goToPageBtn().get(goToPageBtn().size() - 1).getText().trim());\n total = getArticleRowCount() + listLimit * totalPage;\n return total;\n }", "PageInfo list(Date beginDate, Date endDate, List<Integer> resources, int pageNo, int pageSize);", "public int getCount() {\n return 3;\n }", "Optional<Integer> getPageCount();", "void printNumberOfFilteredItems();", "private static void displayBucketCount3() throws IOException {\n\t\tString str=\"\";\n\t\t\n\t\t//bucket count\n\t\tfor(int i:bucketCountT.keySet()){\n\t\t\tstr+=String.valueOf(i)+ \" \" + String.valueOf(bucketCountT.get(i))+\"\\n\";\n\t\t}\n\t\tstr+=\"\\n\";\n\t\twriter3.write(str);\n\t\t\n\t}", "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "boolean hasPagesize();", "Long pageCount(Long pageSize, Long...params);", "private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }", "List<ProductView> getAllByPage(int pageNumber, int itemsPerPage) throws ProductException;", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "public void setPageItemCount(Integer pageItemCount) {\n this.pageItemCount = pageItemCount;\n }", "public static int pageCount(int n, int p) {\n // Write your code here\n int pagesToCover = 0;\n int midPage = n/2;\n\n if(p>midPage){\n if(n%2==0){\n pagesToCover = n-p+1;\n }else{\n pagesToCover = n-p;\n }\n }else{\n pagesToCover = p;\n }\n int pagesToTurn = 0;\n for(int i=2, j=1; i<=pagesToCover; i=i+2, j++){\n pagesToTurn = j;\n }\n return pagesToTurn;\n }", "@RequestMapping(value=\"/main1\") \n public String main(Model model,Integer start){\n int count=allpageService.getCount();\n System.out.println(count);\n //List<page> pages1=allpageService.getOne((start-1)*8, 8);//start是页数\n model.addAttribute(\"count\",count);//总数\n //model.addAttribute(\"pages\",pages);\n // model.addAttribute(\"pages1\",pages1);//一页\n return \"main\"; \n }", "public void setTotalPageCount(Integer totalPageCount) {\n this.totalPageCount = totalPageCount;\n }", "static int pageCount(int n, int p) {\n \tint i=1;\n int count=0,mid=0,t=0;\n if(n%2==0)\n {\n t=n;\n\n }\n else\n {\n t=n-1;\n\n }\n \tmid=n/2;\n\n if(n==p)\n return 0;\n if(mid>=p){\n while(i<p){\n i=i+2;\n count++;\n }\n }else{\n while(t>p){\n t=t-2;\n count++;\n }\n }\n return count;\n }", "@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}", "public static int getTotalPage() {\n List<WebElement> PAGINATION = findElements(pagination);\n int size = PAGINATION.size() - 1;\n //Get the number of the second-last item which next to the \">\" icon\n WebElement lastPage = findElement(By.xpath(String.format(last_page, size)));\n return Integer.parseInt(lastPage.getText());\n }", "@Test\n public void pageSizeTest() {\n // TODO: test pageSize\n }", "@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn mPagers.size();\r\n\t\t}", "public String getTotalPage() {\r\n return totalPage;\r\n }", "@Override\r\n\tpublic List<ReviewVO> listPage(int page) throws Exception {\n\t\tif(page<=0) {\r\n\t\t\tpage=1;\r\n\t\t}\r\n\t\t\r\n\t\tpage = (page-1)*10; // 한 페이지에 10개의 글 보이기\r\n\t\t\r\n\t\treturn ss.selectList(\"listPage\", page);\r\n\t}", "public int getTotalPageCount() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDFViewerApplication.pagesCount;\");\n } catch (RuntimeException e) {\n e.printStackTrace();\n return 0;\n }\n }", "@Override\n public int doStartTag() throws JspException {\n\n int pageCount = (this.recordCount + this.pageSize - 1) / this.pageSize;\n StringBuilder sb = new StringBuilder();\n\n if (this.recordCount != 0 && this.recordCount > this.pageSize) {\n sb.append(\"<ol class=\\\"paginator\\\">\");\n if (this.pageNo > pageCount) {\n this.pageNo = pageCount;\n }\n if (this.pageNo < 1) {\n this.pageNo = 1;\n }\n HttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\n url = request.getAttribute(\"originalUrl\").toString();\n url += \"?\";\n if (StringUtil.isNotEmpty(request.getQueryString())) {\n String queryString = request.getQueryString();\n url += queryString.replaceAll(\"page=[0-9]*\", \"\");\n if (!url.endsWith(\"&\") && !url.endsWith(\"?\")) {\n url += \"&\";\n }\n }\n\n if (this.pageNo > 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--prev\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo - 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n int start = 1;\n if (this.pageNo > 4) {\n start = this.pageNo - 1;\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=1'>1</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=2'>2</a></li>\");\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n int end = this.pageNo + 1;\n if (end > pageCount) {\n end = pageCount;\n }\n for (int i = start; i <= end; i++) {\n if (this.pageNo == i) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number paginator__item--current\\\"><span class=\\\"paginator__item__text\\\">\" + i + \"</span></li>\");\n } else {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + i + \"'>\").append(i).append(\"</a></li>\");\n }\n }\n if (end < pageCount - 2) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--ellipsis\\\"><span class=\\\"paginator__item__text\\\"><span class=\\\"paginator__item__text__icon\\\"></span></span></li>\");\n }\n if (end < pageCount - 1) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (pageCount - 1) + \"'>\").append((pageCount - 1) + \"</a></li>\");\n }\n if (end < pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--number\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + pageCount + \"'>\").append(pageCount + \"</a></li>\");\n }\n if (this.pageNo != pageCount) {\n sb.append(\"<li class=\\\"paginator__item paginator__item--next\\\"><a class=\\\"paginator__item__text\\\" href='\" + this.url + \"page=\" + (this.pageNo + 1) + \"'><span class=\\\"paginator__item__text__icon\\\"></span></a></li>\");\n }\n }\n if (anchor != null) {\n sb.append(\"<script type='text/javascript'>$('.paginator a').each(function(){var href=$(this).attr('href');$(this).attr('href',href+'\" + anchor + \"')});</script>\");\n }\n sb.append(\"</ol>\");\n try {\n this.pageContext.getOut().println(sb.toString());\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n e.printStackTrace();\n }\n return 0;\n }", "public int getTotalPages() {\r\n\t\treturn page.getTotalPages();\r\n\t}", "public void checkCountforButtonNextandPrevious() {\n Cursor coo = SQLAbsensi.fetchDatabaseAll();\n\n //Page Next\n if (firstDigit != 0) {\n pageCountStartAt = firstDigit * 10;\n int save = coo.getCount() / 10;\n if (save < firstDigit) {\n pageCountEndAt = (firstDigit + 1) * 10;\n } else {\n pageCountEndAt = firstDigit * 10 + (coo.getCount() % 10);\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n } else {\n pageCountStartAt = 0;\n if (coo.getCount() > 10) {\n pageCountEndAt = 10;\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n pageCountEndAt = coo.getCount();\n }\n }\n\n //Page Previous\n if (firstDigit > 0) {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n Refresh();\n\n }", "void showResults() throws IOException{\n\t\tCountService cs = CountService.getInstance();\n\t\t\n\t\tout.write(\"/------------------------Resultado Final------------------------/\" + \"\\n\" );\n\t\tout.write(\"O número total de links pesquisados é:\" + cs.getCount() + \"\\n\");\n\t\tout.write(\"O número de links Quebrados é:\" + cs.getCountQueb() + \"\\n\");\n\t\tout.write(\"O número de links ok é:\" + cs.getCountOk() + \"\\n\");\n\t\tout.write(\"O número de links Proibidos é:\" + cs.getCountProibido()+ \"\\n\");\n\t\tout.write(\"O número de métodos impedidos é:\" + cs.getCountImpedido()+ \"\\n\");\n\t\tout.write(\"O número de redirecionados é:\" + cs.getCountRedirecionado()+ \"\\n\");\n\t\tout.write(\"Erro Server:\" + cs.getCountErroServer()+ \"\\n\");\n\t\tout.write(\"Unknown Host Name:\" + cs.getCountUnknownHost()+ \"\\n\");\n\t\tout.write(\"Bad Gatway:\" + cs.getCount502()+ \"\\n\");\n\t\tout.write(\"O número resposta diferente de 4.. e 200 é:\" + cs.getCountPesq() + \"\\n\");\n\t\tout.write(\"/------------------------------------------------------------------/\" + \"\\n\");\n\t\tString dateTime = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").format(new Date()); \n\t\tout.write(\"Fim dos testes: \" + dateTime + \"\\n\");\n\t\tSystem.out.println(\"Teste finalizado\");\n\t}", "public int getNumPages()\n {\n return numPages;\n }", "PagingLink(int pageNumber) {\n setText(String.valueOf(pageNumber));\n }", "public String getPage(String targetUrl, String q, Long totalCnt, int rows, int start, int page) {\n String paramStr = \"\";\n String htmlPage = \"\";\n String pageUrl = \"\";\n\n int targetPageValue;\n int pagingMin;\n int pageSeed;\n int pageBlock = page;\n int countInPage = page;\n int loopCnt = 0;\n int currentPage = 0;\n\n try {\n double totalPage;\n switch (rows) {\n case 8:\n currentPage = start / 8;\n break;\n case 16:\n currentPage = start / 16;\n break;\n case 24:\n currentPage = start / 24;\n break;\n\n case 10:\n currentPage = start / 10;\n break;\n case 20:\n currentPage = start / 20;\n break;\n case 50:\n currentPage = start / 50;\n break;\n case 100:\n currentPage = start / 100;\n break;\n default:\n currentPage = start / rows;\n break;\n }\n\n pagingMin = ((currentPage - 1) / countInPage) * countInPage;\n if (currentPage > 5) {\n pageSeed = currentPage - 4;\n } else {\n pageSeed = pagingMin;\n }\n double flTotalPage = Float.parseFloat(totalCnt.toString()) / rows;\n\n totalPage = Math.ceil(flTotalPage);\n\n paramStr = \"q=\" + q;\n\n\n\n\n if (currentPage != 0) { //이전\n pageUrl = targetUrl + \"?\" + paramStr + \"&start=\" + (start - rows);\n htmlPage += \"<li><a href=\\\"\" + pageUrl + \"\\\"></a></li>\\n\";\n }\n\n while (loopCnt < pageBlock && pageSeed < totalPage) {\n if (pageSeed == currentPage) {\n targetPageValue = pageSeed;\n htmlPage += \"<li class=\\\"active\\\"><a href=\\\"javascript:;\\\">\" + (targetPageValue + 1) + \"</a></li>\\n\";\n } else {\n targetPageValue = pageSeed;\n pageUrl = targetUrl + \"?\" + paramStr + \"&start=\" + targetPageValue * rows;\n htmlPage += \"<li><a href=\\\"\" + pageUrl + \"\\\">\" + (targetPageValue + 1) + \"</a></li>\\n\";\n }\n pageSeed++;\n loopCnt++;\n }\n\n if (currentPage < totalPage - 1) { //다음\n pageUrl = targetUrl + \"?\" + paramStr + \"&start=\" + (start + rows);\n htmlPage += \"<li><a href=\\\"\" + pageUrl + \"\\\"></a></li>\";\n }\n\n return htmlPage;\n } catch (Exception e) {\n System.out.println(\"getPage : \" + e.toString());\n return \"\";\n }\n }", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "public int getNumberOfPages(HttpServletRequest request,\n SubmissionInfo subInfo) throws ServletException\n {\n // always just one page of initial questions\n return 1;\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprgDlg.setMax(nTotalPage);\r\n\t\t\t\t\t\t\tprgDlg.setProgress(nPage);\r\n\t\t\t\t\t\t}", "@Override\n public void onPageChanged(int page, int pageCount) {\n }", "public int getPagesDisplayed() {\n return getTableModelSource().getTableModel().getPageCount();\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 3;\n\t\t}", "public static void main(String[] args) {\n\t\tint k =1;\n\t\twhile(k < 20){\n\t\t\tif ((k % 3)==1){\n\t\t\t\tSystem.out.print(k + \" \");\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\t\tpublic void onLoadMore(int page, int totalItemsCount) {\n\t\t\tpresenter.loadRecordsPage(page);\n\t\t}" ]
[ "0.7318532", "0.66357523", "0.65496594", "0.6074719", "0.6053452", "0.6024778", "0.59702045", "0.5968394", "0.59407145", "0.59407145", "0.59407145", "0.59407145", "0.5938616", "0.59303164", "0.5914587", "0.5895829", "0.5858472", "0.58557075", "0.58179796", "0.5745283", "0.57390004", "0.5710357", "0.5708484", "0.56869525", "0.5682967", "0.5682967", "0.5682967", "0.56799984", "0.56784123", "0.5653454", "0.5653454", "0.5632407", "0.56246775", "0.56187314", "0.5585245", "0.55770224", "0.5570124", "0.5552637", "0.5552637", "0.55474955", "0.553246", "0.5524593", "0.5521382", "0.5505482", "0.5494742", "0.5486211", "0.5479962", "0.54796374", "0.546492", "0.54630417", "0.5417493", "0.5405376", "0.53938454", "0.5391244", "0.5387889", "0.53821146", "0.53554964", "0.5317902", "0.53082865", "0.53002334", "0.5297614", "0.52635336", "0.52619", "0.5258867", "0.5257348", "0.5255805", "0.52501726", "0.52496064", "0.52444845", "0.524434", "0.52436376", "0.5240929", "0.5229373", "0.5215831", "0.52150553", "0.5210661", "0.5210281", "0.5206003", "0.52025247", "0.5198076", "0.5197664", "0.51949114", "0.51946896", "0.51936597", "0.5190856", "0.51899004", "0.5189329", "0.5183741", "0.51823395", "0.5180771", "0.5175356", "0.5168826", "0.51638377", "0.51508284", "0.5148759", "0.51476455", "0.51473665", "0.5138557", "0.5126422", "0.512246", "0.5115218" ]
0.0
-1
Returns a new instance of this fragment for the given section number.
public static PlaceholderFragment newInstance(int sectionNumber) { PlaceholderFragment fragment = new PlaceholderFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MainFragment newInstance(int sectionNumber) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static CurrentInfoFragment newInstance(int sectionNumber) {\n CurrentInfoFragment fragment = new CurrentInfoFragment();\n Bundle args = new Bundle();\n args.putInt(ZooGate.ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance(int sectionNumber) {\n Fragment fragment=null;\n switch (sectionNumber){\n case 1:fragment=new ContactosFragment();\n break;\n case 2:fragment=new SeriesFragment();\n break;\n case 3:fragment=new FavoritosFragment();\n break;\n }\n return fragment;\n }", "public static LibraryFragment newInstance(int sectionNumber) {\n LibraryFragment fragment = new LibraryFragment();\n Bundle args = new Bundle();\n return fragment;\n }", "public static ItemFragment newInstance(int section_number){\n ItemFragment fragment = new ItemFragment();\n Bundle args = new Bundle();\n args.putInt(\"SECTION_NUMBER\",section_number);\n fragment.setArguments(args);\n return fragment;\n }", "public static HistoryFragment newInstance(int sectionNumber) {\n\n //System.out.println(\"INFOs:: new_instance HISTORY...\");\n HistoryFragment fragment = new HistoryFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n\n return fragment;\n }", "public static MatchmakingFragment newInstance(int sectionNumber) {\n MatchmakingFragment fragment = new MatchmakingFragment();\n fragment.currentMatchCount = 0;\n fragment.getUser_type();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n\r\n PlaceholderFragment fragment = new PlaceholderFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n PlaceholderFragment fragment = new PlaceholderFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static BannerFragment newInstance(int sectionNumber) {\r\n BannerFragment fragment = new BannerFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "public static PlaceholderFragment newInstance(int sectionNumber) {\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t\tfragment.setArguments(args);\n\t\t\treturn fragment;\n\t\t}", "public static FragmentNearMe newInstance(int sectionNumber) {\n\t\tFragmentNearMe fragment = new FragmentNearMe();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static MapFragment newInstance(int sectionNumber) {\n MapFragment fragment = new MapFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\r\n\t\t\tBundle args = new Bundle();\r\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\t\tfragment.setArguments(args);\r\n\t\t\treturn fragment;\r\n\t\t}", "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n\t\t\tPlaceholderFragment fragment = new PlaceholderFragment();\r\n\t\t\tBundle args = new Bundle();\r\n\t\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n\t\t\tfragment.setArguments(args);\r\n\t\t\treturn fragment;\r\n\t\t}", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyAccountFragment newInstance(int sectionNumber) {\n MyAccountFragment fragment = new MyAccountFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static FindItemFragment newInstance(int sectionNumber) {\n FindItemFragment fragment = new FindItemFragment();\n Bundle args = new Bundle();\n /*args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);*/\n\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static DishesFragment newInstance(int sectionNumber) {\n DishesFragment fragment = new DishesFragment();\n Bundle args = new Bundle();\n args.putInt(PAGE, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber, MainActivity activity) {\n PlaceholderFragment fragment = new PlaceholderFragment(activity);\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static ArticlesFragment newInstance(int sectionNumber) {\n \tArticlesFragment fragment = new ArticlesFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static NewsfeedFragment newInstance(int sectionNumber) {\n NewsfeedFragment fragment = new NewsfeedFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\r\n PlaceholderFragment fragment = new PlaceholderFragment();\r\n Bundle args = new Bundle();\r\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\r\n args.putString(\"alb_post\",inte.getStringExtra(\"detailJSON\"));\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static Favourite newInstance(int sectionNumber) {\n Favourite fragment = new Favourite();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static CalendarViewFragment newInstance(int sectionNumber) {\n CalendarViewFragment fragment = new CalendarViewFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment;\n if (sectionNumber == 1) {\n fragment = new WaitListFragment();\n }\n else {\n fragment = new PlaceholderFragment();\n }\n\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static ShoppingListView newInstance(int sectionNumber) {\n ShoppingListView fragment = new ShoppingListView();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static TaskHistoryFragment newInstance(int sectionNumber) {\n TaskHistoryFragment fragment = new TaskHistoryFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static SalaryFragment newInstance(int sectionNumber) {\n SalaryFragment fragment = new SalaryFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static PlaceholderFragment newInstance(int sectionNumber) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(USER_NAME, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static FragmentClientTourPage7 newInstance(int sectionNumber) {\n\t\tFragmentClientTourPage7 fragment = new FragmentClientTourPage7();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static LoginFragment newInstance(int section_number) {\n LoginFragment fragment = new LoginFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, section_number);\n fragment.setArguments(args);\n return fragment;\n }", "public static CharacterCreationFragment newInstance(int sectionNumber, Bundle args) {\n CharacterCreationFragment fragment = new CharacterCreationFragment();\n// Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\t// We need to set arguments of this fragment. That's why I've added Bundle object as an\n\t\t// argument.\n fragment.setArguments(args);\n return fragment;\n }", "public static ShoppingListSettings newInstance(int sectionNumber) {\n ShoppingListSettings fragment = new ShoppingListSettings();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static AuthorizeFragment newInstance(int sectionNumber) {\n\t\tAuthorizeFragment fragment = new AuthorizeFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\n\t}", "public static EndGameTabFragment newInstance(int sectionNumber) {\n EndGameTabFragment fragment = new EndGameTabFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static ProjectScreen newInstance(int sectionNumber) {\n ProjectScreen fragment = new ProjectScreen();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static BandLocationDistanceFragment newInstance(int sectionNumber) {\n BandLocationDistanceFragment fragment = new BandLocationDistanceFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public static HomeFragment newInstance(int sectionNumber, JSONObject userInfoJson) {\n HomeFragment fragment = new HomeFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n fragment.setUserInfoJson(userInfoJson);\n return fragment;\n }", "public static SubmitPromptFragment newInstance(int sectionNumber) {\n SubmitPromptFragment fragment = new SubmitPromptFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static HiPingFragment newInstance(int index) {\n HiPingFragment fragment = new HiPingFragment();\n Bundle bundle = new Bundle();\n bundle.putInt(ARG_SECTION_NUMBER, index);\n fragment.setArguments(bundle);\n return fragment;\n }", "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment = new SectionFragment(); \n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n\t\t\tfragment.setArguments(args);\n\t\t\t\n\t\t\t\n\t\t\treturn fragment;\n\t\t\t\n\t\t}", "public ScanFragment(int sectionNumber) {\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n scanListener = new MyButtonScanListener(this);\n searchListener = new MyButtonSearchListener();\n setArguments(args);\n }", "public Section newSection() {\n\t\tSection page = new Section();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\treturn page;\r\n\t}", "public static EventsOrStatesFragment newInstance(int sectionNumber, boolean showEvents) {\n EventsOrStatesFragment fragment = new EventsOrStatesFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putBoolean(ARG_SHOW_EVENTS, showEvents);\n fragment.setArguments(args);\n return fragment;\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "void create(Section section);", "public static PlaceholderFragment newInstance(int sectionNumber, String title_green, String title_black, String message, int imageId) {\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n args.putString(ARG_SECTION_TITLE_GREEN, title_green);\n args.putString(ARG_SECTION_TITLE_BLACK, title_black);\n args.putString(ARG_SECTION_MESSAGE, message);\n args.putInt(ARG_SECTION_IMAGE, imageId);\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment Home_Tab_start(String Id, String section) {\n BodyTab_Sub fragment = new BodyTab_Sub();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, Id);\n args.putString(ARG_PARAM2, section);\n fragment.setArguments(args);\n return fragment;\n }", "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "Section createSection();", "public static SummaryFragment newInstance() {\n SummaryFragment fragment = new SummaryFragment();\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n Bundle args = new Bundle();\n AttVFragment fragment = new AttVFragment();\n args.putInt(AttVFragment.ARG_SECTION_NUMBER, position);\n fragment.setArguments(args);\n return fragment;\n }", "public final SectionsBottomFragment invoke() {\n return new SectionsBottomFragment();\n }", "public static SelectionFragment newInstance() {\n SelectionFragment fragment = new SelectionFragment();\n return fragment;\n }", "@Override\n public Fragment getItem(int position) {\n if (position == 0) {\n return new SectionFragment();\n } else if (position == 1) {\n return new SectionFragment();\n }\n else if (position == 2) {\n return new SectionFragment();\n }\n else if (position == 3) {\n return new SectionFragment();\n }\n\n return null;\n }", "public static PurchaseFragment newInstance(int position) {\n PurchaseFragment f = new PurchaseFragment();\n // Supply index input as an argument.\n Bundle args = new Bundle();\n f.setArguments(args);\n return f;\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static Fragment3 newInstance() {\n Fragment3 fragment = new Fragment3();\n return fragment;\n }", "public static BitFragment newInstance() {\n BitFragment fragment = new BitFragment();\n return fragment;\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static CategoryFragment newInstance() {\n CategoryFragment categoryFragment = new CategoryFragment();\n return categoryFragment;\n\n }", "public static NewGameFragment newInstance() {\n return new NewGameFragment();\n }", "public static DetailsFragment newInstance(@IntRange(from = 1, to = 3) int kittenNumber) {\n Bundle args = new Bundle();\n args.putInt(ARG_KITTEN_NUMBER, kittenNumber);\n\n DetailsFragment fragment = new DetailsFragment();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static MyFragment getInstance(int position) {\n\n //Construct the fragment\n MyFragment myFragment = new MyFragment();\n\n //New bundle instance\n Bundle args = new Bundle();\n\n //Passing in the Integer position of the fragment into the argument\n args.putInt(\"position\", position);\n\n //Setting the argument of the fragment to be the position\n myFragment.setArguments(args);\n\n //Return the fragment\n return myFragment;\n }", "public static FootprintFragment newInstance() {\n FootprintFragment fragment = new FootprintFragment();\n\n return fragment;\n }", "public static AmountFragment newInstance() {\n return new AmountFragment();\n }", "public static CVFragment newInstance(int i) {\n CVFragment myFragment = new CVFragment();\n\n Bundle args = new Bundle();\n args.putInt(\"pageInt\", i);\n myFragment.setArguments(args);\n\n return myFragment;\n }" ]
[ "0.7838247", "0.77156085", "0.7709555", "0.7696671", "0.7683662", "0.7610332", "0.75958824", "0.75668603", "0.7556759", "0.75511664", "0.7513243", "0.7513243", "0.749958", "0.749958", "0.7497363", "0.7477808", "0.74592596", "0.74592596", "0.74491405", "0.7446887", "0.73993045", "0.73877466", "0.73859394", "0.73772246", "0.7371424", "0.7341214", "0.72738254", "0.72538507", "0.71898645", "0.71760345", "0.7166882", "0.7160888", "0.7080211", "0.7060987", "0.70301616", "0.70085424", "0.693593", "0.6923502", "0.68997025", "0.68961287", "0.6889023", "0.6319024", "0.6299834", "0.6176146", "0.61705345", "0.606207", "0.6060967", "0.5983392", "0.5886941", "0.58504933", "0.5823986", "0.5819948", "0.5814158", "0.56869537", "0.56797755", "0.56270236", "0.5596472", "0.5543555", "0.5528985", "0.55271155", "0.5494502", "0.54932475", "0.54930353", "0.54533505", "0.5433067", "0.54276323", "0.5399235", "0.53949183", "0.5391802", "0.5368518", "0.5358875", "0.53553295" ]
0.7568688
35
Subclasses must implement this to return any child content that must be placed in the packet extension
protected abstract String getEventChildXML();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object getContent();", "public WaypointCardBase<?> getContent() {\n return this.content.getValue();\n }", "public AbstractPacketDO getPacket() {\n\t\tString headers = headerTableModel.getHeaders();\n\n\t\t// get the xml content\n\t\tOutputStream os = new ByteArrayOutputStream();\n\t\ttm.prettyPrint(os);\n\t\tString xml = os.toString();\n\t\txml = xml.trim();\n\t\txml += \"\\n\";\n\n\t\tString content = \"\";\n\n\t\tif (headers.contains(\"Content-Length\")) {\n\t\t\tint contentLength = xml.getBytes().length;\n\t\t\theaders = headers.replaceAll(\"Content-Length:\\\\s\\\\d+\",\n\t\t\t\t\tString.format(\"Content-Length: %d\", contentLength));\n\t\t\tcontent = headers + \"\\r\\n\" + xml;\n\t\t} else {\n\t\t\tcontent = headers + \"\\r\\n\";\n\t\t}\n\n\t\tif (packet != null) {\n\t\t\tpacket.setData(content.getBytes());\n\t\t}\n\n\t\treturn packet;\n\t}", "@Override\n\tpublic\n\tObject getContent() {\n\t\treturn this.content;\n\t}", "public Object getContent() {\n return null;\n }", "Serializable getContent();", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public ZFrame getContent ()\n {\n return content;\n }", "public ZFrame getContent ()\n {\n return content;\n }", "public T getContent() {\n return content;\n }", "public Container getContent() {\n return this;\n }", "@Override\n public C get() {\n return content;\n }", "public T getContent();", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "@Override\n protected Serializable getContentObject() {\n return result;\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "@Override\n public String toString() {\n return this.content.toString();\n }", "public abstract Object getVanillaPacket();", "public ArrayList<PiptDataElement> getChildren()\n {\n\treturn children;\n }", "public Content getContent() {\n return this.content;\n }", "public String getContent() { return this.content; }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public Mass getSodiumContent() throws ClassCastException;", "public Game getContent() {\n return content;\n }", "public abstract String getContentString();", "public java.lang.CharSequence getContent() {\n return Content;\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n return instance.getContentBytes();\n }", "com.google.protobuf.ByteString getContent();", "com.google.protobuf.ByteString getContent();", "public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }", "public String getContent() {\n return this.content;\n }", "@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return children.get(headers.get(groupPosition)).get(childPosition);\n }", "public java.lang.CharSequence getContent() {\n return Content;\n }", "public Object getContent() {\n if (this.messageContentObject != null) return messageContentObject;\n else if (this.messageContentBytes != null)\n return this.messageContentBytes;\n else if (this.messageContent != null) return this.messageContent;\n else return null;\n }", "public abstract ByteBuffer getPacket();", "com.google.protobuf.Any getContent();", "public String getContent();", "public Mass getCholesterolContent() throws ClassCastException;", "public abstract String getContentDescription();", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "com.google.protobuf.ByteString getContentBytes();", "abstract String getContent();", "public Mass getFatContent() throws ClassCastException;", "abstract public Content createContent();", "public final native String getContent() /*-{\n return this.getContent();\n }-*/;", "public Control getContent() {\n // checkWidget();\n return content;\n }", "@Override\n public String get_content() {\n return _adContent;\n }", "@Override\n public Collection<WrapperAwareElement> getChildren()\n {\n return null;\n }", "public Mass getCarbohydrateContent() throws ClassCastException;", "public List getChildren(){\n List result = new ArrayList();\n Iterator it = getSpecialisation().iterator();\n while(it.hasNext()){\n Generalization g = (Generalization)it.next(); \n result.add(g.getChild());\n //System.out.println(\" \"+getName()+\" Parent:\" +g.getParent().getName());\n }\n return result;\n }", "public String getContent() {\n return this.m_content;\n }", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\r\n return content;\r\n }", "protected abstract List<T> getChildren();", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\r\n\t\treturn this.content;\r\n\t}", "Package getSubp();", "protected abstract Content newContent();", "public abstract String getChildTitle();", "public byte[] getContent() {\r\n return content;\r\n }", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "public byte[] getContent();", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "public List<MagicPattern> getChildren() {\n\t\treturn children;\n\t}", "byte[] getContent();", "public java.lang.String getContent() {\n return content;\n }", "public String getContent() {\n\t return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }" ]
[ "0.64689136", "0.6327032", "0.6317497", "0.61698246", "0.6071433", "0.59346193", "0.5837919", "0.58063084", "0.58063084", "0.58029556", "0.5709292", "0.5705112", "0.5690185", "0.56751966", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.5639407", "0.56355065", "0.5631643", "0.5631643", "0.561954", "0.56192946", "0.5608313", "0.55970967", "0.5596452", "0.55833024", "0.55833024", "0.5565817", "0.55560076", "0.55457073", "0.5545699", "0.55255806", "0.55255806", "0.5515437", "0.5515437", "0.5508421", "0.5508421", "0.5504947", "0.5495312", "0.54914975", "0.5488783", "0.54883", "0.5487805", "0.54836893", "0.54768604", "0.54742414", "0.54700524", "0.5448282", "0.54441786", "0.54290986", "0.54283184", "0.5424802", "0.5415343", "0.5413591", "0.54121315", "0.54101974", "0.54077345", "0.540241", "0.5397077", "0.539512", "0.539512", "0.5393256", "0.53824776", "0.53824776", "0.53824776", "0.53824776", "0.5367804", "0.5366226", "0.53654784", "0.536388", "0.53625447", "0.5359203", "0.53586286", "0.53532916", "0.53532916", "0.5351943", "0.5351943", "0.53501767", "0.53501767", "0.53497815", "0.5349524", "0.5347411", "0.53321177", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747", "0.53315747" ]
0.5334786
85
Vector v = new Vector();
public static void main(String[] args) { packages.package1.Vector v = new packages.package1.Vector(); //List l = new List(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector() {\n construct();\n }", "public VOIVector() {\r\n super();\r\n }", "public Vector()\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "@Model\r\n\tpublic Vector() {\r\n\t\tthis(50,50);\r\n\t}", "public VectorIterator(Vector<E> v)\n\t{\n\t\tvector = v;\n\t\tcurr =0;\n\t}", "private Vector(double x, double y){\n this.x = x;\n this.y = y;\n }", "public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}", "public Heap(){\n data = new Vector();\n }", "public Vector(double x, double y){\n this.x=x;\n this.y=y;\n }", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public SparseVector() {\n }", "public Vector3 () {\n }", "public VectorOutput () { }", "public ColladaFloatVector() {\n super();\n }", "Vector getZeroVector();", "public static void main(String[] args) {\n\t\tVector V = new Vector();\n\t\tSystem.out.println(V.capacity());\n\t\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tV.addElement(i);\n\t\t}\n\t\tSystem.out.println(V.capacity());\n\t\tV.addElement(\"khushbu\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Rameshvar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t\tV.addElement(\"Bandewar\");\n\t\tSystem.out.println(V.capacity());\n\t\tSystem.out.println(V);\n\t}", "public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}", "public ThreeVector() { \r\n\t\t//returns null for no arguments\r\n\t}", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public VectorPanel(BaseDataInstanceDoubleVector vector) {\n Vector = vector;\n initComponents();\n fillTable();\n }", "public Heap() {\n heap = new Vector<E>();\n }", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "public VectorImage() {\n\t}", "public Heap(Vector v){\n int i;\n data = new Vector(v.size()); //we know ultimate size\n for (i = 0; i < v.size(); i++){\n //add elements to heap\n add((Bloque)v.get(i));\n }\n }", "public static void main(String[] args) {\n net.mindview.simple.Vector vector = new net.mindview.simple.Vector();\n java.util.Vector vector1 = new java.util.Vector<>();\n }", "public Vector(Point point) {\n\t\tthis(point.x, point.y);\n\t}", "public HashedVector() {\n\t\tthis(INITIAL_CAPACITY);\n\t}", "public Vector2f ()\n {\n }", "@Test\n void testNormalize() {\n\n Vector vCopy = new Vector(v.getHead());\n Vector vCopyNormalize = vCopy.normalize();\n assertEquals(vCopy, vCopyNormalize, \"ERROR: normalize() function creates a new vector\");\n\n\n }", "VectorType11 getVector();", "public Vector2i() {\n }", "public void setEqualTo(Vector v){ components = v.getVectorAsArray(); }", "@Test\n\tpublic void testConstructorForVectorInput()\n\t{\n\t\tfinal Object rawData = new Object();\n\t\tfinal String id = \"TestId\";\n\t\tVector<Variable> vars = new Vector<>();\n\t\tfinal Variable var = new Variable();\n\t\tvars.addElement(var);\n\t\tRawDataEvent testObj = new RawDataEvent(rawData, id, vars);\n\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(var, testObj.getVarObjects().get(0));\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\n\t\tvars = new Vector<>();\n\t\ttestObj = new RawDataEvent(rawData, id, vars);\n\t\tassertEquals(vars, testObj.getVarObjects());\n\t\tassertEquals(id, testObj.getIdentifier());\n\t\tassertEquals(rawData, testObj.getRawDataSource());\n\t}", "public CardStack()\n {\n cards = new Vector<Card>();\n }", "public Vector4d() {\n\t\t// intentionally left empty\n\t}", "public Vector(float[] axis){ this.axis = axis;}", "public GameCollection() {\n\t\tcollection = new Vector();\n\t}", "public Vector330Class(){\n this.x = 0;\n this.y = 0;\n }", "public Vector(int initialCapacity) {\n construct(initialCapacity);\n }", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "public abstract ImmutableVector getImmutableVector();", "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "public void SetVector(int[] v){ this.vector=v;}", "public void setVector(nvo_coords.CoordsType vector) {\n this.vector = vector;\n }", "public MAT(Vector v) {\n super(dimension(v), dimension(v));\n final int n = this.nRows();\n\n int k = 1;\n for (int i = 1; i <= n; ++i) {\n for (int j = i; j <= n; ++j) {\n double vk = v.get(k++);\n if (j != i) {\n vk /= Constant.ROOT_2;\n }\n\n set(i, j, vk);\n set(j, i, vk);\n }\n }\n }", "public IntVector () {\n head = 0;\n tail = null;\n }", "@Model\r\n\tpublic Vector(double xComp, double yComp) {\r\n\t\t\r\n\t\t\tthis.xComp = xComp;\r\n\t\t\r\n\t\r\n\t\t\tthis.yComp = yComp;\r\n\r\n\t}", "public Vector getVector()\n\t{\n\t\tVector v=new Vector();\n\t\tv.add(getDate());\n\t\tv.add(getCaloriesConsumed());\n\t\tv.add(getCaloriesBurned());\n\t\tv.add(getCaloriesDifference());\n\t\treturn v;\n\t}", "public OriginalSparseVector () {}", "public static void testVecteur(){\n\t\tVecteur u = new Vecteur(1,0);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\tu = u.rotation(Math.PI/2);\n\t\tSystem.out.println(u);\n\t\t\n\t}", "public MockPersistenceProvider()\n{\n\tobjects = new Vector();\n}", "public Vector3D() {\n zero();\n }", "public Vector Display() \n\t{\n\t\treturn v;\n\t}", "public Vector(Vector other) {\n\n head =new Point3D(other.head);\n }", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public Vector(Point3D p) {\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head = new Point3D(p);\n }", "@Test\n public void testGetMatrixFromVector() {\n System.out.println(\"getMatrixFromVector\");\n Vector instance = null;\n Matrix expResult = null;\n Matrix result = instance.getMatrixFromVector();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static Instance createElement(Object[] vector) {\n List<Value> values = new Vector<Value>();\n for (Object value : vector) {\n values.add(createValue(value));\n }\n return new Instance(values);\n }", "public VectorHeapb()\n\t// post: constructs a new priority queue\n\t{\n\t\tdata = new Vector<E>();\n\t}", "public WB_Vector nextVector();", "public interface Vector<T> {\n\t/**\n\t * Return the length of the vector.\n\t * @return The number of elemets in the vector.\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Replace an element at specified index.\n\t * @param aIndex The index of the vector to replace.\n\t * @param aValue The replacement value.\n\t * @return A vector after the value replaced.\n\t */\n\tpublic Vector<T> set(int aIndex, T aValue);\n\t\n\t/**\n\t * Return an element at specified index.\n\t * @param aIndex The index of the vector to retrieve.\n\t * @return The element at the index.\n\t */\n\tpublic T get(int aIndex);\n\n\t/**\n\t * Add a scalar to this vector.\n\t * @param aScalar The scalar value to add.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> add(T aScalar);\n\n\t/**\n\t * Subtract a scalar from this vector.\n\t * @param aScalar The scalar value to subtract.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> subtract(T aScalar);\n\n\t/**\n\t * Multiply a scalar by this vector.\n\t * @param aScalar The scalar value to multiply by.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> multiply(T aScalar);\n\n\t/**\n\t * Divide a scalar by this vector.\n\t * @param aScalar The scalar value to divide by.\n\t * @return The result of the operation.\n\t */\n\tpublic Vector<T> divide(T aScalar);\n\n\t/**\n\t * Add two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> add(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Subtract two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> subtract(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Multiply two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> multiply(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Add Divide vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> divide(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the dot product of two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic T dotProduct(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the cross product of two vectors.\n\t * @param aVector The other vector.\n\t * @return The result of the operation.\n\t * @throws VectorSizeException Thrown when the vector lengths do not match.\n\t */\n\tpublic Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;\n\n\t/**\n\t * Calculate the minimum value in the vector.\n\t * @return The minimum value.\n\t */\n\tpublic T min();\n\n\t/**\n\t * Calculate the maximum value in the vector.\n\t * @return The maximum value.\n\t */\n\tpublic T max();\n\n\t/**\n\t * Calculate the sum of all elements in the vector.\n\t * @return The sum of elements.\n\t */\n\tpublic T sum();\n\n\t/**\n\t * Calculate the mean value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T mean();\n\n\t/**\n\t * Calculate the median value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T median();\n\n\t/**\n\t * Calculate the mode value of all elements in the vector.\n\t * @return The mean of elements.\n\t */\n\tpublic T mode();\n\n\t/**\n\t * Calculate the square magnitude of the vector.\n\t * @return The square magnitude.\n\t */\n\tpublic T magnitudeSquared();\n\n\t/**\n\t * Calculate the magnitude of the vector.\n\t * @return The magnitude.\n\t */\n\tpublic T magnitude();\n\n\t/**\n\t * Normalise this vector.\n\t * @return The unit vector.\n\t */\n\tpublic Vector<T> normalise();\n\n\t/**\n\t * Normalise this vector.\n\t * @return The unit vector.\n\t */\n\tpublic T[] toArray();\n\t\n\t/**\n\t * Construct a new vector using elements contained in this one.\n\t * @param aIndices The indices of this vector to duplicate.\n\t * @return The resulting vector.\n\t */\n\tpublic Vector<T> swizzle(int[] aIndices);\n\t\n\t/**\n\t * Construct a new vector using elements contained in this one.\n\t * @param aIndices The indices of this vector to duplicate.\n\t * @return The resulting vector.\n\t */\n\tpublic Vector<T> swizzle(Vector<Integer> aIndices);\n}", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "public Vec3(){\n\t\tthis(0,0,0);\n\t}", "public VectorRank(SimpleVectorGraph graph){\n this.graph = graph;\n\n }", "public static Vector add(Vector v1, Vector v2) {\r\n Vector w = new Vector(v1);\r\n w.add(v2);\r\n return w;\r\n }", "public LorentzVector(LorentzVector vect){\n\t\tthis.vector = new Vector3(vect.px(), vect.py(), vect.pz());\n\t\tthis.energy = vect.e();\n\t}", "public Vector(double x, double y, double z) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { 1 }\n });\n }", "public CvSVM()\r\n {\r\n\r\n super( CvSVM_0() );\r\n\r\n return;\r\n }", "public Vertex(){\n\n }", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "int addVertex(Vector position);", "public Definition() {\n\tproductions = new Vector<Vector<String>>();\n }", "public VectorGridSlice() {\n\n }", "public Vector(int c, O o)\r\n {\r\n // initialise instance variables\r\n first = null;\r\n last = null;\r\n count = 0;\r\n for (int i=0;i<=c-1;i++) pushBack(o);\r\n }", "public Coordinates unitVector(Coordinates vector);", "public Vector2 getVectorOne(){\n return vecOne;\n }", "@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }", "public Box(Vector<?> Box) {\n\t\tsetX1((Double) Box.toArray()[0]);\n\t\tsetY1((Double) Box.toArray()[1]);\n\t\tsetX2((Double) Box.toArray()[2]);\n\t\tsetY2((Double) Box.toArray()[3]);\n\t}", "public ArcReversalSV() {\n\n results = new Vector();\n resultsForPolicies = new Vector();\n crono = new Crono();\n statistics = new PropagationStatisticsID();\n }", "public Vector(double x, double y, double z, double w) {\n super(new double[][] {\n { x },\n { y },\n { z },\n { w }\n });\n }", "public Vector(double x, double y, double z) {\n this(new Point3D(x, y, z));\n }", "private static Vector emptyVector (int size)\n\t{\n\t\tVector v = new Vector ();\n\t\tfor (int i=0; i <= size; i++)\n\t\t{\n\t\t\tv.add (i, \"\");\n\t\t}\n\t\treturn v;\n\n\t}", "private Vector(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tmagnitude = Math.sqrt(x * x + y * y);\n\t\tangle = Math.toDegrees(Math.atan2(y, x));\n\t}", "public VFunction2D() {\n \n \n }", "public TV() {\r\n\t}", "public Vector(double x1, double y1, double z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public static void generator(){\n int vector[]= new int[5];\r\n vector[10]=20;\r\n }", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public PredicateVector(int id) {\n super();\n flagged = false;\n vectorId = id;\n }", "@SuppressWarnings(\"unused\")\n\tprivate VNode()\n {\n \tvrsContext=null;\n }", "public Vector(Coordinate x1, Coordinate y1, Coordinate z1) {\n Point3D p = new Point3D(x1, y1, z1);\n if (p.equals(Point3D.ZERO))\n throw new IllegalArgumentException(\"no meaning to the vector\");\n head=new Point3D(p);\n }", "public BaseObservable() {\n obs = new Vector<>();\n }", "public VectorA add(VectorA v)\n {\n return new VectorA(this.x+v.x, this.y+v.y);\n }", "public VendingMachineTest()\r\n {\r\n // initialise instance variables\r\n x = 0;\r\n }", "public double getV() {\r\n\t\treturn v;\t\r\n\t\t}", "public VectorLinearList()\n {// use default capacity of 10\n this(10);\n }", "public Vector(double deltaX, double deltaY) {\n\t\tsuper();\n\t\tthis.deltaX = deltaX;\n\t\tthis.deltaY = deltaY;\n\t}", "public Vector add(Vector v, double dt){\n return new Vector(this.getX()+v.getX()*dt, this.getY()+v.getY()*dt, this.getZ()+v.getZ()*dt);\n }", "public Vector(Coordinate x, Coordinate y, Coordinate z) {\n this(new Point3D(x, y, z));\n }" ]
[ "0.8023653", "0.7985514", "0.7781038", "0.7280475", "0.7153096", "0.7148653", "0.71210337", "0.69926584", "0.69921726", "0.6919418", "0.68908405", "0.6842469", "0.6808584", "0.6796263", "0.67712665", "0.67469597", "0.6745924", "0.67347944", "0.6674928", "0.66290146", "0.66202164", "0.6578073", "0.656898", "0.6561543", "0.653203", "0.6521734", "0.65203655", "0.65197664", "0.6491615", "0.64804095", "0.64492273", "0.6440766", "0.6440299", "0.642154", "0.639704", "0.6396497", "0.6387725", "0.6368153", "0.6366016", "0.63615817", "0.63457537", "0.63371146", "0.6326388", "0.6296725", "0.62561744", "0.62554985", "0.6250012", "0.62469107", "0.6244901", "0.6243316", "0.6228922", "0.6218508", "0.6218266", "0.62177646", "0.6214507", "0.6187571", "0.6176209", "0.61740184", "0.617008", "0.6159926", "0.61592233", "0.61445135", "0.6141888", "0.6141398", "0.6138561", "0.6119356", "0.61183155", "0.6088352", "0.6081552", "0.6053484", "0.60297036", "0.601916", "0.6008986", "0.6006105", "0.59835935", "0.5981414", "0.59798056", "0.5974157", "0.59674335", "0.5964246", "0.5963936", "0.5960709", "0.59582925", "0.5947226", "0.5944558", "0.59322035", "0.59270954", "0.59264505", "0.59229517", "0.59185505", "0.5915996", "0.59155905", "0.5893051", "0.5890087", "0.5885227", "0.58674103", "0.58632034", "0.5858912", "0.58578146", "0.5853297" ]
0.6493968
28
(nonJavadoc) Title: getMessage Description:
@Override public MessageDao getMessage() { return new BuyMessageImpl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "protected abstract String getMessage();", "String getMessage();", "String getMessage();", "String getMessage();", "@Override\n public String getMessage() {\n return MESSAGE;\n }", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n public String getMessage() {\n return message;\n }", "public String getMessageText();", "@Override\n public String getMessage() {\n return message;\n }", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "public abstract String getMessage();", "Object getMessage();", "java.lang.String getTheMessage();", "public String getMessage() { return message; }", "@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}", "public java.lang.String getMessage()\r\n {\r\n return message;\r\n }", "public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }", "public String getMessage()\r\n {\r\n return message;\r\n }", "public String getMessage()\r\n {\r\n return message;\r\n }", "@Accessor(qualifier = \"message\", type = Accessor.Type.GETTER)\n\tpublic String getMessage()\n\t{\n\t\treturn getMessage(null);\n\t}", "@Override\n public String getMessage(){\n \n }", "public String getMessage()\n\t{\n\t\treturn msg;\n\t}", "public String getMessage(){\n return this.message;\n }", "public String getMessage()\r\n\t{\r\n\t\treturn message;\r\n\t}", "public String getMessage() {\n \t\treturn message;\n \t}", "public String getMessage() {\r\n return messageKind.getMessage();\r\n }", "public java.lang.String getMessage() {\n return message;\n }", "String getMessage() {\n return null;\n }", "public String getMessage(){\n return(message);\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage()\n {\n return message;\n }", "public String getMessage()\n {\n return message;\n }", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "public String getMessage() {\r\n return message;\r\n }", "public String getMessage() {\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public final String getMessage() {\n return this.message;\n }", "public String getMessage(){\r\n\t\treturn message;\r\n\t}", "@GET\n\t@Produces(\"text/plain\")\n\tpublic String getMessage() {\n\t\treturn MessageConstants.GET_MESSAGE;\n\t}", "public String getMessage(){\n\t\treturn this.message;\n\t}", "public String getMessage()\n\t{\n\t\treturn message;\n\t}", "public String getMessage() {\n\t\treturn msg;\n\t}", "protected String getMessage(Name name) {\n return message();\n }", "public String getMessage () {\n return message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\n return this.message;\n }", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "public String getMessage(){\n return message;\n }", "public String getMessage() {\n return null;\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn null;\n\t}", "public String getMessage()\n\t{\n\t\treturn this.message;\n\t}", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }", "public String getMessage() {\n return message;\n }" ]
[ "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8809948", "0.8363637", "0.8363637", "0.8363637", "0.8363637", "0.8363637", "0.8363637", "0.8363637", "0.83035576", "0.82223463", "0.82223463", "0.82223463", "0.8200922", "0.81996393", "0.81668067", "0.8149279", "0.81344396", "0.81315327", "0.8092692", "0.8092692", "0.80811375", "0.8076156", "0.807087", "0.8069711", "0.80631936", "0.80189776", "0.79565924", "0.79198295", "0.79198295", "0.79197764", "0.7911135", "0.79100674", "0.7901396", "0.78924096", "0.78731155", "0.7870816", "0.7840671", "0.7835465", "0.78255904", "0.7820881", "0.7820881", "0.7820881", "0.7820881", "0.78162277", "0.78162277", "0.78095126", "0.7800735", "0.7800735", "0.779677", "0.779677", "0.7792638", "0.7791894", "0.7773945", "0.77731276", "0.7767219", "0.7763284", "0.7752533", "0.77518296", "0.7739528", "0.7739528", "0.7739528", "0.7739528", "0.7739528", "0.7739528", "0.7739528", "0.7725806", "0.7715897", "0.77132803", "0.7712595", "0.7708048", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943", "0.76985943" ]
0.0
-1
add the value to the preorder string
public String addValToPreorder(Node root) { preorder = preorder + root.getNodeValue() + " "; return preorder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}", "public String getPreorder(Node root)\n\t{\n\t\tpreOrder(root);\n\t\t//return the string\n\t\treturn preorder;\n\t}", "private void _add(final String value) {\n appended();\n\n buffer.encode(value);\n }", "private Order(String value){\r\n\t\t\tthis.value = value;\r\n\t\t}", "public String insertBefore(String v) {\n\t\t\t\t\tString result=\"\";\n\t\t\t\t\treturn result ;\n\t\t\t\t}", "@SuppressWarnings(\"unchecked\")\n public void insertBefore(String key, Object value) {\n previous();\n iterator.add(new CaseInsensitiveElement<V>(key, (V)value));\n next();\n }", "@Override\n\tpublic void addAtBeginning(String data) {\n\t}", "protected void insertBeginning(T value) {\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.getHead().getPrev()));\r\n\t\tthis.size++;\r\n\t}", "private Serializable buildStringNextValue(String prefix, int nextValue) {\n\t\tSerializable result = null;\n\t\tString suffix = null;\n\t\tif (isStringFormatDecimal()) {\n\t\t\tif (getStringFormat() != null)\n\t\t\t\tsuffix = String.format(getStringFormat(), nextValue);\n\t\t\telse\n\t\t\t\tsuffix = String.format(\"%018d\", nextValue);\n\n\t\t\tresult = prefix.concat(suffix);\n\t\t} else {\n\t\t\tsuffix = String.valueOf(nextValue);\n\t\t\tresult = prefix.concat(suffix);\n\t\t}\n\t\tlog.debug(\"Custom generated sequence is : \" + result);\n\t\treturn result;\n\t}", "public void putInOrder(String key, ValueType value) {\n\n if (null != key && (key.charAt(0) != '$' || key.startsWith(ABSORB_DATA_PREFIX_DEFAULT))) {\n if (null == orderedKeys)\n orderedKeys = new ArrayList<>();\n\n if (!containsKey(key)) {\n orderedKeys.add(key);\n\n // use ArrayList as container if no container set\n if (null == values)\n values = (ContainerType) new ArrayList();\n values.add(value);\n }\n }\n else\n throw new IllegalArgumentException(\"Key cannot contain special character $\");\n\n put(key, value);\n }", "private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public String preOrderToString(TreeNode tn){\n \tif (tn==null) return \"\";\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(tn.val);\n \tsb.append(\",\");\n \tif (tn.left==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.left));\n \t}\n \tif (tn.right==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.right));\n \t}\n \treturn sb.toString();\n }", "private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public void add(String value) {\n\t\tif (head == null)\n\t\t\thead = new Node(value);\n\t\telse if (head.value.compareTo(value) > 0) {\n\t\t\thead = new Node(value, head);\n\t\t} else if (head.value.compareTo(value) == 0) {\n\t\t\treturn;\n\t\t} else\n\t\t\trecAdd(head, value);\n\t}", "public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "private void testPreorderTemplate(OrderTraversal orderTraversal) {\n System.out.println(\"Testing against \" + orderTraversal.getClass().getSimpleName());\n testOne(\"1,2,3,4,5\", Lists.newArrayList(1, 2, 4, 5, 3), orderTraversal);\n testOne(\"1\", Lists.newArrayList(1), orderTraversal);\n testOne(\"4,2,7,1,3,6,9\", Lists.newArrayList(4, 2, 1, 3, 7, 6, 9), orderTraversal);\n testOne(\"4,2,7,1,#,6,9,8,10,#,5\", Lists.newArrayList(4, 2, 1, 8, 10, 7, 6, 5, 9), orderTraversal);\n System.out.println(StringUtils.repeat(\"-\", 30));\n }", "public void add(String value) {\n root.add(value, true);\n }", "public native String insertItemBefore(String newItem, Number index);", "public String getAlternativeOrderNumberPrefix();", "public void add(String value) {\n\t\t// if consistent\n\t\tif (value != null) {\n\t\t\t// checks if contains separator\n\t\t\tif (value.contains(Constants.LINE_SEPARATOR)) {\n\t\t\t\t// splits the string by separator\n\t\t\t\t// and adds to object as array\n\t\t\t\tarray.push(ArrayString.fromOrEmpty(value.split(Constants.LINE_SEPARATOR)));\n\t\t\t} else {\n\t\t\t\t// pushes to JS array\n\t\t\t\tarray.push(value);\n\t\t\t}\n\t\t}\n\t}", "void add(String value);", "private void preOrderTraversal(StringBuilder sb) {\n sb.append(data + \" \");\n\n if (left != null) {\n left.preOrderTraversal(sb);\n }\n\n if (right != null) {\n right.preOrderTraversal(sb);\n }\n }", "public String plus(Object value) {\n return this.theString + value;\n }", "public void preOrder(MyBinNode<Type> r){\n if(r != null){\n System.out.print(r.value.toString() + \" \");\n this.preOrder(r.left);\n this.preOrder(r.right);\n }\n }", "private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}", "public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}", "@Override\n public String toString(String prefix) { \n \n\n if(value != null) {\n getValueSigned();\n return prefix + \" \" + toString() +\" ( \"+ this.value+\" )\";\n }\n else\n return prefix + \" \" + toString();\n }", "private Expr unaryPre(Position pos, X10Unary_c.Operator op, Expr e) throws SemanticException {\n Type ret = e.type();\n Expr one = getLiteral(pos, ret, 1);\n Assign.Operator asgn = (op == X10Unary_c.PRE_INC) ? Assign.ADD_ASSIGN : Assign.SUB_ASSIGN;\n Expr a = assign(pos, e, asgn, one);\n a = visitAssign((Assign) a);\n return a;\n }", "private void addOne(String value){\n\t\tif (numCache.containsKey(value)){\n\t\t\tnumCache.put(value, numCache.get(value) + 1);\n\t\t}else{\n\t\t\tnumCache.put(value, 1);\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn getValue() + \":ADD(\" + value + ')';\n\t}", "public void addToFront(T value) {\n\t\tstart = new Node<T>(value, start);\n\t}", "public void add(String value);", "@Override\n\tpublic String toPrefixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\treturn getValue() + SPACE + left.toPrefixNotation() + SPACE \n\t\t\t\t\t+ right.toPrefixNotation();\n\t\t}\n\t}", "public void add(String value) {\n add(value, false);\n }", "@Override\n public Symbol put(String key, Symbol value) {\n value.setIndex(this.local++);\n return super.put(key, value);\n }", "public void add (int value) {\r\n\t\ttotal = total + value;\r\n\t\thistory = history + \" + \" + value;\r\n\t}", "private void preorder(String[] content, Node current)\r\n\t{\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\t// Write the name of the current Node into the String array\r\n\t\t\tcontent[getArrayCounter()] = current.getName();\r\n\t\t\tincrementArrayCounter();\r\n\t\t\t\r\n\t\t\t// Left recursive traversal\r\n\t\t\tpreorder(content, current.getLeftChild());\r\n\t\t\t// Right recursive traversal\r\n\t\t\tpreorder(content, current.getRightChild());\r\n\t\t}\r\n\t}", "Builder addPosition(String value);", "private void preOrderTraverse(Node<String> node, int depth,StringBuilder sb) {\n\t\t\t\tif(node!=null){\n\t\t\t\t\t\tsb.append(\" \"+node.toString());\n\t\t\t\t\tpreOrderTraverse(node.left, depth + 1, sb);\n\t\t\t\t\n\t\t\t\t\tpreOrderTraverse(node.right, depth + 1, sb);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "public List<T> preOrder(Node root, List<T> nodeValue) {\n if(root == null) {\n return nodeValue;\n }\n else {\n nodeValue.add((T) root.getData());\n preOrder(root.getLeftChildNode(), nodeValue);\n preOrder(root.getRightChildNode(), nodeValue);\n }\n return nodeValue;\n }", "public void insertBefore(String value, StringListIterator position)\n {\n\tStringListNode node = new StringListNode(value, position.node.prev, position.node);\n\tposition.node.prev = node;\n\tif (head == position.node) {\n\t head = node;\n\t}\n\telse {\n\t node.prev.next = node;\n\t}\n }", "public void pushFront(String value)\n {\n\tStringListNode node = new StringListNode(value);\n\tnode.next = head;\n\tif (null == head) {\t// the list was empty\n\t tail = node;\n\t}\n\telse {\n\t head.prev = node;\n\t}\n\thead = node;\n }", "public void addToStart(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n tail = current;\n } else {\n current.connectNext(head);\n head = current;\n }\n count++;\n }", "public void preOrder(){\n preOrder(root);\n System.out.println();\n }", "public void add (int value) {\n\t\ttotal = total + value;\n\n\t\thistory = history + \" + \" + value;\n\t\t\n\t}", "public boolean add(String value){\n int index=findIndexBinary(value);\n super.add(index,value);\n return true;\n }", "public String ToString(){\n return \"Natural Number: \"+this.n+\" and Predecessor: \"+this.prev.getVal();}", "public static void preOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tSystem.out.print(node.value + \" \");\n\t\tpreOrder(node.left);\n\t\tpreOrder(node.right);\t\n\t}", "private String getOrderCode(int pkgCode){\n\t\tint a = pkgCode ;\n\t\tint b = a/10 ;\n\t\tint c = b*10 ;\n//\t\tSystem.out.println(c);\n\t\treturn c+\"\" ;\n\t}", "public void insertAtBegin(String v) {\n\tElementDPtr e = new ElementDPtr(v,null,head);\n\thead = e;\n\tlength ++;\n\tSystem.out.println(tail.getPrev().getValue() + \" insertB \" + length);\n}", "public String getBeforeValue() {\n return beforeValue;\n }", "public void enqueue(String value)\n\t{\n\t\tq.insertLast(value);\n\t}", "private String toString(String pre) {\n StringBuilder sb = new StringBuilder();\n\n sb.append(key);\n if (values1 != null) {\n sb.append(\" \");\n sb.append(values1);\n sb.append(\", \");\n sb.append(values2);\n }\n sb.append(\"\\n\");\n\n String newpre = pre + \" \";\n if (!son.empty) {\n sb.append(newpre);\n sb.append(\"son: \");\n sb.append(son.toString(newpre));\n }\n if (!left.empty) {\n sb.append(newpre);\n sb.append(\"left: \");\n sb.append(left.toString(newpre));\n }\n if (!right.empty) {\n sb.append(newpre);\n sb.append(\"right: \");\n sb.append(right.toString(newpre));\n }\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n String result = head.toString();\r\n if (result.equals(\"\")) {\r\n return \"0\";\r\n }\r\n if (result.charAt(0) == '+') {\r\n result = result.substring(1);\r\n }\r\n return result;\r\n }", "public void testBuildTreeFromPREIN() throws Exception {\n final StringBuilder builder = new StringBuilder();\n C5_8A_RebuildTree treeBuilder = new C5_8A_RebuildTree<Character>();\n BinaryTreeNode<Character> root = treeBuilder.rebuild(\n ArrayUtil.getCharArray(preOrder),\n ArrayUtil.getCharArray(inOrder),\n C5_8A_RebuildTree.PRE_IN);\n C5_1_TreeTraverse.traverseByPostOrder(root, new Processor<Character>() {\n @Override\n public void process(Character element) {\n builder.append(element);\n }\n });\n String postOrder = builder.toString();\n assertEquals(this.postOrder, postOrder);\n }", "protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "public void addValue() {\n addValue(1);\n }", "public void addEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "private void addValue(ListPrefix listPrefix, KeyPrefix keyPrefix,\n Plane plane, Double value) {\n if (keyPrefix == KeyPrefix.S_POSITION) {\n plane = null;\n }\n getValueList(listPrefix, keyPrefix, plane).add(value);\n }", "private void addString(String value) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding String '\" + value + \"'\");\n }\n\n int index = stringTable.getIndex(value);\n addInt(index);\n }", "public void addCart(View view) {\n TextView textView = findViewById(R.id.price_total2);\n double price = Double.parseDouble(textView.getText().toString().replace(\"$\", \"\"));\n String text = \"$\" + String.valueOf(++price);\n textView.setText(text);\n Log.i(TAG, \"Value Successfully Increased! :\" /**+ ++i**/);\n }", "@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = start;\n start = new_node;\n }", "public static String generatePostOrder(String preOrder, String midOrder) {\r\n if (preOrder == null || preOrder.equals(\"\")) {\r\n return \"\";\r\n }\r\n char rootValue = preOrder.charAt(0);\r\n int rootIndex = midOrder.indexOf(rootValue);\r\n\r\n return generatePostOrder(preOrder.substring(1, 1 + rootIndex), midOrder.substring(0, rootIndex))\r\n + generatePostOrder(preOrder.substring(1 + rootIndex), midOrder.substring(1 + rootIndex)) + rootValue;\r\n }", "@Override\n public void setValue(ImportPath o, String value) {\n o.prefix = LEADING_TRAILING_SLASHES.matcher(value.trim()).replaceAll(\"\");\n }", "@Override\n\tpublic void preorder() {\n\n\t}", "private static void recAdd(Node l, String value) {\n\t\tif (l.next == null) {\n\t\t\tl.next = new Node(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\t// Base 2, the value behide the leader's value bigger than the value we want to add\n\t\t\tif (l.next.value.compareTo(value) > 0) {\n\t\t\t\tNode temp = new Node(value, l.next);\n\t\t\t\tl.next = temp;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Base 2, the value already in the list\n\t\t\telse if (l.next.value.equals(value)) {\n\t\t\t\treturn;\n\t\t\t} else\n\t\t\t\trecAdd(l.next, value);\n\t\t\t\treturn;\n\t\t}\n\n\t}", "private void preOrder(HomogeneusNode root) {\n\n if (root != null) {\n System.out.printf(\"%d\", root.getData());\n preOrder(root.getLeft());\n preOrder(root.getRight());\n }\n }", "private void preOrderPrint() {\n System.out.print(\" \" + key);\n if (left != null) left.preOrderPrint();\n if (right != null) right.preOrderPrint();\n }", "public String get(){\n\t\tString s = value%13+1+\"\"+suits[value/13]+\" \";\r\n\t\treturn s;\r\n\t}", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public void fillStringBuilderInOrder(StringBuilder builder, String prefix) {\r\n \t\r\n \tbuilder.append(this.getMoney() + \"\\n\"); // Ajout du root\r\n \tString oldPrefix = prefix; // Sauvegarde pour le décrément\r\n \tprefix += \" > \"; // Incrément du préfix\r\n \tbuilder.append(prefix);\r\n \t\r\n \tList<BinaryNode<CompanyNode>> orderedList = childs.getItemsInOrder();\r\n \t//boolean empty = orderedList.isEmpty();\r\n \tint listSize = orderedList.size();\r\n \tif( listSize != 1) {\t//si la liste n'est pas vide \r\n\t \tfor(int i = listSize - 2 ;i >= 0;--i) { // -2 car le dernier element est hord index et que le second est le root\r\n\t \t\t//if(orderedList.get(i)) {\t//si le noeud a un fils alors on rapelle cette fonction recursive\r\n\t \r\n\t \t\torderedList.get(i).getData().fillStringBuilderInOrder(builder,prefix);\r\n\t \t\t//}\r\n\t \t}\r\n \t}\r\n \tprefix = oldPrefix; // Décrément du préfixe\r\n }", "public static String generatePreOrderStringParenthesization(BinaryTree.Node root){\n StringBuffer strTree = generatePreOrderStringParenthesization(root, new StringBuffer(\"(\"));\n strTree.append(\")\");\n return strTree.toString();\n }", "public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }", "public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }", "public void setBeforeValue(String beforeValue) {\n this.beforeValue = beforeValue == null ? null : beforeValue.trim();\n }", "public void prepend(int val) {\n int i = -34;\n if(head != null) {\n Node node = head;\n head = new Node();\n\n node.prev = head;\n head.next = node;\n head.val = val;\n }\n else if(head == null) {\n\n head = new Node();\n head.val = val;\n tail = head;\n }\n\n size++;\n }", "public String addDecimal();", "public void add(Object incValue) {\n\t\tvalue = operate(\n\t\t\t\ttransform(value),\n\t\t\t\ttransform(incValue),\n\t\t\t\t(v1, v2) -> v1 + v2,\n\t\t\t\t(v1, v2) -> v1 + v2\n\t\t);\n\t}", "public boolean add(String value){\r\n\t\t//declare variables\r\n\t\tint testOrd = 0;\r\n\t\tDLBNode current = nodes;\r\n\t\tboolean lineFin = false;\r\n\t\tboolean output = false;\r\n\t\t\r\n\t\t//increment through the string to add the letter at its appropriate location\r\n\t\tfor(int i = 0; i < value.length(); i++){\r\n\t\t\t//node to house the current letter value being checked\r\n\t\t\tchar currentLetter = value.charAt(i);\r\n\t\t\t\r\n\t\t\tif(testOrd == 0){\r\n\t\t\t\t//checks to see if the list of letters being checked alread exists in the structure to avoid double-building\r\n\t\t\t\twhile(current != null){\r\n\t\t\t\t\t//generate a node value for the current letter being checked\r\n\t\t\t\t\tif(current.value == currentLetter){\r\n\t\t\t\t\t\tif(current.childNode != null){\r\n\t\t\t\t\t\t\t//step down to ensure you add to the lowest possible value in the viable list\r\n\t\t\t\t\t\t\tcurrent = current.childNode;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t//stop the loop\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check siblings if children are not viable\r\n\t\t\t\t\tif(current.siblingNode != null){\r\n\t\t\t\t\t\tcurrent = current.siblingNode;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//adjust trigger to end iteration\r\n\t\t\t\t\t\ttestOrd = 1;\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\t//add the value to the list in the appropriate orientation\r\n\t\t\t\t//the node should have no viable children, this part adds it as a sibling to an already existing node in the chain of characters being checked\r\n\t\t\t\tif(testOrd == 1){\r\n\t\t\t\t\tcurrent.siblingNode = new DLBNode(currentLetter);\r\n\t\t\t\t\tcurrent = current.siblingNode;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tcurrent.childNode = new DLBNode(currentLetter);\r\n\t\t\t\tcurrent = current.childNode;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//check for word endings/spaces\r\n\t\tif(current.childNode == null){\r\n\t\t\t\r\n\t\t\t//generate new child node that contains a terminating value (|)\r\n\t\t\tcurrent.childNode = new DLBNode('|');\r\n\t\t\toutput = true;\r\n\t\t\t\r\n\t\t\treturn output;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tcurrent = current.childNode;\r\n\t\t\t//do the same as above, but instead of a child add as a sibling to another value existing in that line of characters\r\n\t\t\twhile(current != null){\r\n\t\t\t\t//avoid duplicate word endings\r\n\t\t\t\tif(current.value == '|'){\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn output;\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//sibling check\r\n\t\t\t\tif(current.siblingNode != null){\r\n\t\t\t\t\tcurrent = current.siblingNode;\r\n\t\t\t\t}\r\n\t\t\t\telse{\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\tif(lineFin == false){\r\n\t\t\t\t\r\n\t\t\t\t//add a | if there is no other | value already present\r\n\t\t\t\tcurrent.siblingNode = new DLBNode('|');\r\n\t\t\t\toutput = true;\r\n\t\t\t\t\r\n\t\t\t\treturn output;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\r\n {\r\n preorder(root);\r\n }", "@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}", "public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}", "public void addInitialKey(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), INITIALKEY, value);\r\n\t}", "private static String incrementStringByOne(String prefix) {\n StringBuilder end = new StringBuilder(prefix);\n\n int lastPos = end.length() - 1;\n // This is basically end[lastPos] += 1\n end.setCharAt(lastPos, Chars.checkedCast(end.charAt(lastPos) + 1));\n\n return end.toString();\n }", "public void addValue(Object value)\n\t{\n\t\tif (!values.contains(value))\n\t\t{\n\t\t\tvalues.add(value + \"\");\n\t\t}\n\t}", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "public void addEncodedBy(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "@Override\n public void addOrderItem(List<SqlNode> orderByList,\n RelFieldCollation field) {\n if (!(context.toSql(field) instanceof SqlLiteral)) {\n super.addOrderItem(orderByList, field);\n }\n }", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "T put(CharSequence key, int pos, T addValue)\n\t\t{\n\t\t\tNode<T> nextNode;\n\t\t\tCharacter ch;\n\t\t\tT old;\n\n\t\t\tif(key.length() == pos)\n\t\t\t{\t// at terminating node\n\t\t\t\told = value;\n\t\t\t\tsetValue(addValue);\n\t\t\t\treturn old;\n\t\t\t}\n\t\t\tch = key.charAt(pos);\n\t\t\tif(nextMap == null)\n\t\t\t{\n\t\t\t\tnextMap = newNodeMap();\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch, nextNode);\n\t\t\t}\n\t\t\telse if((nextNode = nextMap.get(ch))==null)\n\t\t\t{\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch,nextNode);\n\t\t\t}\n\t\t\treturn nextNode.put(key,pos+1,addValue);\n\t\t}", "protected String proposeValue(String value)\r\n {\r\n logger.debug(\"Proposing value using paxos: \" + value);\r\n\r\n ByzPaxos paxos = new ByzPaxos();\r\n\r\n return startPaxos(paxos,value);\r\n\r\n }", "protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}", "private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}" ]
[ "0.5948506", "0.58979994", "0.5750146", "0.5724337", "0.5700327", "0.5553609", "0.55337286", "0.5507535", "0.5503513", "0.5484828", "0.5436373", "0.5413595", "0.54111886", "0.5408822", "0.5339079", "0.53319263", "0.53271", "0.5318885", "0.53120303", "0.53095615", "0.5308415", "0.52944833", "0.5291645", "0.527563", "0.5266575", "0.52485895", "0.52413535", "0.5238819", "0.5230252", "0.52271026", "0.52194476", "0.51974314", "0.51895696", "0.51843846", "0.5180484", "0.51785684", "0.5175437", "0.51737434", "0.5173628", "0.5169439", "0.51610196", "0.5158914", "0.5150198", "0.51397425", "0.5093494", "0.50931984", "0.5085975", "0.506347", "0.5053554", "0.5050446", "0.5049477", "0.504739", "0.50456625", "0.5042943", "0.5040046", "0.50295186", "0.5024504", "0.50191367", "0.49986187", "0.49937388", "0.49797398", "0.4979312", "0.4976613", "0.49739337", "0.49503636", "0.49443263", "0.49428508", "0.49322286", "0.49154317", "0.4912007", "0.4895835", "0.4893569", "0.4892617", "0.4888839", "0.48859245", "0.48815864", "0.4881125", "0.48773545", "0.487212", "0.4868785", "0.48617867", "0.48616135", "0.48559284", "0.48559284", "0.4854694", "0.48454645", "0.48345327", "0.48288548", "0.48276493", "0.4821626", "0.48209628", "0.4820664", "0.48195627", "0.48189595", "0.4817994", "0.4814106", "0.48133424", "0.481325", "0.48068577", "0.48005918" ]
0.75024223
0
conduct recursive preorder method
public String getPreorder(Node root) { preOrder(root); //return the string return preorder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder() {\n\t\tpreorder(root);\n\t}", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "private E[] getPreOrderLeftSubTree(E[] inOrderTraversal,E[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public myList<T> my_preorder();", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void preOrder() {\n preOrder(root);\n }", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}", "public Iterator<T> preorderIterator() { return new PreorderIterator(root); }", "public void preOrderTraversal(){\n System.out.println(\"preOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack();\n\n if(root!=null){\n stack.push(root);\n }\n while(!stack.isEmpty()) {\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n if (node.getRight() != null) {\n stack.push(node.getRight());\n }\n if (node.getLeft() != null) {\n stack.push(node.getLeft());\n }\n }\n System.out.println();\n }", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n System.out.println(new Solution().preorderTraversal(null));\n }", "public void inOrderTraverseRecursive();", "public void preOrder(){\n preOrder(root);\n System.out.println();\n }", "public List<Integer> preorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n\n rst.add(root.val);\n preorderTraversalRecursive(root.left);\n preorderTraversalRecursive(root.right);\n return rst;\n }", "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "private void preOrder(int node, int[] parents) {\n currTour.add(node + 1);\n Queue<Integer> children = findChildren(node, parents);\n while(!children.isEmpty()) {\n preOrder(children.remove(), parents);\n }\n }", "static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}", "private E[] getInOrderLeftSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public void visitPreorder(Visitor<T> visitor) { if (root != null) root.visitPreorder(visitor); }", "private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }", "void preorder(Node root){\n if(root!=null){\n System.out.print(root.data+\" \");\n preorder(root.left);\n preorder(root.right);\n }\n\n }", "public static void preorder(Node root){\n\t\tif(root != null){\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t}\n\t}", "private void preorderHelper(ArrayList<T> list, BSTNode<T> current) {\n // look at data, left, right\n if (current.getLeft() != null) {\n list.add(current.getLeft().getData());\n preorderHelper(list, current.getLeft());\n }\n if (current.getRight() != null) {\n list.add(current.getRight().getData());\n preorderHelper(list, current.getRight());\n }\n }", "static ArrayList<Integer> preorder(Node root)\n {\n ArrayList<Integer> output_arr=new ArrayList<>();\n if(root==null){\n return null;\n }\n Stack<Node> stack=new Stack<>();\n stack.add(root);\n \n while(!stack.isEmpty()){\n Node currentnode=stack.pop();\n output_arr.add(currentnode.data);\n if(currentnode.right!=null){\n stack.add(currentnode.right);\n }\n if(currentnode.left!=null){\n stack.add(currentnode.left);\n }\n \n }\n return output_arr;\n }", "public List<T> preorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n list.add(root.getData());\n preorderHelper(list, root);\n }\n return list;\n }", "public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }", "private void preorderSubtree(Position<E> p, List<Position<E>> snapshot) {\n snapshot.add(p);\n for (Position<E> c : children(p)) {\n preorderSubtree(c, snapshot); \n \n }\n }", "public List<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> returnList = new ArrayList<Integer>();\n LinkedList<TreeNode> stack = new LinkedList<TreeNode>();\n \n while(root !=null || !stack.isEmpty()){\n if(root != null){\n stack.push(root);\n returnList.add(root.val);\n root = root.left;\n }else{\n root = stack.pop();\n root = root.right;\n }\n }\n return returnList;\n }", "private void preorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n System.out.printf(\"%s \" , node.data);\n preorderHelper(node.leftNode);\n preorderHelper(node.rightNode);\n }", "private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }", "public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}", "public void preOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n System.out.println(node.getElement());\r\n preOrder(node.getLeft());\r\n preOrder(node.getRight());\r\n }", "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "public static void main(String[] args) {\n\n\t\tTreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node4.left = node7;\n \n System.out.println(preorderTraversalIterative(node1));\n System.out.println(preorderTraversalRecursive(node1));\n \n\t\t\n\t\t\n\t\t\n\t}", "public ArrayList<Integer> preorderTraversal(TreeNode a) {\n\n ArrayList<Integer> result = new ArrayList<>();\n\n if (a == null) return result;\n\n Stack<TreeNode> stack = new Stack();\n TreeNode current = a;\n\n // Push the root node onto the stack\n stack.push(current);\n\n while (!stack.isEmpty()) {\n // pop a node off of the stack\n TreeNode node = stack.pop();\n result.add(node.val);\n\n // push the right and left nodes onto the stack\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "private static <N> void preOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\t\r\n\t\tvisitor.visitNode(node);\r\n\t\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpreOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void preOrder (Node root)\n\t{\n\t \n\t if(root == null)\n\t {\n\t\t return;\n\t }\n\t \n\t addValToPreorder(root);\n\t \n\t //get all of the left nodes\n\t preOrder(root.leftNode());\n\t //get all of the right nodes\n\t preOrder(root.rightNode()); \n\t \n\t}", "ArrayList<Integer> preOrder(Node root)\n {\n // Code\n ArrayList<Integer> result = new ArrayList<Integer>();\n\n if (root == null) {\n return null;\n }\n Stack<Node> stack = new Stack<Node>();\n stack.push(root);\n // Node newNode = root;\n\n while (stack.empty() == false) {\n Node mynode = stack.peek();\n result.add(mynode.data);\n //System.out.print(mynode.data + \" \");\n stack.pop();\n\n if (mynode.right != null) {\n stack.push(mynode.right);\n }\n if(mynode.left != null){\n stack.push(mynode.left);\n }\n\n }\n return result;\n }", "private static BinaryTreeNode<String> reconstructPreorderSubtree(\n List<String> inOrder,boolean left) {\n String subtreeKey=null;\n if(left && leftsubtreeldx>0) {\n subtreeKey = inOrder.get(leftsubtreeldx);\n --leftsubtreeldx;\n }\n if(!left && rightsubtreeldx<inOrder.size()){\n subtreeKey = inOrder.get(rightsubtreeldx);\n rightsubtreeldx++;\n }\n if (subtreeKey == null) {\n return null;\n }\n\n BinaryTreeNode<String> leftSubtree = reconstructPreorderSubtree(inOrder,true);\n BinaryTreeNode<String> rightSubtree = reconstructPreorderSubtree(inOrder,false);\n BinaryTreeNode bn=new BinaryTreeNode(subtreeKey, leftSubtree, rightSubtree);\n return bn;\n }", "protected void preorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tpreorder(root.left);\r\n\t\tpreorder(root.right);\r\n\t}", "@Test\n\tvoid tesPreorder() {\n\t\tHeap<Integer, Integer> treap = createTreeHeap();\n\t\t//root, left, right\n\t\tassertEquals(\"[5, 4, 2, 1, 3]\", treap.preOrder());\n\t}", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "public static List<TreeNode> preOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\n\t\tif (rootNode == null) {\n\t\t\treturn output;\n\t\t}\n\t\tstack.push(rootNode);\n\t\twhile (!stack.empty()) {\n\t\t\tTreeNode node = stack.pop();\n\t\t\toutput.add(node);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.right);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.left);\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "public TreeNode createFromPreOrder(int[] preorder, int[] inorder) {\n //will solve this recursively by finding the root of each tree and appending it to the other by traversing\n //the preorder array in order and searching for an element in the inorder traversal\n\n\n return helper(preorder, inorder, 0, 0, inorder.length - 1);\n\n }", "List<Integer> traversePreOrder(List<Integer> oList) \n\t{\t\t\n\t\toList.add(this.key);\n\t\t\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\treturn oList;\t\t\n\t}", "public void preOrder(TreeNode root){\n\t\t//Change place of temp\n\t\tSystem.out.println(root.toString());\n\t\tif(root.getLeft()!= null){\n\t\t\tpreOrder(root.getLeft());\n\t\t}\n\t\tif(root.getMiddle()!=null){\n\t\t\tpreOrder(root.getMiddle());\n\t\t}\n\t\tif(root.getRight()!= null){\n\t\t\tpreOrder(root.getRight());\n\t\t}\n\t}", "protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "public void preorder(TreeNode root) {\n\n\t\tTreeNode current = root;\n\n\t\twhile (current != null) {\n\n\t\t\t// no elements on the left that are less than the current; add it to result.\n\t\t\tif (current.left == null) {\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\n\t\t\t// start processing the left subtree.\n\t\t\telse {\n\n\t\t\t\tTreeNode predecessor = current.left;\n\n\t\t\t\t// find rightmost value of current's left subtree.\n\t\t\t\twhile (predecessor.right != null && predecessor.right != current.right) {\n\t\t\t\t\tpredecessor = predecessor.right;\n\t\t\t\t}\n\n\t\t\t\t// if no thread between current and its predecessor, add it and add current\n\t\t\t\t// val to the result.\n\t\t\t\tif (predecessor.right == null) {\n\t\t\t\t\tpredecessor.right = current.right;\n\t\t\t\t\tcurrent.right = current.left;\n\t\t\t\t\tcurrent.left = null;\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\t\t\t\t// current's left subtree has been processed; remove the thread.\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "private void preOrder(Node node) {\n\t\tif(null == node) return;\n\t\t\n\t\t//Print node\n\t\tSystem.out.println(node.data);\n\t\t\n\t\t//Go to left child node\n\t\tpreOrder(node.left);\n\t\t\n\t\t//Go to right child node\n\t\tpreOrder(node.right);\n\t}", "public static void preorderTraversal(Node root)\r\n {\r\n if (root == null) {\r\n return;\r\n }\r\n \r\n System.out.print(root.data + \" \");\r\n preorderTraversal(root.left);\r\n preorderTraversal(root.right);\r\n }", "public void visitPreorder(Visitor<T> visitor) {\n visitor.visit(value);\n if (left != null) left.visitPreorder(visitor);\n if (right != null) right.visitPreorder(visitor);\n }", "static void preOrderTraversalStackOptimised(Node root) {\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n\n while (curr != null) {\n System.out.print(curr.data + \" \");\n if (curr.right != null) {\n stack.push(curr.right);\n }\n curr = curr.left;\n }\n\n if (!stack.isEmpty()) {\n curr = stack.pop();\n }\n }\n }", "public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}", "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n list.add(root.val);\n while (!stack.empty()) {\n TreeNode current = stack.peek();\n if (current.left == null && current.right == null) {\n stack.pop();\n }\n\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n }\n }\n\n return list;\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "private void preOrderTraversal(StringBuilder sb) {\n sb.append(data + \" \");\n\n if (left != null) {\n left.preOrderTraversal(sb);\n }\n\n if (right != null) {\n right.preOrderTraversal(sb);\n }\n }", "public TreeNode<Integer> reconstruct(int[] inOrder, int[] preOrder) {\n Map<Integer, Integer> idxMap = new HashMap<>();\n for (int idx = 0; idx < inOrder.length; idx++) {\n idxMap.put(inOrder[idx], idx);\n }\n\n return construct(inOrder, 0, inOrder.length - 1, preOrder, 0, preOrder.length - 1, idxMap);\n }", "private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}", "public List<Integer> traversePreOrderIterative(TreeNode root) {\n if (root == null) {\n return Collections.emptyList();\n }\n\n List<Integer> result = new ArrayList<>();\n\n Deque<TreeNode> stack = new ArrayDeque<>();\n stack.add(root);\n\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "private E[] getPreOrderRightSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "private <E> void preOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t//System.out.println(root.value);\n\t\taction.execute(root.value);\n\n\t\tpreOrder(root.left,action);\n\t\t\n\t\tpreOrder(root.right,action);\n\t\t\n\t}", "public void preOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\n\t\taction.visit(this.getElement());\n\t\tthis.left.preOrderDepthFirstTraversal(action);\n\t\tthis.right.preOrderDepthFirstTraversal(action);\n\t}", "public void preOrderTraversal() {\n preOrderThroughRoot(root);\n System.out.println();\n }", "public void inorder()\n {\n inorderRec(root);\n }", "void preOrderOperation(PortfolioNode parentNode, Position position);", "public static List<Node> preOrderTraversal(BinarySearchTree BST) {\n preorder = new LinkedList<Node>();\n preOrderTraversal(BST.getRoot());\n return preorder;\n }", "void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}", "public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }", "public List<Integer> IterativePreorderTraversal(TreeNode node) {\n \tList<Integer> list = new ArrayList<Integer>();\n \tStack<TreeNode> stack = new Stack<>();\n \twhile(!stack.isEmpty() || node!=null){\n \t\t// first, visit the current node\n \t\tif (node!=null){\n \t\t\tlist.add(node.val);\n \t\t\t// push its right child into stack\n \t\t\tif (node.right!=null){\n \t\t\t\tstack.push(node.right);\n \t\t\t}\n \t\t\t// second, go to the left subtree\n \t\t\tnode = node.left;\n \t\t} else{\n \t\t\t// if node is null\n \t\t\tnode = stack.pop();\n \t\t}\n \t}\n \t\n\t\treturn list;\n \n }", "public static void preOrderInterative(TreeNode root) {\n\t\tif(root == null) return;\n\t\tDeque<TreeNode> stack = new LinkedList<TreeNode>();\n\t\tTreeNode curr = root;\n\t\twhile(curr != null || !stack.isEmpty()) {\n\t\t\t\n\t\t\tif(curr != null) {\n\t\t\t\tSystem.out.print(curr.value + \" \");\n\t\t\t\tif(curr.right != null) stack.push(curr.right);\n\t\t\t\tcurr = curr.left;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurr = stack.pop();\n\t\t\t}\t\t\t\n\t\t}\t\t\t\n\t}", "public static ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }", "public static void main(String[] args)\r\n {\r\n \r\n int[] preorder = { 1, 2, 4, 5, 3, 6, 8, 9, 7 };\r\n int[] isLeaf = { 0, 0, 1, 1, 0, 0, 1, 1, 1 };\r\n \r\n // construct the tree\r\n Node root = constructTree(preorder, isLeaf);\r\n \r\n // print the tree in preorder fashion\r\n System.out.print(\"Preorder Traversal of the constructed tree is: \");\r\n preorderTraversal(root);\r\n }", "private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}", "private void preOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n System.out.print(root.getData() + \" \");\n preOrderTraversalRec(root.getLeft());\n preOrderTraversalRec(root.getRight());\n }", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public static void preOrder(Node node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "private void preOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpreOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpreOrder(node.right, list);\n\t\t\t}\n\t\t}\n\t}", "public static void createTreeFromTraversals() {\n int[] preorder = {9, 2, 1, 0, 5, 3, 4, 6, 7, 8};\n int[] inorder = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n Tree tree = new Tree();\n tree.head = recur(preorder, inorder, 0, 0, inorder.length-1);\n tree.printPreOrder();\n System.out.println();\n tree.printInOrder();\n System.out.println();\n }", "void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }", "public void preOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(root);\n\t\t\tpreOrderTraversal(root.getLeftChild());\n\t\t\tpreOrderTraversal(root.getRightChild());\n\t\t}\n\t}", "private static Node buildTree(int[] preorder, int[] inorder) {\n Map<Integer, Integer> inorderMap = new HashMap<>();\n IntStream.range(0, inorder.length).forEach(i -> inorderMap.put(inorder[i], i));\n\n int[] preorderIndex = new int[1];\n return buildTreeHelper(preorder, preorderIndex, 0, inorder.length - 1, inorderMap);\n }", "private void preOrderTraverse(Node<String> node, int depth,StringBuilder sb) {\n\t\t\t\tif(node!=null){\n\t\t\t\t\t\tsb.append(\" \"+node.toString());\n\t\t\t\t\tpreOrderTraverse(node.left, depth + 1, sb);\n\t\t\t\t\n\t\t\t\t\tpreOrderTraverse(node.right, depth + 1, sb);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "private void treePreOrderTraversal(final Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }" ]
[ "0.7823924", "0.7629518", "0.7629518", "0.74227554", "0.73916787", "0.7302879", "0.7211128", "0.7113689", "0.7099265", "0.7061353", "0.7028659", "0.7008732", "0.69915646", "0.69643646", "0.69603187", "0.6919067", "0.68408144", "0.6812275", "0.6796535", "0.6795079", "0.67723066", "0.6766303", "0.67590123", "0.67586786", "0.6757832", "0.67544913", "0.6739271", "0.67234474", "0.6704972", "0.66875917", "0.6676537", "0.6675937", "0.66750413", "0.66676474", "0.66481453", "0.66236997", "0.6604602", "0.66014063", "0.6584145", "0.65837514", "0.65837055", "0.65776503", "0.65757906", "0.6565961", "0.6551473", "0.6549468", "0.6548652", "0.6533796", "0.6520204", "0.65197814", "0.6518731", "0.64918405", "0.6473376", "0.64679027", "0.6453874", "0.6440822", "0.6439952", "0.643932", "0.6435782", "0.64340895", "0.64287597", "0.64206195", "0.64179915", "0.6412263", "0.6388102", "0.63667053", "0.63531375", "0.63519615", "0.63457835", "0.6340288", "0.6317092", "0.6316129", "0.6304436", "0.6298384", "0.62935746", "0.6287104", "0.62810695", "0.62707907", "0.6258422", "0.62560797", "0.6252312", "0.62495375", "0.62476057", "0.622543", "0.62188625", "0.6217174", "0.6217062", "0.62042683", "0.6202894", "0.61928403", "0.61862344", "0.6172113", "0.6162147", "0.61619383", "0.61399347", "0.6139456", "0.6116473", "0.61118305", "0.61098635", "0.61063546", "0.61042184" ]
0.0
-1
uses recursion to go through tree in preorder efficiency is O(n) because only "visits" each node once
public void preOrder (Node root) { if(root == null) { return; } addValToPreorder(root); //get all of the left nodes preOrder(root.leftNode()); //get all of the right nodes preOrder(root.rightNode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "private static <N> void preOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\t\r\n\t\tvisitor.visitNode(node);\r\n\t\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpreOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "public void preorder() {\n\t\tpreorder(root);\n\t}", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "static void preOrderTraversalStackOptimised(Node root) {\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n\n while (curr != null) {\n System.out.print(curr.data + \" \");\n if (curr.right != null) {\n stack.push(curr.right);\n }\n curr = curr.left;\n }\n\n if (!stack.isEmpty()) {\n curr = stack.pop();\n }\n }\n }", "void preorder(Node root){\n if(root!=null){\n System.out.print(root.data+\" \");\n preorder(root.left);\n preorder(root.right);\n }\n\n }", "public void inOrderTraverseRecursive();", "public void preOrderTraversal(){\n System.out.println(\"preOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack();\n\n if(root!=null){\n stack.push(root);\n }\n while(!stack.isEmpty()) {\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n if (node.getRight() != null) {\n stack.push(node.getRight());\n }\n if (node.getLeft() != null) {\n stack.push(node.getLeft());\n }\n }\n System.out.println();\n }", "public static void preorderTraversal(Node root)\r\n {\r\n if (root == null) {\r\n return;\r\n }\r\n \r\n System.out.print(root.data + \" \");\r\n preorderTraversal(root.left);\r\n preorderTraversal(root.right);\r\n }", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }", "private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}", "private void preorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n System.out.printf(\"%s \" , node.data);\n preorderHelper(node.leftNode);\n preorderHelper(node.rightNode);\n }", "public List<Integer> preorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n\n rst.add(root.val);\n preorderTraversalRecursive(root.left);\n preorderTraversalRecursive(root.right);\n return rst;\n }", "private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }", "void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}", "void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public void preOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n System.out.println(node.getElement());\r\n preOrder(node.getLeft());\r\n preOrder(node.getRight());\r\n }", "private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}", "public void preOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\n\t\taction.visit(this.getElement());\n\t\tthis.left.preOrderDepthFirstTraversal(action);\n\t\tthis.right.preOrderDepthFirstTraversal(action);\n\t}", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }", "public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}", "public void preOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(root);\n\t\t\tpreOrderTraversal(root.getLeftChild());\n\t\t\tpreOrderTraversal(root.getRightChild());\n\t\t}\n\t}", "public static void preorder(Node root){\n\t\tif(root != null){\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t}\n\t}", "public List<Integer> traversePreOrderIterative(TreeNode root) {\n if (root == null) {\n return Collections.emptyList();\n }\n\n List<Integer> result = new ArrayList<>();\n\n Deque<TreeNode> stack = new ArrayDeque<>();\n stack.add(root);\n\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "private E[] getPreOrderLeftSubTree(E[] inOrderTraversal,E[] preOrderTraversal) {\n\t\treturn null;\n\t}", "void printPreorder(Node node) {\n if (node == null)\n return;\n\n /* first print data of node */\n System.out.print(node.key + \" \");\n\n /* then recur on left sutree */\n printPreorder(node.left);\n\n /* now recur on right subtree */\n printPreorder(node.right);\n }", "private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}", "private void preOrder(Node node) {\n\t\tif(null == node) return;\n\t\t\n\t\t//Print node\n\t\tSystem.out.println(node.data);\n\t\t\n\t\t//Go to left child node\n\t\tpreOrder(node.left);\n\t\t\n\t\t//Go to right child node\n\t\tpreOrder(node.right);\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n System.out.println(new Solution().preorderTraversal(null));\n }", "public List<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> returnList = new ArrayList<Integer>();\n LinkedList<TreeNode> stack = new LinkedList<TreeNode>();\n \n while(root !=null || !stack.isEmpty()){\n if(root != null){\n stack.push(root);\n returnList.add(root.val);\n root = root.left;\n }else{\n root = stack.pop();\n root = root.right;\n }\n }\n return returnList;\n }", "protected void preorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tpreorder(root.left);\r\n\t\tpreorder(root.right);\r\n\t}", "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "private void treePreOrderTraversal(final Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePreOrderTraversal(currNode.children[i]);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "public List<Integer> IterativePreorderTraversal(TreeNode node) {\n \tList<Integer> list = new ArrayList<Integer>();\n \tStack<TreeNode> stack = new Stack<>();\n \twhile(!stack.isEmpty() || node!=null){\n \t\t// first, visit the current node\n \t\tif (node!=null){\n \t\t\tlist.add(node.val);\n \t\t\t// push its right child into stack\n \t\t\tif (node.right!=null){\n \t\t\t\tstack.push(node.right);\n \t\t\t}\n \t\t\t// second, go to the left subtree\n \t\t\tnode = node.left;\n \t\t} else{\n \t\t\t// if node is null\n \t\t\tnode = stack.pop();\n \t\t}\n \t}\n \t\n\t\treturn list;\n \n }", "static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}", "public static void inOrderTraverse(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tNode node = root;\n\t\twhile (node!=null || !stack.empty()) {\n if(node!=null){\n \t stack.push(node);\n \t node = node.lchild;\n }else{\n \t node = stack.pop();\n \t node.visit();\n \t node = node.rchild;\n }\n\t\t}\n\t}", "public void preOrder(TreeNode root){\n\t\t//Change place of temp\n\t\tSystem.out.println(root.toString());\n\t\tif(root.getLeft()!= null){\n\t\t\tpreOrder(root.getLeft());\n\t\t}\n\t\tif(root.getMiddle()!=null){\n\t\t\tpreOrder(root.getMiddle());\n\t\t}\n\t\tif(root.getRight()!= null){\n\t\t\tpreOrder(root.getRight());\n\t\t}\n\t}", "protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "public void preorder(TreeNode root) {\n\n\t\tTreeNode current = root;\n\n\t\twhile (current != null) {\n\n\t\t\t// no elements on the left that are less than the current; add it to result.\n\t\t\tif (current.left == null) {\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\n\t\t\t// start processing the left subtree.\n\t\t\telse {\n\n\t\t\t\tTreeNode predecessor = current.left;\n\n\t\t\t\t// find rightmost value of current's left subtree.\n\t\t\t\twhile (predecessor.right != null && predecessor.right != current.right) {\n\t\t\t\t\tpredecessor = predecessor.right;\n\t\t\t\t}\n\n\t\t\t\t// if no thread between current and its predecessor, add it and add current\n\t\t\t\t// val to the result.\n\t\t\t\tif (predecessor.right == null) {\n\t\t\t\t\tpredecessor.right = current.right;\n\t\t\t\t\tcurrent.right = current.left;\n\t\t\t\t\tcurrent.left = null;\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\t\t\t\t// current's left subtree has been processed; remove the thread.\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "static ArrayList<Integer> preorder(Node root)\n {\n ArrayList<Integer> output_arr=new ArrayList<>();\n if(root==null){\n return null;\n }\n Stack<Node> stack=new Stack<>();\n stack.add(root);\n \n while(!stack.isEmpty()){\n Node currentnode=stack.pop();\n output_arr.add(currentnode.data);\n if(currentnode.right!=null){\n stack.add(currentnode.right);\n }\n if(currentnode.left!=null){\n stack.add(currentnode.left);\n }\n \n }\n return output_arr;\n }", "public static void preOrderInterative(TreeNode root) {\n\t\tif(root == null) return;\n\t\tDeque<TreeNode> stack = new LinkedList<TreeNode>();\n\t\tTreeNode curr = root;\n\t\twhile(curr != null || !stack.isEmpty()) {\n\t\t\t\n\t\t\tif(curr != null) {\n\t\t\t\tSystem.out.print(curr.value + \" \");\n\t\t\t\tif(curr.right != null) stack.push(curr.right);\n\t\t\t\tcurr = curr.left;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurr = stack.pop();\n\t\t\t}\t\t\t\n\t\t}\t\t\t\n\t}", "private void preOrderTraverse(Node<String> node, int depth,StringBuilder sb) {\n\t\t\t\tif(node!=null){\n\t\t\t\t\t\tsb.append(\" \"+node.toString());\n\t\t\t\t\tpreOrderTraverse(node.left, depth + 1, sb);\n\t\t\t\t\n\t\t\t\t\tpreOrderTraverse(node.right, depth + 1, sb);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "public void preOrder() {\n preOrder(root);\n }", "public static List<TreeNode> preOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\n\t\tif (rootNode == null) {\n\t\t\treturn output;\n\t\t}\n\t\tstack.push(rootNode);\n\t\twhile (!stack.empty()) {\n\t\t\tTreeNode node = stack.pop();\n\t\t\toutput.add(node);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.right);\n\t\t\tif (node.right != null)\n\t\t\t\tstack.push(node.left);\n\t\t}\n\t\treturn output;\n\t}", "public void traversePreOrder(Node node) {\n\t\tif (node != null) {\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\ttraversePreOrder(node.left);\n\t\t\ttraversePreOrder(node.right);\n\t\t}\n\t}", "public static void preOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tSystem.out.print(node.value + \" \");\n\t\tpreOrder(node.left);\n\t\tpreOrder(node.right);\t\n\t}", "public static void main(String[] args) {\n\n\t\tTreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node4.left = node7;\n \n System.out.println(preorderTraversalIterative(node1));\n System.out.println(preorderTraversalRecursive(node1));\n \n\t\t\n\t\t\n\t\t\n\t}", "private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}", "public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}", "public void preOrder(){\n preOrder(root);\n System.out.println();\n }", "private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }", "private void buildTreeTraversals(BinaryNode parent, List<E> inOrder, List<E> preOrder, Boolean onLeft){\n if (!(inOrder.size() <= 0 || preOrder.size() <= 0)) {\n BinaryNode newParent;\n if (parent == null) {\n root = new BinaryNode<>(preOrder.get(0), null, null, null);\n newParent = root;\n } else{\n newParent = new BinaryNode<>(preOrder.get(0), null, null, parent);\n if (onLeft) parent.left = newParent;\n else parent.right = newParent;\n }\n\n List<E> inOrderL = split(inOrder, preOrder.get(0), true);\n List<E> inOrderR = split(inOrder, preOrder.get(0), false);\n List<E> preOrderL = preOrder.subList(1, inOrderL.size() + 1);\n List<E> preOrderR = preOrder.subList(inOrderL.size() + 1, preOrder.size());\n buildTreeTraversals(newParent, inOrderL, preOrderL, true);\n buildTreeTraversals(newParent, inOrderR, preOrderR, false);\n }\n }", "public static void preOrder(TreeNode node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "private void preOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n System.out.print(root.getData() + \" \");\n preOrderTraversalRec(root.getLeft());\n preOrderTraversalRec(root.getRight());\n }", "private void preOrder(int node, int[] parents) {\n currTour.add(node + 1);\n Queue<Integer> children = findChildren(node, parents);\n while(!children.isEmpty()) {\n preOrder(children.remove(), parents);\n }\n }", "public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }", "private void inorderTraverse(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tinorderTraverse(node.left); // walk trough left sub-tree\n\t\tthis.child.add(node);\n\t\tinorderTraverse(node.right); // walk trough right sub-tree\n\t}", "ArrayList<Integer> preOrder(Node root)\n {\n // Code\n ArrayList<Integer> result = new ArrayList<Integer>();\n\n if (root == null) {\n return null;\n }\n Stack<Node> stack = new Stack<Node>();\n stack.push(root);\n // Node newNode = root;\n\n while (stack.empty() == false) {\n Node mynode = stack.peek();\n result.add(mynode.data);\n //System.out.print(mynode.data + \" \");\n stack.pop();\n\n if (mynode.right != null) {\n stack.push(mynode.right);\n }\n if(mynode.left != null){\n stack.push(mynode.left);\n }\n\n }\n return result;\n }", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}", "void traverseInOrder(Node node){\n if (node != null) {\n traversePreOrder(node.left); // fokus left sampai dihabiskan, lalu right (berbasis sub-tree)\n System.out.println(\" \" + node.data);\n traversePreOrder(node.right);\n }\n }", "private void recInOrderTraversal(BSTNode<T> node) {\n\t\tif (node != null) {\n\t\t\trecInOrderTraversal(node.getLeft());\n\t\t\ta.add(node.getData());\n\t\t\trecInOrderTraversal(node.getRight());\n\t\t}\n\t}", "public void preOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n preOrderTraverseTree(focusNode.leftChild);\n\n preOrderTraverseTree(focusNode.rightChild);\n\n }\n }", "private void preorderSubtree(Position<E> p, List<Position<E>> snapshot) {\n snapshot.add(p);\n for (Position<E> c : children(p)) {\n preorderSubtree(c, snapshot); \n \n }\n }", "private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "public void visitPreorder(Visitor<T> visitor) { if (root != null) root.visitPreorder(visitor); }", "public void inorder()\n {\n inorderRec(root);\n }", "public void inorder()\r\n {\r\n inorder(root);\r\n }", "public void printTreePreOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n System.out.print(node.item + \" \");\n printTreePreOrder(node.left);\n printTreePreOrder(node.right);\n\n }", "public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }", "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n list.add(root.val);\n while (!stack.empty()) {\n TreeNode current = stack.peek();\n if (current.left == null && current.right == null) {\n stack.pop();\n }\n\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n }\n }\n\n return list;\n }", "private void treeBreadthFirstTraversal() {\n Node currNode = root;\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n // Highlights the first Node.\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n queueQueueAddAnimation(currNode.children[i],\n \"Queueing \" + currNode.children[i].key,\n AnimationParameters.ANIM_TIME);\n\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n queueListPopAnimation(\"Popped \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n queueNodeSelectAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n }", "public void preOrderTraversal() {\n preOrderThroughRoot(root);\n System.out.println();\n }", "private E[] getInOrderLeftSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public ArrayList<Integer> preorderTraversal(TreeNode a) {\n\n ArrayList<Integer> result = new ArrayList<>();\n\n if (a == null) return result;\n\n Stack<TreeNode> stack = new Stack();\n TreeNode current = a;\n\n // Push the root node onto the stack\n stack.push(current);\n\n while (!stack.isEmpty()) {\n // pop a node off of the stack\n TreeNode node = stack.pop();\n result.add(node.val);\n\n // push the right and left nodes onto the stack\n if (node.right != null) {\n stack.push(node.right);\n }\n\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}", "public static void preOrder(Node node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.left = r2; \r\n root.right = r3; \r\n r2.left = r4; \r\n r2.right = r5; \r\n r3.right = r6;\r\n System.out.println(getNodeNumRec(root));\r\n System.out.println(getNodeNum(root));\r\n System.out.println(getDepthRec(root));\r\n System.out.println(getDepth(root));\r\n System.out.println(\"前序遍历\");\r\n preorderTraversalRec(root);\r\n System.out.println(\"\");\r\n preorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"中序遍历\");\r\n inorderTraversalRec(root);\r\n System.out.println(\"\");\r\n inorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"后序遍历\");\r\n postorderTraversalRec(root);\r\n System.out.println(\"\");\r\n postorderTraversal(root);\r\n System.out.println(\"分层遍历\");\r\n levelTraversal(root);\r\n System.out.println(\"\");\r\n levelTraversalRec(root);\r\n\t}", "private void preorderLeftOnly(Node root) {\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n if (root.left != null)\r\n preorderLeftOnly(root.left);\r\n }", "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "public static void preOrder(Node n) {\n\t\tif (n == null)\n\t\t\treturn;\n\t\tSystem.out.println(n.getData());\n\t\tpreOrder(n.getLeft());\n\t\tpreOrder(n.getRight());\n\t}", "public void preTrav(ObjectTreeNode tree) {\n if (tree != null) {\n ((TreeComparable)tree.getInfo()).visit();\n preTrav(tree.getLeft());\n preTrav(tree.getRight());\n }\n }", "public void inOrderTraversal(Node node)\n\t{\n\t\tif(node!=null){\n\t\t\t\n\t\t\tinOrderTraversal(node.leftChild);\n\t\t\tarr.add(node.data);\n\t\t\tinOrderTraversal(node.rightChild);\n\t\t}\n\t}", "public List<T> wantedNodesIterative(Predicate<T> p) {\n //PART 4 \n if(root == null){\n return null;\n }\n LinkedList<TreeNode<T>> stack = new LinkedList<>();\n stack.add(root);\n \n List<T> wantedNodes =new LinkedList<>();\n TreeNode<T> current;\n \n while(!stack.isEmpty()){\n current = stack.pop();\n if(p.check(current.data)){\n wantedNodes.add(current.data);\n }\n if(current.right != null){\n stack.addFirst(current.right);\n }\n if(current.left != null){\n stack.addFirst(current.left);\n }\n }\n return wantedNodes;\n }", "private void inorder() {\n inorder(root);\n }", "private void preOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpreOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpreOrder(node.right, list);\n\t\t\t}\n\t\t}\n\t}", "public static ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n TreeNode node = stack.pop();\n result.add(node.val);\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n\n return result;\n }", "public static void preOrder(Node root) {\n if (root == null)\n return;\n System.out.print(root.data + \" \");\n preOrder(root.left);\n preOrder(root.right);\n\n }" ]
[ "0.78446287", "0.7505537", "0.7505537", "0.74737465", "0.7377926", "0.73383987", "0.73339915", "0.7319686", "0.7264278", "0.72286296", "0.7210622", "0.7207163", "0.7159382", "0.7130875", "0.71287346", "0.7125629", "0.7056428", "0.7054242", "0.7044415", "0.70420873", "0.70348513", "0.703201", "0.7018092", "0.7016479", "0.701265", "0.70036227", "0.6988266", "0.69736576", "0.69705904", "0.6968618", "0.6920042", "0.69176465", "0.6916786", "0.6909224", "0.6907489", "0.68981975", "0.6893265", "0.68923014", "0.6891671", "0.6882353", "0.6876166", "0.6866684", "0.68613493", "0.6849139", "0.68242365", "0.6819898", "0.6815149", "0.68052995", "0.6800111", "0.67868567", "0.6767669", "0.67633826", "0.67557514", "0.67557347", "0.67518604", "0.674932", "0.6746902", "0.6739568", "0.67271745", "0.6717168", "0.67120665", "0.6697728", "0.6662911", "0.66560394", "0.66551393", "0.6646656", "0.6636982", "0.6632587", "0.66264015", "0.6619887", "0.66125816", "0.66119874", "0.66030765", "0.6602023", "0.6595903", "0.6595518", "0.6594802", "0.65925884", "0.6584405", "0.6571877", "0.65608364", "0.6554131", "0.6528833", "0.6526293", "0.6523151", "0.6514958", "0.6514368", "0.65090495", "0.64950687", "0.64943045", "0.6493411", "0.6490944", "0.6482141", "0.6468569", "0.6445683", "0.6444917", "0.64434385", "0.64349544", "0.6432497", "0.642504" ]
0.69178647
31
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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 StateBruceDanner swallowSubstance() { return NON_CONTAMINED; }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public StateBruceDanner meetBetty() { return CONTAMINED; }
{ "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 quack() { System.out.println("꽥꽥"); }
{ "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 fly() { System.out.println("오리날다"); }
{ "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
anonymous class definition Implement the actionPerformed() method which is declared in the ActionListener interface.
public void actionPerformed(ActionEvent e){ //The methods in this inner-class have direct // access to the members of the enclosing // outer-classes named SampProg128. // Thus, direct access to the reference // variable named myLabel // is possible myLabel.setText("Ouch"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Override void actionPerformed(ActionEvent ev) {\n }", "@Override\n\t public void actionPerformed(ActionEvent e){\n\t }", "@Override\n\tpublic abstract void actionPerformed(ActionEvent arg0);", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "public void actionPerformed(ActionEvent e)\n {\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n }", "public void actionPerformed(ActionEvent arg0) {\n }", "public void actionPerformed(ActionEvent e) {\n }", "public void actionPerformed(ActionEvent e)\n {\n }", "public void actionPerformed(ActionEvent e){}", "@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n public void actionPerformed(ActionEvent arg0)\n {\n\n }", "public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t}", "public void actionPerformed(ActionEvent e);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t}", "@Override\n\tpublic void actionPerformed(\n\t\t\tActionEvent e)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}", "public void actionPerformed(ActionEvent e)\r\n\t\t{\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "public void actionPerformed(ActionEvent e){\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n \r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}" ]
[ "0.79313517", "0.788896", "0.7859951", "0.78441066", "0.78441066", "0.78114563", "0.78114563", "0.77910197", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77806157", "0.77765524", "0.7770223", "0.77618694", "0.77618694", "0.77618694", "0.7754783", "0.77528197", "0.77528197", "0.77528197", "0.77528197", "0.77528197", "0.77528197", "0.774921", "0.7743692", "0.7726045", "0.7726045", "0.77259004", "0.7721465", "0.77167237", "0.77144444", "0.77082485", "0.7699329", "0.76971394", "0.76869214", "0.76869214", "0.7677415", "0.7668198", "0.76674056", "0.7665148", "0.76489335", "0.76481026", "0.7646548", "0.76441014", "0.7632786", "0.76274633", "0.76274633", "0.76274633", "0.76274633", "0.76274633", "0.7624668", "0.7624668", "0.7624668", "0.76186055", "0.76124835", "0.76124835", "0.7611595", "0.7611595", "0.7611595", "0.76100713", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.76060444", "0.7605406", "0.760336", "0.76020354", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.7600714", "0.75964683" ]
0.0
-1
Sukuriamas grafinis interfeisas. Visi metodai cia skirti lango issidestymo nusakymui.
public HomeFrame() { super(); this.setSize(400, 80); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); this.setTitle("Reed-Muller code sending simulator"); JPanel panel = new JPanel(); JButton sendVector = new JButton(); sendVector.setText("Vector"); sendVector.addActionListener(e -> new VectorFrame()); JButton sendText = new JButton(); sendText.setText("Text"); sendText.addActionListener(e -> new TextFrame()); panel.add(sendVector); panel.add(sendText); panel.setVisible(true); this.add(panel); this.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}", "public void sendeSpielfeld();", "public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public String ingresarUbigeo24() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo);\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento24)) {\r\n\t\t\tubigeoDefecto24 = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto24);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia24)) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tlog.info(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo+\"\")) {\r\n\t\t\tubigeoDefecto24 += \"- \" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto24);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t\treturn getViewMant();\r\n\t\t}", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "@Test\n\tpublic void ricercaSinteticaClassificatoreGSAFigli() {\n\n\t}", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public static void korisnikNijeUneoIspravnuSifru() {\r\n\t\tJOptionPane.showMessageDialog(teretanaGui.getContentPane(), \"Niste uneli ispravnu sifru!\", \"Obavestenje\",\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t}", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void validerSaisie();", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "private void inizia() throws Exception {\n this.setMessaggio(\"Addebiti in corso\");\n this.setBreakAbilitato(true);\n }", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}", "public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}", "private void graficarSenal() {\n\t\tpanelSenal.setDatosVoz(datosVoz);\n\t\tpanelSenal.setAccionGraficar(true);\n\t\t//panelSenal.setGraficarOnda(!panelSenal.getGraficarOnda());\n\t\tpanelSenal.setGraficarOnda(true);\n\t\tpanelSenal.setIntervalo((finterv*datosVoz.length)/panelSenal.getWidth());\n\t\tpanelSenal.setFactorEX(fex);\n\t\tpanelSenal.setFactorEY(fey);\n\t\tpanelSenal.setTY(0);\n\t\tpanelSenal.repaint(); \n\t\n\t}", "public void diagrafiGiatrou() {\n\t\t// Elegxw an yparxoun iatroi sto farmakeio\n\t\tif(numOfDoctors != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA IATRWN\");\n\t\t\t// Emfanizw olous tous giatrous\n\t\t\tfor(int j = 0; j < numOfDoctors; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA IATROU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tdoctor[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU IATROU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO IATROU: \");\n\t\t\t}\n\t\t\t// Metakinw tous epomenous giatrous mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfDoctors - 1; k++)\n\t\t\t{\n\t\t\t\tdoctor[k] = doctor[k+1]; // Metakinw ton giatro sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfDoctors--; // Meiwse ton ari8mo twn giatrwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMOI GIATROI PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "protected void ufoTuhoutuuOsumasta(Ufo ufo, Kuti kuti) {\n kuti.die();\n grafiikka.asetaKuvaRajahdykselle();\n ufo.setImage(grafiikka.getRajahdys().getImage());\n ufo.setKuolee(true);\n tuhotut++;\n }", "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public boolean tieneRepresentacionGrafica();", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "public void seleccionSitio() {\r\n\t\tif (sitioId != null) {\r\n\t\t\tsitio = hashSitios.get(sitioId);\r\n\t\t\tcargarEstudiantesSitio();\r\n\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\tSystem.out.println(libres);\r\n\t\t}\r\n\t}", "public DialogoAggiungiFissi() {\n /* rimanda al costruttore della superclasse */\n super();\n\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public static void main(String [] args) {\n Guru guru = new Guru();\n\n guru.id = 1;\n guru.nik = \"18630958\";\n guru.nama = \"Rizka Oktaviyani\";\n guru.nilai = 3.6;\n guru.alamat = \"Banjarbaru\";\n guru.tampilData();\n\n Guru guru1 = new Guru(2,\"18630011\", \"Ananda\", 3.1, \"Banjarbaru\");\n guru1.tampilDataDenganGaris( \"---------------------------\");\n\n\n double hasilReturnValue = guru.getNilai();\n System.out.println(\"Hasil return value : \" + hasilReturnValue);\n\n// guru.tampilDataDenganGaris(\"===========================\");\n// guru.tampilDataDenganGaris(\"***************************\");\n// guru.hitungLuasPersegiPanjang(5,3);\n// guru.hitungLuasPersegiPanjang(7,3);\n// guru.hitungLuasPersegiPanjang(8,4);\n// guru.hitungLuasPersegiPanjang(9,2);\n }", "protected abstract void narisi(Graphics2D g, double wPlatno, double hPlatno);", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private IngenicoDisplay(){\n\n }", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n int yaricap=4;\n double alan= 4*4*Constans.pi;\n\n\n // kullanicidan alacaginiz saat , dakika ve gun bilgisinin saniyeyey ceviriniz\n\n int gun =23;\n int saat=7;\n int dakika=25;\n\n int saniyeCinsinden =\n gun * Constants.hourInDay *Constants.minuteInHour* Constants.secondInMinute+\n saat* Constants.minuteInHour* Constants.secondInMinute+\n dakika * Constants.secondInMinute;\n System.out.println(\"saniyeCinsinden = \" + saniyeCinsinden);\n\n\n }", "public void diagrafiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages \n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tSystem.out.println();\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO THS SYNTAGHS POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfPrescription)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO SYNTAGHS: \");\n\t\t\t}\n\t\t\t// Metakinw tis epomenes syntages mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfPrescription - 1; k++)\n\t\t\t{\n\t\t\t\tprescription[k] = prescription[k+1]; // Metakinw thn syntagh sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfPrescription--; // Meiwse ton ari8mo twn syntagwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMES SYNTAGES PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public void reserveer() {\n System.out.println(\"de eigenaar van de auto is: \" + i.eigenaar());\n\n }", "public gui obtenerGrafica();", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }", "public void skystonePos6() {\n }", "public void dibujarse(Entorno entorno) \n\t{\n\t\t\n\t\t\t\tswitch(this.dibujo)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase 1: entorno.dibujarImagen(mario, x, y, 0, 0.7); \n\t\t\t\t\t\tbreak;\n\t\t\t\tcase 2:entorno.dibujarImagen(this.mariocorreder, x, y, 0, 0.7);\n\t\t\t\t\t break;\n\t\t\t\tcase 3:entorno.dibujarImagen(this.mariocorreizq, x, y, 0, 0.7);\n\t\t\t\t break; \n\t\t\t\tcase 4:entorno.dibujarImagen(this.mariosalta, x, y, 0, 0.7);\n\t\t\t\t break;\n\t\t\t\tcase 5: entorno.dibujarImagen(this.mariosalta, x, y, 0, 0.7);\n\t\t\t\t break;\n\t\t\t\tcase 6:entorno.dibujarImagen(this.mariosub, x, y, 0, 0.7);\n\t\t break; \n\t\t\t\tcase 8:entorno.dibujarImagen(this.mariocae, x, y, 0, 0.7);\n\t\t\t\t\t\tbreak;\n\t\t\t\tcase 9:entorno.dibujarImagen(this.mariosub, x, y,0, 0.7);\n\t\t\t\t\t\tbreak;\n\t\t\t\tcase 10:entorno.dibujarImagen(this.mariosub, x, y,0, 0.7);\n\t\t\t\t\t\tbreak;\n\t\t\t\tdefault:entorno.dibujarImagen(mario, x, y, 0, 0.7); \n\t\t\n\t\t\t\t}\n\t}", "void kiemTraThangHopLi() {\n }", "private static void izpisiNavodila() {\n System.err.println(\"java ... [<datoteka.png>] [<sirina>x<visina>]\");\n System.err.println();\n System.err.println(\"java ...\");\n System.err.println(\" sliko nariše v okno velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... 640x480\");\n System.err.println(\" sliko nariše v okno velikosti 640 krat 480\");\n System.err.println();\n System.err.println(\"java ... primer.png\");\n System.err.println(\" izdela sliko primer.png velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... primer.png 640x480\");\n System.err.println(\" izdela sliko primer.png velikosti 640 krat 480\");\n }", "public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void invia(Battuta battuta) {\n\t\tString nomePersonaggio = battuta.getNomePersonaggio();\n\t\tString nomeAttore = cast.getAttore(nomePersonaggio);\n\t\tString battuta_ = battuta.getBattuta();\n\t\tString messaggio = formattaBattuta(nomePersonaggio, nomeAttore,\n\t\t\t\tbattuta_);\n\t\tfor (int j = 0; j < visualizzatori.size(); j++) {\n\t\t\t// recupera il colore da associare alla battuta\n\t\t\tColoreMessaggio colore = mappaColori.get(j).getColore(\n\t\t\t\t\tnomePersonaggio);\n\t\t\t// carica il messaggio sul visualizzatore\n\t\t\tvisualizzatori.get(j).addMessaggio(\n\t\t\t\t\tnew Messaggio(colore, messaggio));\n\t\t}\n\t}", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "private static void Iptal(ArrayList<Oda> odalar,Kullanici kullanici)\n {\n Oda oda=odaSec(odalar);\n if(oda.getMisafir().equals(\"0\"))\n {\n System.out.print(\"Sectiginiz oda rezerve iptali icin musait degil.\");\n }\n else\n {\n System.out.print(oda.getOdaNo()+\" numarali odanin rezerve islemi iptal edilecek.\");\n oda.setMisafir(\"0\");\n dosyaYazici(kullanici.getAd()+\", \"+oda.getMisafir()+\" adina \"+oda.getOdaNo()+\" numarali odayi rezerve islemini iptal etti.\");\n }\n }", "private void insProgression() {\n\t\tswitch (insCont) {\n\t\tcase 0: {\n\t\t\tinsText.setText(\"When you first start the game, you must choose where to place your ships.\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tinsText.setText(\"These are the ships:\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\tinsText.setText(\"Some areas are disabled to prevent overlaps and to ensure the ships stay on the board.\");\n\t\t\t// \"<html><div align=\\\"center\\\">Some areas are disabled to prevent\n\t\t\t// overlaps <br/> and to make sure the ships don't go off the\n\t\t\t// board.</div></html>\"\n\t\t\tbreak;\n\t\t}\n\t\tcase 3: {\n\t\t\tinsText.setText(\"When placed, ships will appear on the grid on the right side.\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 4: {\n\t\t\tinsText.setText(\"The enemy will try to attack these ships.\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 5: {\n\t\t\tinsText.setText(\"You must attack the Enemy's ships, which will be on the left grid after ship selection.\");\n\t\t\tbreak;\n\t\t}\n\t\tcase 6: {\n\t\t\tinsText.setText(\"PowerUps allow you to go again. The enemy also can also get PowerUps\");\n\t\t\tbreak;\n\t\t}\n\t\tdefault: {\n\t\t\tinsText.setText(\"When you first start the game, you must choose where to place your ships.\");\n\t\t\tinsCont = 0;\n\n\t\t\tcdLayout.show(program, \"menu\");\n\t\t}\n\t\t}\n\t\tinsPic.setIcon(createImageIcon(\"ship\" + (insCont + 1) + \".jpg\"));\n\t}", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void popier() {\n Scanner input1 = new Scanner(System.in);\n //Ivedame vaiku skaiciu\n Scanner input2 = new Scanner(System.in);\n //Idame tevu skaiciu\n Scanner input3 = new Scanner(System.in);\n\n System.out.println(\"Iveskite atlyginimą ant popieriaus: \");\n double atlyginimas = input1.nextDouble();\n\n System.out.println(\"Iveskite turimų vaikų iki 18 metų skaičių.\");\n int vaikai = input2.nextInt();\n if (vaikai == 0) {\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Bendras NPD\n double bnpd = npd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n\n } else {\n\n System.out.println(\"Keliese auginate vaikus?\");\n int tevai = input3.nextInt();\n\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Apskaiciuojame PNPD\n double pnpd = (200 * vaikai) / tevai;\n System.out.println(\"PNPD: \" + pnpd);\n\n //Bendras NPD\n double bnpd = npd + pnpd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n }\n\n\n\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "public void mo472g() throws RemoteException {\r\n int i = 0;\r\n if (this.f1761e != null && this.f1762f != null && this.f1763g != null && this.f1767k) {\r\n try {\r\n this.f1772p = false;\r\n MapProjection c = this.f1769m.mo395c();\r\n FPoint fPoint;\r\n if (m2832l()) {\r\n DPoint m = m2833m();\r\n int abs = (int) ((Math.abs(this.f1775s - this.f1774r) * 180.0d) / 3.141592653589793d);\r\n double d = (this.f1775s - this.f1774r) / ((double) abs);\r\n FPoint[] fPointArr = new FPoint[(abs + 1)];\r\n this.f1770n = new float[(fPointArr.length * 3)];\r\n for (int i2 = 0; i2 <= abs; i2++) {\r\n MapProjection mapProjection;\r\n if (i2 == abs) {\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1763g.latitude, this.f1763g.longitude, fPoint);\r\n fPointArr[i2] = fPoint;\r\n } else {\r\n mapProjection = c;\r\n fPointArr[i2] = m2831a(mapProjection, (((double) i2) * d) + this.f1774r, m.f3635x, m.f3636y);\r\n }\r\n mapProjection = c;\r\n fPointArr[i2] = m2831a(mapProjection, (((double) i2) * d) + this.f1774r, m.f3635x, m.f3636y);\r\n this.f1770n[i2 * 3] = fPointArr[i2].f3637x;\r\n this.f1770n[(i2 * 3) + 1] = fPointArr[i2].f3638y;\r\n this.f1770n[(i2 * 3) + 2] = 0.0f;\r\n }\r\n this.f1771o = fPointArr.length;\r\n return;\r\n }\r\n FPoint[] fPointArr2 = new FPoint[3];\r\n this.f1770n = new float[(fPointArr2.length * 3)];\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1761e.latitude, this.f1761e.longitude, fPoint);\r\n fPointArr2[0] = fPoint;\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1762f.latitude, this.f1762f.longitude, fPoint);\r\n fPointArr2[1] = fPoint;\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1763g.latitude, this.f1763g.longitude, fPoint);\r\n fPointArr2[2] = fPoint;\r\n while (i < 3) {\r\n this.f1770n[i * 3] = fPointArr2[i].f3637x;\r\n this.f1770n[(i * 3) + 1] = fPointArr2[i].f3638y;\r\n this.f1770n[(i * 3) + 2] = 0.0f;\r\n i++;\r\n }\r\n this.f1771o = fPointArr2.length;\r\n } catch (Throwable th) {\r\n az.m3143a(th, \"ArcDelegateImp\", \"calMapFPoint\");\r\n th.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "private void vulKeuzeBordIn()\n {\n String[] lijstItems = dc.geefLijstItems();\n for (int i = 0; i < canvasKeuzeveld.length; i++)\n {\n for (int j = 0; j < canvasKeuzeveld[i].length; j++)\n {\n GraphicsContext gc = canvasKeuzeveld[i][j].getGraphicsContext2D();\n //checkImage(j + 1, gc);\n vulIn(lijstItems[j], gc);\n }\n }\n //dc.geefLijstItems();\n }", "private void aggiornaMappeColori(Scena scena) {\n\t\tMappaColori colori=creaMappaColoriCompleta(scena.getPersonaggiPrincipali());\n\t\t// pulisce l'elenco delle mappe di colori associate ad ogni\n\t\t// visualizzatore\n\t\taggiornaColori(colori);\n\t}", "public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "private void dibujarReina(Graphics g) {\n\t\tint x = (fila - 1) * 50 + 10;\r\n\t\tint y = (columna - 1) * 50 + 40;\r\n\t\tg.drawLine(x + 5, y + 45, x + 45, y + 45);\r\n\t\tg.drawLine(x + 5, y + 45, x + 5, y + 5);\r\n\t\tg.drawLine(x + 45, y + 45, x + 45, y + 5);\r\n\t\tg.drawLine(x + 5, y + 35, x + 45, y + 35);\r\n\t\tg.drawLine(x + 5, y + 5, x + 15, y + 20);\r\n\t\tg.drawLine(x + 15, y + 20, x + 25, y + 5);\r\n\t\tg.drawLine(x + 25, y + 5, x + 35, y + 20);\r\n\t\tg.drawLine(x + 35, y + 20, x + 45, y + 5);\r\n\t\tg.drawOval(x + 20, y + 20, 10, 10);\r\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public interface GarisLurus {\r\n \r\n public int hitungGradien();\r\n \r\n}", "public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }", "public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }" ]
[ "0.6526259", "0.6386853", "0.62343675", "0.6200429", "0.614401", "0.61264443", "0.6110727", "0.6109183", "0.61046684", "0.61019635", "0.60955584", "0.6079486", "0.60360134", "0.6030695", "0.6022511", "0.6014256", "0.60045534", "0.5996492", "0.59880406", "0.5978425", "0.59651524", "0.59622043", "0.5952708", "0.5951584", "0.5946111", "0.5942043", "0.590149", "0.585213", "0.5848859", "0.5831042", "0.5807562", "0.5805799", "0.57834494", "0.5775244", "0.57732594", "0.5770555", "0.5761216", "0.5740399", "0.5721604", "0.5707636", "0.570352", "0.57015574", "0.5693414", "0.56689745", "0.5667765", "0.5662326", "0.56596214", "0.5653752", "0.56532794", "0.5645018", "0.56433696", "0.5641584", "0.5641044", "0.5636841", "0.5634526", "0.5623913", "0.5621588", "0.5616529", "0.56097686", "0.5602834", "0.5596306", "0.55895406", "0.55879444", "0.5578444", "0.5572335", "0.557133", "0.55703086", "0.55565", "0.55560064", "0.55480444", "0.5544147", "0.5543722", "0.55374795", "0.5536787", "0.5534679", "0.55330724", "0.5527197", "0.55262595", "0.55239004", "0.55216956", "0.5518405", "0.5514455", "0.55144536", "0.55139583", "0.55110806", "0.5506175", "0.5505007", "0.54981524", "0.5497011", "0.54967046", "0.5494247", "0.5488594", "0.54862684", "0.548192", "0.5478008", "0.5477125", "0.5474354", "0.54727376", "0.5472447", "0.5471135", "0.546944" ]
0.0
-1
Creates a new Service request record in amenities_request table
@Override public ServiceRequest saveServiceRequest(ServiceRequest sr) throws SQLException { System.out.println("Saving service request..."); logger.info("Saving service request..."); Session session = sessionFactory.getCurrentSession(); try { session.save(sr); } catch (Exception ex) { System.out.println("Error encountered while saving Service request. " + ex.getMessage()); logger.error("Error encountered while saving Service request. " + ex.getMessage()); throw new SQLException("Error encountered while saving Service request. " + ex.getMessage()); } return sr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();", "private void insertServiceRequest() {\n Random rand = new Random();\r\n service_id = rand.nextInt(Integer.MAX_VALUE);\r\n int tokenSeed = rand.nextInt(Integer.MAX_VALUE);\r\n current_token = md5(tokenSeed + \"\");\r\n\r\n Calendar cal = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\r\n String fecha = sdf.format(cal.getTime());\r\n\r\n int deliver_state = 1;\r\n\r\n int costo = (int) Math.round(destinations.get(0).total_price);\r\n\r\n ArrayList<String> param = new ArrayList<>();\r\n param.add(service_id + \"\");\r\n param.add(current_token);\r\n param.add(fecha);\r\n param.add(deliver_state + \"\");\r\n param.add(id_cliente + \"\");\r\n param.add(costo + \"\");\r\n param.add(\"0\");\r\n RestClient.get().executeCommand(\"8\", param.toString(), new Callback<Response>() {\r\n @Override\r\n public void success(Response response, retrofit.client.Response response2) {\r\n\r\n insertRoutes();\r\n }\r\n\r\n @Override\r\n public void failure(RetrofitError error) {\r\n hideOverlay();\r\n showDialog(\r\n getResources().getString(\r\n R.string.msg_serverError_title),\r\n getResources().getString(\r\n R.string.msg_serverError), false, false);\r\n }\r\n });\r\n\r\n\r\n }", "@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }", "public RequestForQuotation addRequest(Set<Supplier> supplierList, Date deadline, int quantity, Item item){\n Date today = new Date();\n RequestForQuotation rfq = new RequestForQuotation();\n \n for(Supplier s:supplierList){\n s = em.find(Supplier.class, s.getSupplierId());\n\n rfq.getSuppliers().add(s);\n }\n \n rfq.setDeadline(new java.sql.Date(deadline.getTime()));\n rfq.setDateRequested(new java.sql.Date(today.getTime()));\n rfq.setStatus(\"Open\");\n rfq.setQuantity(quantity);\n rfq.setItem(item);\n em.persist(rfq);\n em.flush();\n \n return rfq;\n }", "@Override\n\tpublic void submitRequest(int empid,int manid, int reqamt) {\n\t\tint id = getRequestCount()+1;\n\t\tString expdate = \"26-APR-19\";\n\t\tString status = \"pending\";\n\t\tString decision = \"\";\n\t\t \n\t\ttry {\n\t\t\tString sql =\"INSERT INTO requests (request_id, employee_id, manager_id, request_amount, expense_date, status, decision) \" +\n \"VALUES (\" + id +\", '\" + empid + \"', '\" + manid + \"', '\" + reqamt + \"', '\" + expdate + \"', '\" + status + \"', '\" + decision + \"')\"; \n\t\t\tConnection connection = DBConnectionUtil.getConnection();\n\t\t\tStatement statement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(sql);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}", "SeatHold reserveSeats(Long requestId, String customerEmail);", "com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();", "RentalAgency createRentalAgency();", "public void addRequest(ArrayList<String> vacationDetails) {\n model.addRequest(vacationDetails);\n }", "public RentalResponse createReservation(RentalRequest argRequest) {\r\n\t\t\r\n\t\tRentalResponse response = service.processRequest(argRequest);\r\n\t\t\r\n\t\treturn response;\r\n\t\t\r\n\t}", "boolean createAcquest(Acquest acquest);", "public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }", "public RentalResponse createReservation(Reservation argRequest) {\r\n\t\t\r\n\t\tRentalResponse response = service.processRequest(argRequest);\r\n\t\t\r\n\t\treturn response;\r\n\t\t\r\n\t}", "public void addRequest(CustomerRequest request) {\n\n\t}", "@PostMapping(\"/attractions\")\n @Timed\n public ResponseEntity<Attraction> createAttraction(@RequestBody Attraction attraction) throws URISyntaxException {\n log.debug(\"REST request to save Attraction : {}\", attraction);\n if (attraction.getId() != null) {\n throw new BadRequestAlertException(\"A new attraction cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Attraction result = attractionRepository.save(attraction);\n return ResponseEntity.created(new URI(\"/api/attractions/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "private Request addRequest(Session session, long idPackage, Date receiveTime,\n Concentrator concentrator) {\n \n Request req = new Request(idPackage, receiveTime, concentrator, null);\n session.save(req);\n int idReq = ((BigInteger) session.createSQLQuery(\"SELECT LAST_INSERT_ID()\")\n .uniqueResult()).intValue();\n req.setIdRequest(idReq);\n return req;\n }", "ApplicantDetailsResponse addOrUpdateApplicant(AddApplicantRequest addApplicantRequest) throws ServiceException;", "CreateACLResult createACL(CreateACLRequest createACLRequest);", "private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}", "@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }", "@RequestMapping(method = RequestMethod.POST, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> createInventory(@Valid @RequestBody InventoryRequest inventoryRequest){\n Product product = productService.getProductById(inventoryRequest.getProductId());\n\n //Criando produto no estoque\n Inventory inventory = inventoryService.createInventoryItem(new Inventory(inventoryRequest.getAmount()));\n product.setInventory(inventory);\n inventory.setProduct(product);\n\n //Atualizando associações entre estoque e produto\n inventoryService.updateInventoryItem(inventory);\n\n return ResponseEntity.status(HttpStatus.CREATED).build();\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.servicedirectory.v1beta1.Service>\n createService(com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request);\n }", "public static boolean addSanitationRequest(SanitationRequest request) {\n\n // Get data from request\n String nodeID = request.getLocation().getNodeID();\n String priority = request.getPriority().name();\n String status = request.getStatus().name();\n String description = request.getDescription();\n Integer requesterID = request.getRequesterID();\n Timestamp requestTime = request.getRequestTime();\n Integer servicerID = request.getServicerID();\n Timestamp claimedTime = request.getClaimedTime();\n Timestamp completedTime = request.getCompletedTime();\n \n try {\n // Attempt to add request to database\n PreparedStatement statement = Database.getDatabase().getConnection().prepareStatement(\n \"INSERT INTO \" + Constants.SANITATION_TABLE +\n \" (nodeID, priority, status, description, requesterID, requestTime, servicerID, claimedTime, completedTime)\" +\n \" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)\"\n );\n statement.setString(1, nodeID);\n statement.setString(2, priority);\n statement.setString(3, status);\n statement.setString(4, description);\n statement.setInt(5, requesterID);\n statement.setTimestamp(6, requestTime);\n if (servicerID == null) statement.setNull(7, Types.INTEGER);\n else statement.setInt(7, servicerID);\n if (claimedTime == null) statement.setNull(8, Types.TIMESTAMP);\n else statement.setTimestamp(8, claimedTime);\n if (completedTime == null) statement.setNull(9, Types.TIMESTAMP);\n else statement.setTimestamp(9, completedTime);\n return statement.execute();\n\n } catch (SQLException exception) {\n\n // Print an exception message\n System.out.println(\"Sanitation Request (\" + description + \") could not be added.\");\n exception.printStackTrace();\n System.out.println();\n return false;\n }\n }", "public int addNewAmendment(Amendment amendment);", "public com.google.cloud.servicedirectory.v1beta1.Service createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateServiceMethod(), getCallOptions(), request);\n }", "public Long addRequest(RequestInfo bloodRequestorRequest){\n\t\tthis.requestId = bloodRequestorRequest.getRequestId();\n\t\tthis.bloodGroup = bloodRequestorRequest.getBloodGroup() != null ? bloodRequestorRequest.getBloodGroup().toLowerCase() : null;\n\t\tthis.patientName = bloodRequestorRequest.getPatientName();\n\t\tthis.hospital = bloodRequestorRequest.getHospital();\n\t\tthis.city = bloodRequestorRequest.getCity() != null ? bloodRequestorRequest.getCity().toLowerCase() : null;\n\t\tthis.contactPerson = bloodRequestorRequest.getContactPerson();\n\t\tthis.contactNumber = bloodRequestorRequest.getContactNumber();\n\t\tthis.requestDate = bloodRequestorRequest.getRequestDate();\n\t\tthis.status = bloodRequestorRequest.getStatus();\n\t\tthis.locality = bloodRequestorRequest.getLocality() != null ? bloodRequestorRequest.getLocality().toLowerCase() : null;\n\t\tthis.bloodUnits = bloodRequestorRequest.getBloodUnits();\n\t\t\n\t\tKey<BloodRequest> result = getService().put(this);\n\t\treturn result.getId();\n\t\t\n\t}", "public long createRequest(Request _request) throws RequestManagerException, PersistenceResourceAccessException;", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "private void createRequestExpense() {\n ExpensesRequest expensesRequestSuperCLass = new ExpensesRequest();\n ArrayList<ExpensesRequest.ExpenseList> expenseLists = new ArrayList<>();\n ExpensesRequest.ExpenseList expensesRequest = new ExpensesRequest().new ExpenseList();\n expensesRequest.setAmount(edittextExpesneAmount.getText().toString());\n expensesRequest.setClientId(Utility.getInstance().getclientRegId(mContext));\n String currentDate = edittextExpenseDate.getText().toString();\n String currentTime = new SimpleDateFormat(\"HH:mm\", Locale.getDefault()).format(new Date());\n Date date = null;\n try {\n date = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").parse(currentDate + \" \" + currentTime);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String expeId = \"\";\n expensesRequest.setExpendDate(date);\n expensesRequest.setExpenditureId(expeId);\n transactionIdToast = expeId;\n expensesRequest.setTransactionId(expeId);\n expensesRequest.setPurpose(edittextExpensePurpose.getText().toString());\n expensesRequest.setExpenseType(edittextExpenseName.getText().toString());\n expenseLists.add(expensesRequest);\n expensesRequestSuperCLass.setRegId(Utility.getInstance().getclientRegId(mContext));\n expensesRequestSuperCLass.setExpenseListArrayList(expenseLists);\n if (Utility.getInstance().isOnline(mContext)) {\n boolean valueStatus = validateExpense();\n if (valueStatus) {\n Utility.getInstance().showProgressDialogue(mContext);\n mPresenter.postExpense(expensesRequestSuperCLass, 1);\n }\n edittextExpenseName.setText(\"\");\n edittextExpesneAmount.setText(\"\");\n edittextExpensePurpose.setText(\"\");\n }\n }", "@PostMapping(\"/sys-appointments\")\n @Timed\n public ResponseEntity<SysAppointment> createSysAppointment(@RequestBody SysAppointment sysAppointment) throws URISyntaxException {\n log.debug(\"REST request to save SysAppointment : {}\", sysAppointment);\n if (sysAppointment.getId() != null) {\n throw new BadRequestAlertException(\"A new sysAppointment cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SysAppointment result = sysAppointmentService.save(sysAppointment);\n return ResponseEntity.created(new URI(\"/api/sys-appointments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@PostMapping(\"/estate-agencies\")\n @Timed\n public ResponseEntity<EstateAgencyDTO> createEstateAgency(@RequestBody EstateAgencyDTO estateAgencyDTO) throws URISyntaxException {\n log.debug(\"REST request to save EstateAgency : {}\", estateAgencyDTO);\n if (estateAgencyDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new estateAgency cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n EstateAgencyDTO result = estateAgencyService.save(estateAgencyDTO);\n return ResponseEntity.created(new URI(\"/api/estate-agencies/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}", "public CreateServiceRequest withRole(String role) {\n setRole(role);\n return this;\n }", "@RequestMapping(value = \"insert\", method = RequestMethod.POST)\r\n\tpublic String insert(HttpServletRequest request) {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tint marks = Integer.parseInt(request.getParameter(\"marks\"));\r\n\t\t// Create the student\r\n\t\tStudent student = new Student(id, name,marks);\r\n\t\tSystem.out.println(student);\r\n\t\t// insert student to db\r\n\r\n\t\tString res = studentService.insert(student);\r\n\r\n\t\tif (res.equals(\"SUCCESS\"))\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Inserted\");\r\n\t\telse\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Not Inserted\");\r\n\t\treturn \"insert\";\r\n\t}", "@Action( ACTION_CREATE_FEATURE )\r\n public String doCreateFeature( HttpServletRequest request )\r\n {\r\n populate( _feature, request );\r\n\r\n // Check constraints\r\n if ( !validateBean( _feature, VALIDATION_ATTRIBUTES_PREFIX ) )\r\n {\r\n return redirectView( request, VIEW_CREATE_FEATURE );\r\n }\r\n\r\n FeatureHome.create( _feature );\r\n addInfo( INFO_FEATURE_CREATED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }", "@PostMapping(\"/add\")\n public EmptyResponse create(@Valid @RequestBody DiscountAddRequest request){\n discountAddService.createNewDiscount(request);\n\n return new EmptyResponse();\n }", "public void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateServiceMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;", "public boolean addRequest(int requestId) throws Exception{\n return true;\n }", "@RequestMapping(value=\"/add\", method = RequestMethod.POST)\r\n public void addAction(@RequestBody Reservation reservation){\n reservationService.create(reservation);\r\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity, String scheduleDate, int type){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tcv.put(SCHEDULE_DATE, scheduleDate);\n\t\t\tcv.put(SERVICE_TYPE, type);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@ApiMethod(name = \"insertRequest\")\n public Request insertRequest(Request request) throws ConflictException {\n//If if is not null, then check if it exists. If yes, throw an Exception\n//that it is already present\n//Since our @Id field is a Long, Objectify will generate a unique value for us\n//when we use put\n ofy().save().entity(request).now();\n return request;\n }", "@Transactional\r\n\tpublic void addFundRequest(final FundRequestDto fundRequestDto) throws ServiceException {\r\n\r\n\t\ttry {\r\n\t\t\tFundRequest fundRequest = new FundRequest();\r\n\r\n\t\t\tfundRequest.setCategoryId(fundRequestDto.getCategoryId());\r\n\t\t\tfundRequest.setRequestedBy(fundRequestDto.getRequestedBy());\r\n\t\t\tfundRequest.setFundNeeded(fundRequestDto.getFundNeeded());\r\n\t\t\tfundRequest.setDescription(fundRequestDto.getDescription());\r\n\t\t\tfundRequest.setTitle(fundRequestDto.getTitle());\r\n\r\n\t\t\tFundRequest fundResp = fundRequestRepo.findById(fundRequestDto.getCategoryId());\r\n\t\t\tif (fundResp == null) {\r\n\t\t\t\tfundRequestValidation.fundRequestValidator(fundRequest);\r\n\r\n\t\t\t\tfundRequest.setActive(true);\r\n\t\t\t\tfundRequest.setCreatedDate(LocalDateTime.now());\r\n\t\t\t\tfundRequest.setModifiedDate(LocalDateTime.now());\r\n\r\n\t\t\t\tfundRequestRepo.save(fundRequest);\r\n\t\t\t\t// Mail service\r\n\t\t\t\tMailDto mailDTO = new MailDto();\r\n\t\t\t\tUserDTO user = userService.getUser(fundRequestDto.getRequestedBy());\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\tmailDTO.setName(user.getName());\r\n\t\t\t\t\tmailDTO.setEmailId(user.getEmail());\r\n\t\t\t\t}\r\n\t\t\t\tmailDTO.setTitle(fundRequestDto.getTitle());\r\n\t\t\t\tmailDTO.setDescription(fundRequestDto.getDescription());\r\n\t\t\t\tmailDTO.setAmount(fundRequestDto.getFundNeeded());\r\n\t\t\t\t// Category service\r\n\t\t\t\tCategoryDTO categoryDTO = categoryService.getFund(fundRequest.getCategoryId());\r\n\t\t\t\tif (categoryDTO != null) {\r\n\t\t\t\t\tfundRequestDto.setCategoryName(categoryDTO.getCategoryName());\r\n\t\t\t\t}\r\n\t\t\t\tmailDTO.setCategoryName(fundRequestDto.getCategoryName());\r\n\t\t\t\tmailService.sendMail(mailDTO);\r\n\r\n\t\t\t\tRequestorTransaction requestorTransaction = new RequestorTransaction();\r\n\t\t\t\trequestorTransaction.setStatus(\"Verified\");\r\n\t\t\t\trequestorTransaction.setActive(true);\r\n\t\t\t\trequestorTransaction.setCreatedDate(LocalDateTime.now());\r\n\t\t\t\trequestorTransaction.setModifiedDate(LocalDateTime.now());\r\n\t\t\t\trequestorTransaction.setCategoryId(fundRequest.getCategoryId());\r\n\t\t\t\trequestorTransaction.setFundNeeded(fundRequest.getFundNeeded());\r\n\t\t\t\trequestorTransaction.setRequestedBy(fundRequest.getRequestedBy());\r\n\t\t\t\trequestorTransactionRepo.save(requestorTransaction);\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\r\n\t\t\t\tthrow new ServiceException(MessageConstant.FUND_REQUEST_ADDITION);\r\n\r\n\t\t\t}\r\n\t\t} catch (ValidatorException e) {\r\n\t\t\tthrow new ServiceException(e.getMessage());\r\n\r\n\t\t}\r\n\r\n\t}", "@PostMapping(\"/api/students\")\n public ResponseEntity createOrUpdateStudent(@RequestBody StudentDto studentRequest) {\n this.studentService.createOrUpdateStudent(studentRequest);\n return ResponseEntity.ok().build();\n }", "@PostMapping(\"/approver/_create\")\n\tpublic ResponseEntity<?> createOsbmApprover(@RequestBody OsbmApproverRequest osbmApproverRequest) {\n\n\t\tOsbmApproverModel osbmModel = osbmApproverService.createOsbmApprover(osbmApproverRequest);\n\n\t\tResponseModel rs = new ResponseModel();\n\t\trs.setStatus(\"200\");\n\t\trs.setMessage(\"Data submitted in osbm table\");\n\t\trs.setData(osbmModel);\n\t\treturn ResponseEntity.ok(rs);\n\n\t}", "@Deprecated\n public Request createRequestEntity(Request request) throws RequestCreationException;", "private void addRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "int insert(RoleSystemauthority record);", "@CustomAnnotation(value = \"INSERT_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity\",\n\t\t\tmethod=RequestMethod.PUT,\n\t\t\tconsumes=MediaType.APPLICATION_JSON_VALUE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> createActivity(@RequestBody Activity newActivity, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.create(newActivity), HttpStatus.OK);\n\t}", "private Response processServiceInstanceRequest(Allocate3gppService request, Action action, String version,\n String requestId, HashMap<String, String> instanceIdMap, String requestUri) throws ApiException {\n String defaultServiceModelName = \"COMMON_SS_DEFAULT\";\n String requestScope = ModelType.service.name();\n String apiVersion = version.substring(1);\n String serviceRequestJson = toString.apply(request);\n if (serviceRequestJson != null) {\n InfraActiveRequests currentActiveReq = createRequestObject(request, action, requestId, Status.IN_PROGRESS,\n requestScope, serviceRequestJson);\n String instanceName = request.getName();\n requestHandlerUtils.checkForDuplicateRequests(action, instanceIdMap, requestScope, currentActiveReq,\n instanceName);\n try {\n requestsDbClient.save(currentActiveReq);\n } catch (Exception e) {\n logger.error(\"Exception occurred\", e);\n ErrorLoggerInfo errorLoggerInfo =\n new ErrorLoggerInfo.Builder(MessageEnum.APIH_DB_ACCESS_EXC, ErrorCode.DataError)\n .errorSource(Constants.MSO_PROP_APIHANDLER_INFRA).build();\n throw new RequestDbFailureException.Builder(SAVE_TO_DB, e.toString(),\n HttpStatus.SC_INTERNAL_SERVER_ERROR, ErrorNumbers.SVC_DETAILED_SERVICE_ERROR).cause(e)\n .errorInfo(errorLoggerInfo).build();\n }\n\n RecipeLookupResult recipeLookupResult;\n try {\n recipeLookupResult =\n getServiceInstanceOrchestrationURI(request.getModelUuid(), action, defaultServiceModelName);\n } catch (Exception e) {\n logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ACCESS_EXC.toString(), MSO_PROP_APIHANDLER_INFRA,\n ErrorCode.AvailabilityError.getValue(), \"Exception while communciate with Catalog DB\", e);\n Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND,\n MsoException.ServiceException, \"No communication to catalog DB \" + e.getMessage(),\n ErrorNumbers.SVC_NO_SERVER_RESOURCES, null, version);\n logger.debug(END_OF_THE_TRANSACTION + response.getEntity());\n return response;\n }\n\n if (recipeLookupResult == null) {\n logger.error(LoggingAnchor.FOUR, MessageEnum.APIH_DB_ATTRIBUTE_NOT_FOUND.toString(),\n MSO_PROP_APIHANDLER_INFRA, ErrorCode.DataError.getValue(), \"No recipe found in DB\");\n Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_NOT_FOUND,\n MsoException.ServiceException, \"Recipe does not exist in catalog DB\",\n ErrorNumbers.SVC_GENERAL_SERVICE_ERROR, null, version);\n logger.debug(END_OF_THE_TRANSACTION + response.getEntity());\n return response;\n }\n\n String serviceInstanceType = request.getSubscriptionServiceType();\n RequestClientParameter parameter;\n try {\n parameter = new RequestClientParameter.Builder().setRequestId(requestId).setBaseVfModule(false)\n .setRecipeTimeout(recipeLookupResult.getRecipeTimeout()).setRequestAction(action.name())\n .setServiceInstanceId(null).setServiceType(serviceInstanceType)\n .setRequestDetails(serviceRequestJson).setApiVersion(version).setALaCarte(false)\n .setRecipeParamXsd(recipeLookupResult.getRecipeParamXsd()).setApiVersion(apiVersion).build();\n } catch (Exception e) {\n logger.error(\"Exception occurred\", e);\n ErrorLoggerInfo errorLoggerInfo =\n new ErrorLoggerInfo.Builder(MessageEnum.APIH_BPEL_RESPONSE_ERROR, ErrorCode.SchemaError)\n .errorSource(Constants.MSO_PROP_APIHANDLER_INFRA).build();\n throw new ValidateException.Builder(\"Unable to generate RequestClientParamter object\" + e.getMessage(),\n HttpStatus.SC_INTERNAL_SERVER_ERROR, ErrorNumbers.SVC_BAD_PARAMETER).errorInfo(errorLoggerInfo)\n .build();\n }\n return postBPELRequest(currentActiveReq, parameter, recipeLookupResult.getOrchestrationURI(), requestScope);\n } else {\n Response response = msoRequest.buildServiceErrorResponse(HttpStatus.SC_INTERNAL_SERVER_ERROR,\n MsoException.ServiceException, \"JsonProcessingException occurred - serviceRequestJson is null\",\n ErrorNumbers.SVC_BAD_PARAMETER, null, version);\n return response;\n }\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate){\n\t\treturn addRecord(communityMemberId,serviceId,serviceDate,0);//TODO: id change\n\n\t}", "@RequestMapping(value = \"/apply\", method = RequestMethod.POST)\n @Transactional\n public Applicant postLoan(@RequestBody CreateLoanRequest request){\n\n\n Applicant applicant= new Applicant();\n\n applicant.setSSNNumber(request.getApplicantSSN());\n applicant.setFirstName(request.getApplicantfirstName());\n applicant.setMiddleName(request.getApplicantmiddleName());\n applicant.setLastName(request.getApplicantlastName());\n applicant.setDateofBirth(Date.valueOf(request.getApplicantdob()));\n applicant.setDateSubmitted(Date.valueOf(LocalDate.now()));\n applicant.setMaritalStatus(request.getApplicantmaritalStatus());\n applicant.setAddressLine1(request.getApplicantaddrLine1());\n applicant.setAddressLine2(request.getApplicantaddrLine2());\n applicant.setCity(request.getApplicantcity());\n applicant.setState(request.getApplicantstate());\n applicant.setPostalCode(request.getApplicantpostalCode());\n applicant.setDescription(request.getApplicantdescription());\n applicant.setLoanAmount(request.getApplicantloanAmount());\n applicant.setLoanPurpose(request.getApplicantloanPurpose());\n applicant.setAnnualSalary(request.getApplicantAnnualSalary());\n applicant.setEmployername(request.getApplicantEmployerName());\n applicant.setEmployerAddress1(request.getApplicantEmployerAddr1());\n applicant.setEmployerAddress2(request.getApplicantEmployerAddr2());\n applicant.setEmployerCity(request.getApplicantEmployerCity());\n applicant.setEmployerState(request.getApplicantEmployerState());\n applicant.setEmployerPostalCode(request.getApplicantEmployerPostalCode());\n applicant.setDesignation(request.getApplicantdesignation());\n applicant.setHomePhone(request.getApplicanthomePhone());\n applicant.setOfficePhone(request.getApplicantofficePhone());\n applicant.setMobile(request.getApplicantmobile());\n applicant.setEmailAddress(request.getApplicantemail());\n applicant.setWorkExperienceMonth(request.getApplicantWorkExperienceMonth());\n applicant.setWorkExperienceYears(request.getApplicantWorkExperienceYears());\n\n applicant.setApplicationStatus(\"In Progress\");\n applicant.setScore(\"-\");\n applicant.setDeclineReason(\"In Progress\");\n\n Applicant applicant1=applicantService.createApplicant(applicant);\n\n boolean valid=TRUE;\n\n LocalDate l = applicant.getDateofBirth().toLocalDate(); //specify year, month, date directly\n LocalDate now = LocalDate.now(); //gets localDate Period\n Period diff = Period.between(l, now); //difference between the dates is calculated\n\n if(applicant.getAnnualSalary()<10000){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Salary is less than $10000\");\n }\n else if(diff.getYears()<18||diff.getYears()>65) {\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Age not Age Group in 18-65\");\n }\n else if(applicant.getWorkExperienceYears()<1&&applicant.getWorkExperienceMonth()<6){\n valid=FALSE;\n applicant.setDeclineReason(\"Declined at FrontEnd - Work Experience is less than 6 months\");\n }\n\n int score=0;\n\n if(valid){\n score=applicantService.calculateScore(applicant);\n applicant.setScore(String.valueOf(score));\n if(score>10){ //threshold is 10 randomly, to be calculated by prasanna\n applicant.setApplicationStatus(\"Approved\");\n applicant.setDeclineReason(\"-\");\n }\n else{\n applicant.setApplicationStatus(\"Declined\");\n\n applicant.setDeclineReason(\" \"); //prassanna take\n }\n }\n else{\n applicant.setScore(\"0\");\n applicant.setApplicationStatus(\"Declined\");\n applicant.setDeclineReason(\"Validations Failed\");\n }\n\n applicantService.updateApplicant(applicant1);\n\n return null;\n }", "@Override\n public void addNews(String request) throws ServiceException {\n try {\n dbWorker.addItem(request);\n } catch (DAOException e) {\n throw new ServiceException(e.getMessage());\n }\n\n }", "Shipment createShipment();", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strDate=dateFormat.format(serviceDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strDate,quantity);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity,Date scheduleDate,int type){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strServiceDate=dateFormat.format(serviceDate);\n\t\t\tString strScheduleDate=dateFormat.format(scheduleDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strServiceDate,quantity,strScheduleDate,type);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "private static final void addNewAttraction()\r\n { \r\n String attractionID;\r\n String description;\r\n double admissionFee;\r\n boolean duplicateID = false;\r\n \r\n System.out.println(\"Add New Attraction Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Attraction ID: \");\r\n attractionID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Attraction Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n System.out.println();\r\n \r\n // check attractionID with other ID's already in the system\r\n // if duplicate found print error, if no duplicate add object to array\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(attractionID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n } \r\n\r\n if(duplicateID == false)\r\n {\r\n attractionList[attractionCount] = new Attraction(attractionID, description, admissionFee);\r\n attractionCount++;\r\n }\r\n }", "@RequestMapping(value = \"/completeReservation\", method = RequestMethod.POST)\r\n public String completeReservation(ReservationRequest request,ModelMap modelMap){\n Reservation reservation= reservationService.bookFlight(request);\r\n modelMap.addAttribute(\"msg\",\"Resevation created succesfully and id is \"+reservation.getId());\r\n\r\n return \"reservation Confirmed\";\r\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity, String scheduleDate){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tcv.put(SCHEDULE_DATE, scheduleDate);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity,Date scheduleDate){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strServiceDate=dateFormat.format(serviceDate);\n\t\t\tString strScheduleDate=dateFormat.format(scheduleDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strServiceDate,quantity,strScheduleDate);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}", "@RequestMapping(value = \"/acl_presencerequests\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Presencerequest> createPresencerequest(@RequestBody Communicativeaction communicativeaction) throws URISyntaxException {\n communicativeaction.setActionTime(new DateTime());\n communicativeactionRepository.save(communicativeaction);\n String [] presenceReqInfo = communicativeaction.getContent().split(\",\");\n DateTime time = new DateTime();\n Presencestatus presenceStatus = null;\n Agent agent = communicativeaction.getAction_sender();\n for(String info : presenceReqInfo){\n String [] presencePair = info.split(\":\");\n switch(presencePair[0]){\n case \"presenceStatus\":{\n presenceStatus = presencestatusRepository.findByPresenceStatusName(presencePair[1]);\n break;\n }\n }\n }\n if(presenceStatus != null){\n Presencerequest presence = new Presencerequest(presenceStatus, time, agent);\n Presencerequest result = presencerequestRepository.save(presence);\n return ResponseEntity.created(new URI(\"/api/presencerequests/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"presencerequest\", result.getId().toString()))\n .body(result);\n }\n return ResponseEntity.created(new URI(\"/api/presencerequests/\"))\n .headers(HeaderUtil.createEntityCreationAlert(\"Failure\", \"Not a valid presence request status\"))\n .body(null);\n }", "@Override\r\n public void create(Appointment a) throws SQLException {\r\n\r\n String statement =\r\n \"INSERT INTO appointments (Appointment_ID, Title, Description, Location, Type, Start, End, Customer_ID, User_ID, Contact_ID) VALUES (\" +\r\n a.getAppointmentId() + \",'\" +\r\n a.getTitle() + \"','\" +\r\n a.getDescription() + \"','\" +\r\n a.getLocation() + \"','\" +\r\n a.getType() + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"',\" +\r\n a.getCustomer().getCustomerId() + \",\" +\r\n a.getUser().getId() + \",\" +\r\n a.getContact().getId() + \");\";\r\n\r\n //System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "@Test\n\tpublic void insertTradeRequest() {\n\t\t\n\t\tDBI dbi = TEST_ENVIRONMENT.getDbi();\n\t\tTradeDao tradeDao = dbi.onDemand(TradeDao.class);\n\t\t\n\t\tString collectionId = \"1\";\n\t\tString itemId = \"1\";\n\t\tString itemAmount = \"1\";\n\t\tTrade insertedTrade = new Trade(collectionId, itemId, itemAmount);\n\t\t\n\t\ttradeDao.insert(insertedTrade);\n\t\t\n\t\tint expectedSize = 1;\n\t\t\n\t\tList<Trade> allTrades = tradeDao.getAll();\n\t\t\n\t\tint actualSize = allTrades.size();\n\t\t\n\t\tAssert.assertEquals(\"Trade table should have 1 trade\", expectedSize, actualSize);\n\t\t\n\t\tSet<String> insertedTradeRequest = new HashSet<String>();\n\t\tDBI dbi1 = TEST_ENVIRONMENT.getDbi();\n\t\tTradeRequestDao tradeRequestDao = dbi1.onDemand(TradeRequestDao.class);\n\t\t\n\t\tString offeredCollectionId = \"1\";\n\t\tString userId = \"1\";\n\t\tString requestId = \"1\";\n\t\tTradeRequest insertedRequest = new TradeRequest(offeredCollectionId, \n\t\t\t\tuserId);\n\t\t\n\t\tinsertedRequest = insertedRequest.setRequestId(requestId);\n\t\t\n\t\ttradeRequestDao.insert(insertedRequest);\n\t\t\n\t\tint expectedSize1 = 1;\n\t\t\n\t\tList<TradeRequest> allTrades1 = tradeRequestDao.getAll();\n\t\t\n\t\tint actualSize1 = allTrades1.size();\n\t\t\n\t\tAssert.assertEquals(\"Trade Request table should have 1 Request made\", expectedSize1, actualSize1);\n\t\t\n\t}", "public ResponseEntity<ApiMessageResponse> createDepartment(DepartmentRequest departmentRequest) {\n //Creating a new object of department model to save on database\n DepartmentModel departmentModel = new DepartmentModel(0L, departmentRequest.getName(), departmentRequest.getActive());\n\n departmentRepository.save(departmentModel); //Saving in database\n\n return new ResponseEntity<>(new ApiMessageResponse(201, \"Department Created\"), HttpStatus.CREATED);\n }", "com.exacttarget.wsdl.partnerapi.QueryRequestMsgDocument.QueryRequestMsg addNewQueryRequestMsg();", "@GetMapping(\"/createorders\")\n\tpublic void generateOrderRequest(){\n\t\tSystem.out.println(\" == generateOrderRequest == \");\n\t\tfor(int i=0;i<150;i++) {\n\t\t\t// create new order\n\t\t\tOrderRequest order = new OrderRequest();\n\t\t\torder.setOrderReqId(\n\t\t\t\t\tInteger.parseInt(new RandomStringGenerator.Builder().withinRange('1', '9').build().generate(5))\n\t\t\t\t\t);\n\t\t\torder.setName(new RandomStringGenerator.Builder().withinRange('a', 'z').build().generate(5));\n\t\t\t// create status row for this order\n\t\t\tOrderRequestStatus orderStatus = new OrderRequestStatus();\n\t\t\torderStatus.setStatus(\"new\");\n\t\t\torderStatus.setOrderRequest(order);\n\t\t\torderStateRepository.save(orderStatus);\n\t\t}\n\t}", "public int createAppointment(Appointment appointment) {\n\t\treturn 0;\r\n\t}", "public void addRequest(Request req) {\n\n }", "@Override\n public Lesson create(Long memberId, LessonRequest request) throws Exception {\n // find Instructor with memberId,\n Optional<Instructor> instr = instructorService.findInstructorById(memberId);\n // then create Lesson with given info from lessonRequest\n Lesson lesson = new Lesson();\n lesson.setInstructor(instr.get());\n lesson.setDescription(request.getDescription());\n lesson.setStartTime(request.getStartTime());\n lesson.setEndTime(request.getEndTime());\n lesson.setStatus(\"OPEN\");\n\n LessonTime.checkIfStartTimeIsFirst(lesson.getStartTime(),lesson.getEndTime());\n // LessonTime lessonTime = new LessonTime();\n lessonTime.checkOverlapBetweenLessons(lesson.getEndTime(),lesson.getStartTime(),lesson.getInstructor());\n\n // persist into DB -> go via LessonRepository\n return lessonRepository.save(lesson);\n\n }", "@PostMapping(\"/AddEmployee\")\r\n public Serializable addStudentService(@RequestBody Employee employee) {\r\n return admin.addEmployeeService(employee);\r\n }", "void addReservation(ReservationDto reservationDto) ;", "@RequestMapping(value = \"/presencerequests\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Presencerequest> createPresencerequest(@RequestBody Presencerequest presencerequest) throws URISyntaxException {\n log.debug(\"REST request to save Presencerequest : {}\", presencerequest);\n if (presencerequest.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new presencerequest cannot already have an ID\").body(null);\n }\n Presencerequest result = presencerequestRepository.save(presencerequest);\n return ResponseEntity.created(new URI(\"/api/presencerequests/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"presencerequest\", result.getId().toString()))\n .body(result);\n }", "@RequestMapping(value = \"/createReservation.htm\", method = RequestMethod.POST)\n\tpublic ModelAndView createReservation(HttpServletRequest request) {\n\t\tModelAndView modelAndView = new ModelAndView();\t\n\t\t\n\t\tif(request.getSession().getAttribute(\"userId\") != null){\n\t\t\n\t\t\t\n\t\t\tBank bank = bankDao.retrieveBank(Integer.parseInt(request.getParameter(\"bankId\")));\t\t\n\t\t\tUser user = userDao.retrieveUser(Integer.parseInt(request.getParameter(\"id\")));\n\t\t\t\n\t\t\t\n\t\t\tNotes notes5 = noteskDao.retrieveNotes(500);\n\t\t\tNotes notes10 = noteskDao.retrieveNotes(1000);\n\t\t\t\n\t\t\tint quantity5 = Integer.parseInt(request.getParameter(\"five\"));\n\t\t\tint quantity10 = Integer.parseInt(request.getParameter(\"thousand\"));\n\t\t\t\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId5 = new ReservationDetailsId();\n\t\t\treservationDetailsId5.setNotesId(notes5.getId());\n\t\t\treservationDetailsId5.setQuantity(quantity5);\n\t\t\t\n\t\t\tReservationDetailsId reservationDetailsId10 = new ReservationDetailsId();\n\t\t\treservationDetailsId10.setNotesId(notes10.getId());\n\t\t\treservationDetailsId10.setQuantity(quantity10);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails5= new ReservationDetails();\n\t\t\treservationDetails5.setId(reservationDetailsId5);\n\t\t\t\n\t\t\t\n\t\t\tReservationDetails reservationDetails10= new ReservationDetails();\n\t\t\treservationDetails10.setId(reservationDetailsId10);\n\t\t\t\n\t\t\t\n\t\t\tReservation reservation = new Reservation();\t\n\t\t\treservation.setBank(bank);\n\t\t\treservation.setDate(request.getParameter(\"date\"));\n\t\t\treservation.setTimeslot(request.getParameter(\"timeslot\"));\n\t\t\treservation.setUser(user);\n\t\t\treservation.setStatus(\"incomplete\");\n\t\t\treservation.getReservationDetailses().add(reservationDetails5);\n\t\t\treservation.getReservationDetailses().add(reservationDetails10);\n\t\t\t\n\t\t\tuser.getResevations().add(reservation);\n\t\t\tuserDao.createUser(user);\n\t\t\t\n\t\t\t\n\t\t\treservationDAO.createReservation(reservation);\n\t\t\treservationDetails5.setResevation(reservation);\n\t\t\treservationDetails10.setResevation(reservation);\n\t\t\t\n\t\t\treservationDetailsId10.setResevationId(reservation.getId());\n\t\t\treservationDetailsId5.setResevationId(reservation.getId());\n\t\t\t\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails5);\n\t\t\treservationDetailsDAO.createReservationDetails(reservationDetails10);\n\t\t\t\n\t\t\tmodelAndView.setViewName(\"result_reservation\");\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmodelAndView.setViewName(\"login\");\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\treturn modelAndView;\n\t}", "@RequestMapping(value = \"/rest/accesss\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody Access access) {\n log.debug(\"REST request to save Access : {}\", access);\n accessRepository.save(access);\n }", "private PendingIntent createRequestPendingIntent() {\n\n // If the PendingIntent already exists\n if (null != geofenceRequestIntent) {\n\n // Return the existing intent\n return geofenceRequestIntent;\n\n // If no PendingIntent exists\n } else {\n\n // Create an Intent pointing to the IntentService\n // TODO correct service?\n Intent intent = new Intent(activity, ReceiveTransitionsIntentService.class);\n /*\n * Return a PendingIntent to start the IntentService.\n * Always create a PendingIntent sent to Location Services\n * with FLAG_UPDATE_CURRENT, so that sending the PendingIntent\n * again updates the original. Otherwise, Location Services\n * can't match the PendingIntent to requests made with it.\n */\n return PendingIntent.getService(\n activity,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }\n }", "void create(Authority authority) throws ExTrackDAOException;", "@ResponseStatus(HttpStatus.CREATED)\n\t@RequestMapping(value = \"\", method = RequestMethod.POST)\n\tpublic FriendsList createRequest(@Valid @RequestBody NewFriendRequestDTO friendRequestDTO, Principal principal) {\n\t\tFriendsList friendsList = buildRequestFromRequestDTO(friendRequestDTO);\n\t\t\n\t\tfriendsList = friendListDAO.newRequest(friendsList);\n\t\tif(friendsList.isApproved()) {\n\t\t\treturn friendsList;\n\t\t}\n\t\treturn friendsList;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability insertNewAddressHistory(int i);", "default void createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateServiceMethod(), responseObserver);\n }", "void add(CallRecordAddReqDto req);", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate){\n\t\treturn addRecord(communityMemberId,serviceId,serviceDate,0);\n\n\t}", "ShipmentAttribute createShipmentAttribute();", "@Override\n public ResponseEntity createEmployee(@Valid Employee employeeRequest) {\n Employee savedemployee = employeeService.create(employeeRequest);\n URI location= ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(savedemployee.getId()).toUri();\n return ResponseEntity.created(location).build();\n\n }", "NominatedStudentDto create(NominatedStudentDto nominatedStudent, int userId, String userRole);", "void create(Student entity);", "public de.fraunhofer.fokus.movepla.model.Entitlement create(\n long entitlementId);", "@PostMapping(\"applicant\")\n public Applicant newApplicant(@RequestBody ApplicantDto applicantDto) {\n return applicantService.save(applicantDto);\n }", "public void addTradeRequest(TradeRequest request){\n tradeRequests.add(request);\n }", "@PostMapping(\"/addAgence\")\r\n public Agence createAgence(@Valid @RequestBody Agence agence) {\r\n return agenceRepository.save(agence);\r\n }", "@Override\r\n\tpublic int createAdvertisement(AdvertisementDto dto) {\n\t\treturn session.insert(\"kdc.advertisement.createAdvertisement\", dto);\r\n\t}", "@Operation(httpMethods = \"POST\", path = \"/{userId}/{skill}\")\n public Future<?> addSkill(final SocialRequestItem request) throws ProtocolException {\n final SecurityToken token = request.getToken();\n\n final Set<UserId> userIds = request.getUsers();\n final UserId userId = userIds.iterator().next();\n\n final String skill = request.getParameter(\"skill\");\n final Future<?> result = this.fSkillSPI.addSkill(userId, skill, token);\n\n return result;\n }", "AchievementModel createAchievementModel(AchievementModel achievementModel);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();", "@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@PostMapping(\"/employee\")\r\n\tpublic Employee createEmployee(@RequestBody Employee emp)\r\n\t{\r\n\t\treturn empdao.save(emp);\t\r\n\t}", "CreateCategoryResponse createCategory(CreateCategoryRequest request);", "public CsclAppointeeMaster create(long id_);" ]
[ "0.6263311", "0.5895725", "0.5754097", "0.5665098", "0.55534965", "0.5548075", "0.54070514", "0.53909403", "0.53535205", "0.53322166", "0.5299456", "0.52944136", "0.5286775", "0.5270824", "0.5223301", "0.5214159", "0.51913136", "0.51816255", "0.5177727", "0.51636976", "0.5148448", "0.514335", "0.5142343", "0.5137328", "0.513224", "0.5126089", "0.5124743", "0.5123802", "0.5095231", "0.50800127", "0.50616026", "0.5049069", "0.5044504", "0.5014088", "0.4996148", "0.4974102", "0.49718982", "0.49687454", "0.4959411", "0.49560148", "0.49521458", "0.49518788", "0.49401203", "0.49289262", "0.4926387", "0.49238634", "0.4923339", "0.49116498", "0.48894116", "0.48893484", "0.4884935", "0.48827165", "0.48791268", "0.48778108", "0.48761737", "0.4866457", "0.4858236", "0.48571962", "0.48562005", "0.48516646", "0.48511577", "0.48507214", "0.48506963", "0.48488516", "0.483339", "0.48309112", "0.48237383", "0.4823389", "0.48203984", "0.481759", "0.4816595", "0.48145744", "0.48138678", "0.48071158", "0.4790866", "0.47875774", "0.47859704", "0.47854114", "0.47705346", "0.4770067", "0.47673598", "0.4766891", "0.47585067", "0.4751895", "0.4750684", "0.47493443", "0.47443533", "0.47438043", "0.47434407", "0.47414592", "0.4737715", "0.47349265", "0.47307166", "0.47219026", "0.4721863", "0.47211385", "0.47185218", "0.47176656", "0.4708432", "0.47045675" ]
0.51680815
19
Get service requests by STATUS (used by admin home in loading NEW service requests)
@SuppressWarnings("unchecked") public List<ServiceBean> getServiceRequestsByStatus(List<String> statusList) { logger.debug("Getting service requests for the admin home page..."); System.out.println("Getting service requests for the admin home page..."); Session session = sessionFactory.getCurrentSession(); String statuses = StringUtil.getStatusList(statusList); String sql = SQLUtil.getServiceRequestsByStatus(statuses); Query query = null; List<String> scalarPropsList = null; scalarPropsList = SQLUtil.parseSQLScalarProperties(GET_ALL_SERVICE_REQUESTS_ADMIN_SQL_SCALAR); if (scalarPropsList != null) { query = SQLUtil.buildSQLQuery(session, scalarPropsList, sql); query.setResultTransformer(Transformers.aliasToBean(ServiceBean.class)); } return query.list(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;", "public List<ServiceHealth> getServiceInstances(String service);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceBean> getService_Requests() \r\n {\r\n \tlogger.info(\"========================== Getting ALL service requests for the admin home page... =================================\");\r\n\t\t\r\n \tList<ServiceBean> beanList = null;\r\n \t\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = null;\r\n\t\tList<String> scalarPropsList = null;\r\n\t\t\r\n\t\tscalarPropsList = SQLUtil.parseSQLScalarProperties(GET_ALL_SERVICE_REQUESTS_ADMIN_SQL_SCALAR);\r\n\t\t\t\r\n\t\t\tif (scalarPropsList != null)\r\n\t\t\t{\r\n\t\t\t\tquery = SQLUtil.buildSQLQuery(session, scalarPropsList, GET_ALL_SERVICE_REQUESTS_ADMIN_SQL);\r\n\t\t\t\tquery.setResultTransformer(Transformers.aliasToBean(ServiceBean.class));\r\n\t\t\t\t\r\n\t\t\t\tbeanList = (List<ServiceBean>) query.list();\r\n\t\t\t}\r\n\t\t\t\r\n\t\treturn beanList;\r\n }", "net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;", "public Map serviceStatus(String id) throws IOException\n\t{\n\t\treturn request(GET, address(id, \"stats\"));\n\t}", "@Override\n\tpublic List<ServiceFee> getAllServiceByStatus() {\n\t\treturn servicefeerepo.getAllServiceByStatus();\n\t}", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "ResponseEntity<List<Status>> findTaskStatuses();", "public StatusService getStatusService() {\r\n return this.statusService;\r\n }", "RequestStatus getStatus();", "public List getPendingRequests(PendingRequest pendingRequest);", "List<SdkHttpRequest> getRequests();", "public List<HealthCheck> getServiceChecks(String service);", "SearchServiceStatus status();", "protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "go.micro.runtime.RuntimeOuterClass.Service getServices(int index);", "List<Service> services();", "public List<ServerServices> listServerServices();", "public Map<String, List<String>> getServices();", "public List<CatalogService> getService(String service);", "long[] getServiceNameTasks(java.lang.String serviceName) throws java.io.IOException;", "void getRequests();", "@GET(\"system/status\")\n Call<InlineResponse200> getStatus();", "@GetMapping(\"/statuts\")\n public List<Status> selectAllStatuts(){\n \treturn serviceStatut.selectAllStatuts();\n }", "public List<String> getServices() throws IOException;", "Rsp.RequestFromSelf getRequests(int index);", "public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);", "@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();", "@RequestMapping(value=\"/searchorderstatus\",method=RequestMethod.GET)\r\n\tpublic List<OrderBean> searchOrderByStatus(String Status)throws SearchException {\r\n\t\treturn service.searchOrderByStatus(Status);\t\r\n}", "public List<CustomerRequest> getCurrentRequests();", "io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();", "public Map<String,Cab2bService> getServices() throws Exception {\n \t\n Map<String,Cab2bService> services = new HashMap<String,Cab2bService>();\n \tDefaultHttpClient httpclient = new DefaultHttpClient();\n \n try {\n String queryURL = GSSProperties.getCab2b2QueryURL()+\"/services\";\n HttpGet httpget = new HttpGet(queryURL);\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n String result = httpclient.execute(httpget, responseHandler);\n JSONObject json = new JSONObject(result);\n \n \tfor(Iterator i = json.keys(); i.hasNext(); ) {\n \t\tString modelGroupName = (String)i.next();\n \t\tJSONArray urls = json.getJSONArray(modelGroupName);\n \t\tfor(int k=0; k<urls.length(); k++) {\n \t\t JSONObject jsonService = urls.getJSONObject(k);\n \t\t \n \t\t String serviceURL = jsonService.getString(\"url\");\n \t\t \n \t\t boolean searchDefault = false;\n \t\t if (jsonService.has(\"searchDefault\")) {\n \t\t searchDefault = \"true\".equals(jsonService.getString(\"searchDefault\"));\n \t\t }\n \t\t \n \t\t Cab2bService service = new Cab2bService(\n \t\t serviceURL, modelGroupName, searchDefault);\n \t\t \n \t\t services.put(serviceURL, service);\n \t\t}\n \t}\n }\n finally {\n \thttpclient.getConnectionManager().shutdown();\n }\n \n\t\tlog.info(\"Retrieved \" + services.size() + \" services from caB2B\");\n return services;\n }", "public interface StatusService {\r\n\r\n String getStatus();\r\n\r\n}", "@GetMapping(\"/GetCPsByCurrentStatus/{Status}\")\n public Collection<AddfCount> getCurrentRedCPs(@PathVariable(\"Status\") int status){\n return this.addfCountService.getCurrentStatusCPs(status);\n }", "public List<ServiceInstance> getAllInstances(String serviceName);", "public String getAllRunningServices() {\n return \"\";\n }", "public List<Service> getService() {\n\t\treturn ServiceInfo.listService;\n\t}", "private List getActiveServiceList(List servicesList) {\r\n\r\n\t\tList activeServiceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\t\t\r\n\t\t\r\n\t\tif (servicesList != null) {\r\n\t\t\tfor (Iterator iterator = servicesList.iterator(); iterator.hasNext();) {\r\n\t\t\t\tactiveService = (ServiceVO) iterator.next();\r\n\t\t\t\tif (activeService.getStatus() != null) {\r\n\t\t\t\t\tif (activeService.getStatus().trim().equalsIgnoreCase(\"Ativado\")) {\r\n\t\t\t\t\t\tactiveServiceList.add(activeService);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn activeServiceList;\r\n\t\t\r\n\t}", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList getServiceConfigurationList();", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<APIServer> readAPIServerStatus(\n @Path(\"name\") String name);", "List<Ticket> getTickets(String status, String priority);", "public ServiceInfo getServiceStatus(String url) throws IOException {\n Request request = new Request.Builder().url(url).build();\n Response response = client.newCall(request).execute();\n serviceInfo = new ServiceInfo(response.code(),\n response.message(),response.receivedResponseAtMillis());\n return serviceInfo;\n }", "public HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> getStatus(String region) throws IOException {\r\n String currentData;\r\n\r\n try {\r\n baseURL = StaticData.buildURL(region);\r\n currentData = getUrlData();\r\n networkOK = true;\r\n }\r\n catch(UnknownHostException e) {\r\n currentData = \"\";\r\n networkOK = false;\r\n throw e;\r\n }\r\n \r\n JsonElement jelem = new JsonParser().parse(currentData);\r\n JsonObject jobj = jelem.getAsJsonObject();\r\n JsonArray servicesArr = jobj.getAsJsonArray(\"services\");\r\n JsonArray incidentsArr;\r\n JsonArray updatesArr;\r\n \r\n String service, status;\r\n HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> statusInfo = new HashMap();\r\n HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>> statusValues = new HashMap();\r\n ArrayList<HashMap<String, HashMap<String, String>>> services = new ArrayList();\r\n HashMap<String, HashMap<String, String>> incidents = new HashMap();\r\n HashMap<String, String> content = new HashMap();\r\n\r\n for(int i = 0; i < servicesArr.size(); i++) {\r\n jobj = servicesArr.get(i).getAsJsonObject();\r\n \r\n service = formatOutput(jobj.get(\"name\").toString());\r\n status = formatOutput(jobj.get(\"status\").toString()); \r\n\r\n incidentsArr = jobj.getAsJsonArray(\"incidents\");\r\n \r\n // If there are any incidents, store them.\r\n if(incidentsArr.size() > 0) {\r\n // Get each incident.\r\n for(int j = 0; j < incidentsArr.size(); j++) {\r\n jobj = incidentsArr.get(j).getAsJsonObject();\r\n updatesArr = jobj.getAsJsonArray(\"updates\");\r\n \r\n // Get information for each update.\r\n if(updatesArr.size() > 0) {\r\n for(int k = 0; k < updatesArr.size(); k++) {\r\n jobj = updatesArr.get(k).getAsJsonObject();\r\n\r\n // Add id\r\n content.put(\"id\", formatOutput(jobj.get(\"id\").toString()));\r\n // Add severity\r\n content.put(\"severity\", formatOutput(jobj.get(\"severity\").toString()));\r\n // Add updated_at\r\n content.put(\"updated_at\", formatOutput(jobj.get(\"updated_at\").toString()));\r\n // Add content\r\n content.put(\"content\", formatOutput(jobj.get(\"content\").toString()));\r\n \r\n incidents.put(service, (HashMap)content.clone());\r\n services.add((HashMap)incidents.clone());\r\n }\r\n }\r\n }\r\n }\r\n \r\n Collections.reverse(services); // Flip incidents ArrayList to have the newest first.\r\n statusValues.put(status, (ArrayList)services.clone());\r\n services.clear(); // Make sure old incidents aren't copied if current service has no incidents.\r\n statusInfo.put(service, (HashMap)statusValues.clone());\r\n statusValues.clear(); // Make sure old statuses aren't copied if current service has no incidents.\r\n }\r\n \r\n return statusInfo;\r\n }", "public interface RequestStatusStatistics {\n\n /**\n * Gets request status.\n *\n * @return request status\n */\n RequestStatus getRequestStatus();\n\n /**\n * Gets requests count with specified status.\n *\n * @return requests count with specified status\n */\n long getRequestsCount();\n}", "java.util.List<Pokemon.Request> \n getRequestsList();", "Map<String, Object> getServiceSpecificObjects();", "List<StatusListener> mo9950b();", "int getServiceNum();", "public static ParamObject getParamsForGetServices() {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/services/\";\n\t\tobj.setUrl(url);\n\t\t// obj.addHeader(\"Authorization\", authorization);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "boolean getServOpsRes();", "public List<ServiceInstance> lookupInstances(String serviceName);", "public static String getServiceRequestsResponses(String serviceName, String requestType) throws Exception {\n\n\t\tDocument selection = new Document();\n\n\t\tselection.put(\"contextMap.serviceName\", serviceName);\n\t\tselection.put(\"contextMap.requestType\", requestType);\n\n\t\tString json = \"{_id:0, message:1}\";\n\t\tBson projection = BasicDBObject.parse(json);\n\n\t\tDocument doc = fetchqueryResult(\"serviceCallTraces\", selection, projection);\n\t\tString serviceArtifact = doc.getString(\"message\");\n\n\t\treturn serviceArtifact;\n\n\t}", "public Map<String, Object> callService(Map<String, Object> inputDataMap) {\n\t\tMap<String, Object> returnMap = new HashMap<String, Object>(4, 0.75f);\n\t\tStringBuffer statusMsg = null;\n\t\tutil = new WsClientUtil();\n\t\tLOG.info(\"callService - RequestStatus input:[{0}]\", inputDataMap);\n\t\ttry {\n\t\t\tString requestId = (String)inputDataMap.get(\"RequestNo\");\n\t\t\tString language = (String)inputDataMap.get(KEY_LANGUAGE);\n\t\t\tMap<String, Object> configMap = (Map)inputDataMap.get(KEY_CONFIG_DATA);\n\t\t\t//Start :: BUG 17288932\n//\t\t\tconfigMap.put(KEY_AC_URL, \n//\t\t\t\t\tutil.buildURL((String)configMap.get(\"server\"),\n//\t\t\t\t\t\t\t(String)configMap.get(\"port\"),\"SAPGRC_AC_IDM_REQUESTSTATUS/Config1?wsdl\"));\n\t\t\tLOG.info(\"Request Status WSDL Path:[{0}]\"+configMap.get(\"requestStatusWSDLPath\"));\n\t\t\tconfigMap.put(KEY_AC_URL,configMap.get(\"requestStatusWSDLPath\"));\n\t\t\t//End :: BUG 17288932\n\t\t\tURL url = new URL((String)configMap.get(KEY_AC_URL));\n\t\t\tQName qName = new QName(\"urn:SAPGRC_AC_IDM_REQUESTSTATUSWsd\", \n\t\t\t\t\t\"SAPGRC_AC_IDM_REQUESTSTATUS\");\n\t\t\tSAPGRCACIDMREQUESTSTATUS service = new SAPGRCACIDMREQUESTSTATUS(url, qName);\n\t\t\t_port = service.getConfig1PortDocument();\n\t\t\t\n\t\t\tutil.setCredentials((BindingProvider)_port, configMap, false);\n\t\t\tLOG.error(\"Perf: callService-RequestStatus entered\");\n\t\t\tRequestStatusDTO requestStatusDto = _port.getStatus(requestId, language);\n\t\t\tLOG.error(\"Perf: callService-RequestStatus exited\");\n\t\t\tstatusMsg = new StringBuffer();\n\t\t\tif(requestStatusDto != null ){\n\t\t\t\tif(\"SUCCESS\".equalsIgnoreCase(requestStatusDto.getMsgType())){\n\t\t\t\t\tstatusMsg.append(\"0_\");\n\t\t\t\t\tstatusMsg.append(requestStatusDto.getMsgType());\n\t\t\t\t\tstatusMsg.append(\"_\");\n\t\t\t\t\tstatusMsg.append(requestStatusDto.getMsgDesc());\n\t\t\t\t} else {\n\t\t\t\t\tstatusMsg.append(\"4_\");\n\t\t\t\t\tstatusMsg.append(requestStatusDto.getMsgType());\n\t\t\t\t\tstatusMsg.append(\"_\");\n\t\t\t\t\tstatusMsg.append(requestStatusDto.getMsgDesc());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstatusMsg.append(\"4_\");\n\t\t\t\tstatusMsg.append(\"No result and status message from webservice\");\n\t\t\t}\n\t\t\treturnMap.put(\"RequestStatus\", requestStatusDto.getStatus());\n\t\t\treturnMap.put(STATUS,statusMsg.toString());\n\t\t} catch(Exception e) {\n\t\t\tLOG.error(e, \"Request status failed\");\n\t\t\tstatusMsg = new StringBuffer(\"1_\");\n\t\t\tstatusMsg.append(e.getMessage());\n\t\t\treturnMap.put(STATUS, statusMsg.toString());\n\t\t}\n\t\tLOG.info(\"callService - RequestStatus output:[{0}]\", returnMap);\n\t\treturn returnMap;\n\t}", "@GET\n @Path(\"jobs/status\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobActiveByStatus() {\n List<LGJob> jobs = Utils.getJobManager().getAllLimitFields(\"_id\", \"status\", \"reason\");\n JSONObject ob = new JSONObject();\n for (LGJob job : jobs) {\n JSONObject t = new JSONObject();\n t.put(\"status\", job.getStatusString(job.getStatus()));\n t.put(\"reason\", job.getReason());\n ob.put(job.getJobId(), t);\n }\n return Response.status(200).entity(ob.toString(1)).build();\n }", "public Integer getServicestatusid() {\r\n return servicestatusid;\r\n }", "private void getUnresolvedServiceRequests(CTTS.Shared bean) throws ServletException, IOException\r\n {\n\t\tString [][] UnresolvedServiceRequests; \r\n\t\t\r\n\t\t\r\n CTTS.DBI dbi = null;\r\n try\r\n {\r\n dbi = new CTTS.DBI();\r\n if(dbi.connect()) // get a connection from tomcat\r\n {\r\n UnresolvedServiceRequests = dbi.getUnresolvedServiceRequests(); \r\n bean.setUnresolvedServiceRequests(UnresolvedServiceRequests); \r\n\t \r\n }\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n bean.setMessage(\"Exception caught : \" + e);\r\n bean.setError(\"The database could not be connected\");\r\n } \r\n finally\r\n {\r\n dbi.close(); //return connection to Tomcat\r\n } \r\n }", "public Object getService(String serviceName);", "int getServicesCount();", "int getServicesCount();", "public go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n if (servicesBuilder_ == null) {\n return services_.get(index);\n } else {\n return servicesBuilder_.getMessage(index);\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getServices(int index) {\n if (servicesBuilder_ == null) {\n return services_.get(index);\n } else {\n return servicesBuilder_.getMessage(index);\n }\n }", "Collection<Service> getAllSubscribeService();", "public ArrayList<CommandOfService> getMyCommandPending() throws Exception {\n // We retrieve the current user\n Session sessionUser = Session.getInstance();\n User currentUser = sessionUser.getCurrentUser();\n // We ask the DAO to retrieve the services of the user\n return DAO.getMyServicePending(currentUser);\n }", "List<Status> getStatusAlteraveis() throws ServiceException;", "public List<ServiceInstance> getAllInstances();", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "String getServiceName();", "String getServiceName();", "public Map listServices() throws IOException\n\t{\n\t\treturn request(GET, address(null, null));\n\t}", "java.util.List<pb4client.TransportRequest> \n getReqList();", "@GetMapping(value = \"/getInfo\")\n @ResponseBody\n public String getInfo() {\n System.out.println(\"discoveryClient.getServices().size() = \" + discoveryClient.getServices().size());\n\n StringBuffer stringBuffer = new StringBuffer();\n for( String s : discoveryClient.getServices()){\n System.out.println(\"services \" + s);\n List<ServiceInstance> serviceInstances = discoveryClient.getInstances(s);\n for(ServiceInstance si : serviceInstances){\n stringBuffer.append(\" services:\" + s + \":getHost()=\" + si.getHost());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getPort()=\" + si.getPort());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getUri()=\" + si.getUri());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n stringBuffer.append(\"\\n\");\n stringBuffer.append(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n stringBuffer.append(\"\\n\");\n\n System.out.println(\" services:\" + s + \":getHost()=\" + si.getHost());\n System.out.println(\" services:\" + s + \":getPort()=\" + si.getPort());\n System.out.println(\" services:\" + s + \":getServiceId()=\" + si.getServiceId());\n System.out.println(\" services:\" + s + \":getUri()=\" + si.getUri());\n System.out.println(\" services:\" + s + \":getMetadata()=\" + si.getMetadata());\n System.out.println(\" services:\" + s + \":getScheme()=\" + si.getScheme());\n System.out.println();\n }\n }\n return \"ok\";\n }", "java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service getServiceReq(Service service){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service serviceReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service();\n\t\t\n\t\tserviceReq.setServiceCode( service.getServiceCode() );\n\t\tserviceReq.setServiceName( service.getServiceName() );\n\t\tserviceReq.setGateway( service.getGateway() );\n\t\tserviceReq.setDestination( service.getDestination() );\n\t\tserviceReq.setAdultPrice( new Double( service.getAdultPrice() ) );\n\t\tserviceReq.setChild1Price( new Double( service.getChild1Price() ) );\n\t\tserviceReq.setChild2Price( new Double( service.getChild2Price() ) );\n\t\tserviceReq.setChild3Price( new Double( service.getChild3Price() ) );\n\t\tserviceReq.setChild1MinAge( new Byte( service.getChild1MinAge() ) );\n\t\tserviceReq.setChild2MinAge( new Byte( service.getChild2MinAge() ) );\n\t\tserviceReq.setChild3MinAge( new Byte( service.getChild3MinAge() ) );\n\t\tserviceReq.setChild1MaxAge( new Byte( service.getChild1MaxAge() ) );\n\t\tserviceReq.setChild2MaxAge( new Byte( service.getChild2MaxAge() ) );\n\t\tserviceReq.setChild3MaxAge( new Byte( service.getChild3MaxAge() ) );\n\t\tserviceReq.setCurrency( service.getCurrency() );\n\t\tserviceReq.setMaxQuantity( new Double( service.getMaxQuantity() ) );\n\t\tserviceReq.setUnitOfMeasure( service.getUnitOfMeasure() );\n\t\tserviceReq.setMandatory( new Boolean( service.isMandatory() ) );\n\t\tserviceReq.setFree( new Boolean( service.isFree() ) );\n\t\tserviceReq.setOccupancyBased( new Boolean( service.isOccupancyBased() ) );\n\t\tserviceReq.setDateSpecific( new Boolean( service.isDateSpecific() ) );\n\t\tserviceReq.setAllOrNothing( new Boolean( service.isAllOrNothing() ) );\n\t\tserviceReq.setWeightBased( new Boolean( service.isWeightBased() ) );\n\t\tserviceReq.setTierBased( new Boolean( service.isTierBased() ) );\n\t\tserviceReq.setGroupCode( service.getGroupCode() );\n\t\tserviceReq.setGroupDescription( service.getGroupDescription() );\n\t\tserviceReq.setMonday( new Boolean( service.isMonday() ) );\n\t\tserviceReq.setTuesday( new Boolean( service.isTuesday() ) );\n\t\tserviceReq.setWednesday( new Boolean( service.isWednesday() ) );\n\t\tserviceReq.setThursday( new Boolean( service.isThursday() ) );\n\t\tserviceReq.setFriday( new Boolean( service.isFriday() ) );\n\t\tserviceReq.setSaturday( new Boolean( service.isSaturday() ) );\n\t\tserviceReq.setSunday( new Boolean( service.isSunday() ) );\n\t\tserviceReq.setAdultQty( new Byte( service.getAdultQty() ) );\n\t\tserviceReq.setChild1Qty( new Byte( service.getChild1Qty() ) );\n\t\tserviceReq.setChild2Qty( new Byte( service.getChild2Qty() ) );\n\t\tserviceReq.setChild3Qty( new Byte( service.getChild3Qty() ) );\n\t\tserviceReq.setTravelAgentFee( new Double( service.getTravelAgentFee() ) );\n\t\tserviceReq.setFlightMaterialCode( service.getFlightMaterialCode() );\n\t\tserviceReq.setHotelMaterialCode( service.getHotelMaterialCode() );\n\t\tserviceReq.setParentItemRph(service.getParentItemRph() );\n\t\tserviceReq.setGuestAllocation( service.getGuestAllocation() );\n\t\tserviceReq.setTotalPrice( new Double( service.getTotalPrice() ) );\n\t\tserviceReq.setPosnr( service.getPosnr() );\n\t\tserviceReq.setOldPosnr( service.getOldPosnr() );\n\t\tif( service.getSelectedDate() != null ){\n\t\t\tserviceReq.setSelectedDate( this.getDate( service.getSelectedDate() ) );\n\t\t}\n\t\tif( service.getDepatureDate() != null ){\n\t\t\tserviceReq.setDepatureDate( this.getDate( service.getDepatureDate() ) );\n\t\t}\n\t\tif( service.getReturnDate() != null ){\n\t\t\tserviceReq.setReturnDate( this.getDate( service.getReturnDate() ));\n\t\t}\n\t\tif( (service.getAvailableDates() != null) && (service.getAvailableDates().size() > 0) ){\n\t\t\tfor(int i=0; i < service.getAvailableDates().size();i++){\n\t\t\t\tserviceReq.getAvailableDates().add( this.getDate( service.getAvailableDates().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (service.getServiceDescription() != null) && (service.getServiceDescription().size() > 0) ){\n\t\t\tfor(int i=0; i < service.getServiceDescription().size();i++){\n\t\t\t\tserviceReq.getServiceDescription().add( service.getServiceDescription().get(i) );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn serviceReq;\n\t}", "public static List<String> getServiceNames(Definition definition) {\n Map map = definition.getAllServices();\n List<QName> serviceQnames = new ArrayList<QName>(map.keySet());\n List<String> serviceNames = new ArrayList<String>();\n for (QName qName : serviceQnames) {\n serviceNames.add(qName.getLocalPart());\n }\n return serviceNames;\n }", "public ServerServices searchServerService(String serviceName, int servId);", "public String getServiceName();", "public IndexedList<Task> search(TaskStatus status) {\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getStatus()==status)\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}", "Collection<Service> getAllPublishedService();", "Object getService(String serviceName);", "List<Order> getOrderListByStatus(OrderStatusEnum orderStatus) throws ServiceException;", "List<Status> getAllChecklistStatus() throws ServiceException;", "java.util.Map<java.lang.String, ch.epfl.dedis.proto.StatusProto.Response.Status>\n getSystemMap();", "public SearchResponse getStatus();", "StatusListResponse getStatuses(StatusListRequest statusListRequest) throws IOException, TweeterRemoteException;", "@Override\n\tpublic List<RequestDTO> getManageRequestByStatusForTaxi(Integer request_status, Integer account_id) {\n\t\t\n\t\tAccount account = accountRepository.findByAccountId(account_id);\n\t\tCarDetails carDetails = carDetailsRepository.getCarByAccountId(account_id);\n\t\tList<ManageRequest> manageRequestList = manageRequestRepository.getManageRequestByStatusForTaxi(request_status, carDetails);\n\t\t\n\t\tList<RequestDTO> finalRequestList = new ArrayList();\n\t\t\n\t\tif(manageRequestList != null && manageRequestList.size() >0){\n\t\t\tfor(ManageRequest manageRequest : manageRequestList){\n\t\t\t\tRequest request = manageRequest.getRequest();\n\t\t\t\t\n\t\t\t\tRequestDTO newRequestDTO = new RequestDTO();\n\t\t\t\tnewRequestDTO.setAccountId(request.getAccount().getAccountId());\n\t\t\t\tnewRequestDTO.setEventDateTime(request.getEvent_date_time().getTime());\n\t\t\t\tnewRequestDTO.setPlaceFrom(request.getPlace_from());\n\t\t\t\tnewRequestDTO.setPlaceTo(request.getPlace_to());\n\t\t\t\tnewRequestDTO.setRequestId(request.getRequest_id());\n\t\t\t\tnewRequestDTO.setDetails(request.getDetails());\n\t\t\t\tnewRequestDTO.setRequestStatus(RequestStatus.valueFor(manageRequest.getRequest_status()));\n\t\t\t\tnewRequestDTO.setCarId(manageRequest.getCarDetails().getCarId());\n\t\t\t\t\n\t\t\t\tnewRequestDTO.setPrice(manageRequest.getPrice());\n\n\t\t\t\t\n\t\t\t\tfinalRequestList.add(newRequestDTO);\n\t\t\t}\n\t\t}\t\t\n\t\treturn finalRequestList;\n\t}", "public int getDriversCountByStatus(String status) {\n String queryPath = \"\";\n switch (status) {\n case \"ANY\":\n queryPath = \"?enabled=true\";\n break;\n case \"READY\":\n queryPath = \"?enabled=true&online=true&hasOrder=false\";\n break;\n case \"ORDER_EXECUTION\":\n queryPath = \"?enabled=true&online=true&hasOrder=true\";\n break;\n case \"OFFLINE\":\n queryPath = \"?enabled=true&online=false&hasOrder=false\";\n break;\n case \"ORDER_OFFLINE\":\n queryPath = \"?enabled=true&online=false&hasOrder=true\";\n break;\n }\n String path = mgmtDriverInfoPath + queryPath;\n String result = sendRequest(getResponseType, systemUserAuthToken(), path, \"total\", statusCode200);\n return Integer.parseInt(result);\n }", "OperationStatusType status();", "public ServiceTaskStatus getStatus() {\n\t\treturn this.status;\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<APIServer> readAPIServerStatus(\n @Path(\"name\") String name, \n @QueryMap ReadAPIServerStatus queryParameters);", "public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }", "ImmutableList<T> getServices();", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "public ServerStatus[] getServerStatus() {\r\n ServerStatus[] toReturn = new ServerStatus[0];\r\n\r\n String[] paramFields = {\"item_delimiter\", \"value_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"admin\", \"server_status\",\r\n SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n request.setValue(\"value_delimiter\", VALUE_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0201\", \"couldn't get server status\");\r\n } else {\r\n wrapError(\"APIL_0201\", \"couldn't get server status\");\r\n }\r\n return toReturn;\r\n } else {\r\n String serversString = response.getValue(\"servers\");\r\n StringTokenizer tokenizer = new StringTokenizer(serversString, ITEM_DELIMITER);\r\n toReturn = new ServerStatus[tokenizer.countTokens()];\r\n try {\r\n for (int i = 0; i < toReturn.length; i++) {\r\n String itemString = tokenizer.nextToken();\r\n StringTokenizer itemTokenizer = new StringTokenizer(itemString, VALUE_DELIMITER);\r\n String ip = itemTokenizer.nextToken();\r\n String portString = itemTokenizer.nextToken();\r\n String aliveString = itemTokenizer.nextToken();\r\n String timeString = itemTokenizer.nextToken();\r\n int port = Integer.parseInt(portString.trim());\r\n boolean alive = \"y\".equals(aliveString);\r\n long time = Tools.parseTime(timeString.trim());\r\n toReturn[i] = new ServerStatus(ip, port, time, alive);\r\n }\r\n } catch (Exception e) {\r\n setError(\"APIL_0202\", \"error in parsing status string: \" + serversString);\r\n return new ServerStatus[0];\r\n }\r\n }\r\n\r\n return toReturn;\r\n }" ]
[ "0.65517217", "0.6443631", "0.64291173", "0.6148862", "0.61214566", "0.6086236", "0.60032505", "0.5987551", "0.597793", "0.5976145", "0.59712213", "0.59706527", "0.5942329", "0.5931148", "0.5924084", "0.591968", "0.591968", "0.59170985", "0.5853057", "0.58502144", "0.58495593", "0.58480746", "0.58472705", "0.58277917", "0.5806936", "0.5797986", "0.57649386", "0.5720852", "0.5707018", "0.567774", "0.567774", "0.56487525", "0.5640089", "0.56400543", "0.5633321", "0.56004846", "0.55843663", "0.556448", "0.5525224", "0.55185777", "0.55153936", "0.5510736", "0.5510736", "0.5510736", "0.548236", "0.54810685", "0.547055", "0.54692155", "0.5447744", "0.5440366", "0.54313385", "0.54291946", "0.5418908", "0.5416937", "0.5413484", "0.5409145", "0.5406031", "0.5393917", "0.53906727", "0.5383167", "0.5373545", "0.5371419", "0.536606", "0.53436327", "0.53436327", "0.5331187", "0.5331187", "0.53297025", "0.53288794", "0.53278434", "0.53266984", "0.5324555", "0.5324555", "0.53194726", "0.53194726", "0.53169936", "0.5316033", "0.5309174", "0.5304925", "0.52993035", "0.5296057", "0.529336", "0.5292844", "0.5291289", "0.5279549", "0.5274383", "0.52574384", "0.5256247", "0.5250402", "0.5250384", "0.5250313", "0.52488494", "0.52475595", "0.523789", "0.5237825", "0.5230119", "0.5226652", "0.52200055", "0.52194315", "0.5210023" ]
0.67841053
0